public static PurchasePrepaymentInvoiceDTO CreatePurchasePrepaymentInvoiceDTO(int prepaymentInvoiceId, global::System.DateTime invoiceDate, decimal invoiceValue, decimal paidAmount, global::System.DateTime createDate, bool isValid, bool isCompleted, int status, int orderId, int supplierId, int currencyId, global::System.Collections.ObjectModel.ObservableCollection<InvoiceLineDTO> invoiceLines) { PurchasePrepaymentInvoiceDTO purchasePrepaymentInvoiceDTO = new PurchasePrepaymentInvoiceDTO(); purchasePrepaymentInvoiceDTO.PrepaymentInvoiceId = prepaymentInvoiceId; purchasePrepaymentInvoiceDTO.InvoiceDate = invoiceDate; purchasePrepaymentInvoiceDTO.InvoiceValue = invoiceValue; purchasePrepaymentInvoiceDTO.PaidAmount = paidAmount; purchasePrepaymentInvoiceDTO.CreateDate = createDate; purchasePrepaymentInvoiceDTO.IsValid = isValid; purchasePrepaymentInvoiceDTO.IsCompleted = isCompleted; purchasePrepaymentInvoiceDTO.Status = status; purchasePrepaymentInvoiceDTO.OrderId = orderId; purchasePrepaymentInvoiceDTO.SupplierId = supplierId; purchasePrepaymentInvoiceDTO.CurrencyId = currencyId; if ((invoiceLines == null)) { throw new global::System.ArgumentNullException("invoiceLines"); } purchasePrepaymentInvoiceDTO.InvoiceLines = invoiceLines; return purchasePrepaymentInvoiceDTO; }
public void AddToPurchasePrepaymentInvoices(PurchasePrepaymentInvoiceDTO purchasePrepaymentInvoiceDTO) { base.AddObject("PurchasePrepaymentInvoices", purchasePrepaymentInvoiceDTO); }