public int InvPayment(InvoicePaymentEntity invoicePaymentEntity) { Hashtable hashtable = new Hashtable(); hashtable.Add("@PaymentID", invoicePaymentEntity.PaymentID); hashtable.Add("@TotalAmount", invoicePaymentEntity.TotalAmount); hashtable.Add("@ReceivedAmount", invoicePaymentEntity.ReceivedAmount); hashtable.Add("@DueAmount", invoicePaymentEntity.DueAmount); hashtable.Add("@PaymentDate", invoicePaymentEntity.PaymentDate); hashtable.Add("@Notes", invoicePaymentEntity.Notes); hashtable.Add("@PaymentReceived", invoicePaymentEntity.PaymentReceived); hashtable.Add("@PaymentMode", invoicePaymentEntity.PaymentMode); hashtable.Add("@InvoiceNum", invoicePaymentEntity.InvoiceNum); int result = dataUtilities.ExecuteNonQuery("InsUpdateInvoicePayment", hashtable); return(result); }
public InvoicePaymentSaveCommand(IDataSourceConfig dataSource, InvoicePaymentEntity InvoicePayment) { _rowMapper = new InvoicePaymentRowMapper(); _dataSource = dataSource; _InvoicePayment = InvoicePayment; }