public IPaymentRule CreatePaymentRule(ISupplier supplierEntity, ICustomer customerEntity, 
            BookingType bookingType, decimal percentage, int daysOffset, BaseDate baseDate, PaymentType paymentType)
        {
            PaymentRuleEntity paymentRule = new PaymentRuleEntity(supplierEntity, customerEntity, bookingType,
                percentage, daysOffset, baseDate, paymentType);

            SupplierEntity supplier = (SupplierEntity)supplierEntity;
            supplier.AddPaymentRule(paymentRule);

            return paymentRule;
        }
Example #2
0
 internal void RemovePaymentRule(PaymentRuleEntity paymentRule)
 {
     _paymentRules.Remove(paymentRule);
 }
Example #3
0
 internal void AddPaymentRule(PaymentRuleEntity paymentRule)
 {
     _paymentRules.Add(paymentRule);
 }
Example #4
0
 internal void RemovePaymentRule(PaymentRuleEntity paymentRule)
 {
     _paymentRules.Remove(paymentRule);
 }
Example #5
0
 internal void AddPaymentRule(PaymentRuleEntity paymentRule)
 {
     _paymentRules.Add(paymentRule);
 }