Esempio n. 1
0
 private void PrepareInvoiceDetailsInsertQueryParameters(int invoiceId, NpgsqlCommand com, InvoiceDetails item)
 {
     com.Parameters[0].Value = invoiceId;
     com.Parameters[1].Value = item.Price;
     com.Parameters[2].Value = item.Quantity;
     com.Parameters[3].Value = item.TotalPrice;
     com.Parameters[4].Value = item.Discount;
     com.Parameters[5].Value = item.GetIDAso();
     com.Parameters[6].Value = item.Description;
 }
Esempio n. 2
0
 public void AddInvoiceItem(InvoiceDetails invoiceItem)
 {
     invoiceItems.Add(invoiceItem);
 }