public void AddPaymentItem(PaymentItem item) { if (Installments.Count() <= 0 && PayInSlips.Count() <= 0) { PaymentItems.Add(item); } }
public void AddPaymentItem(int serviceCode, string serviceName, int quantity, decimal unitAmount, decimal taxOrVat, decimal withHoldingTax, bool isRevenue, bool isLegalPerson, string itemDescription) { if (Installments.Count() <= 0 && PayInSlips.Count() <= 0) { PaymentItems.Add(new PaymentItem( //serviceCode, //serviceName, quantity, unitAmount, taxOrVat, withHoldingTax, isRevenue, isLegalPerson, itemDescription)); } }