Esempio n. 1
0
        private void UpdateTransactionWithNewCustomer(string customerID)
        {
            if (string.IsNullOrEmpty(customerID))
            {
                NetTracer.Warning("Loyalty::UpdateTransactionWithNewCustomer: customerID is null");
                return;
            }

            Contracts.DataEntity.ICustomer customer = this.CustomerSystem.GetCustomerInfo(customerID);

            if (this.transaction.Customer == null || this.transaction.Customer.CustomerId != customerID)
            {
                this.CustomerSystem.SetCustomer(this.transaction, customer, customer);
            }

            IItemSystem itemSystem = this.Application.BusinessLogic.ItemSystem;

            itemSystem.RecalcPriceTaxDiscount(transaction, true);

            // Calc total.
            this.transaction.CalcTotals();
        }
Esempio n. 2
0
 public GoldAddsScoreRule(ISystemContainer systemContainer)
 {
     _itemSystem = systemContainer.ItemSystem;
 }
Esempio n. 3
0
 public GetBaseStatRule(ISystemContainer systemContainer)
 {
     _playerSystem = systemContainer.PlayerSystem;
     _statSystem   = systemContainer.StatSystem;
     _itemSystem   = systemContainer.ItemSystem;
 }