Exemplo n.º 1
0
 // PI
 #region Public Payment Methods
 public IPayment CreatePayment(DateTime dueDate, decimal dueAmount, IParty payer,
                               IParty payee, PaymentType type, string sale, int booking)
 {
     //Calls create in the mapper and gives it the neccessary parameters.
     return(paymentMapper.Create(dueDate, dueAmount, payer, payee, type, sale, booking));
 }
Exemplo n.º 2
0
        // TB
        #region Public PaymentRule Methods
        public IPaymentRule CreatePaymentRule(ISupplier supplierEntity, ICustomer customerEntity,
                                              BookingType bookingType, decimal percentage, int daysOffset, BaseDate baseDate, PaymentType paymentType)
        {
            SupplierEntity s = (SupplierEntity)supplierEntity;
            CustomerEntity c = (CustomerEntity)customerEntity;

            return(paymentRuleMapper.Create(s, c, bookingType, percentage, daysOffset, baseDate, paymentType));
        }