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(); }
public GoldAddsScoreRule(ISystemContainer systemContainer) { _itemSystem = systemContainer.ItemSystem; }
public GetBaseStatRule(ISystemContainer systemContainer) { _playerSystem = systemContainer.PlayerSystem; _statSystem = systemContainer.StatSystem; _itemSystem = systemContainer.ItemSystem; }