Ejemplo n.º 1
0
 public static bool insertInvoice_Product(APCEntities APCContext, Invoice invoice, Category category, string description, int quantity, string unit, decimal price, Kurs kurs, decimal serviceCharge, decimal totalPrice, bool subcon)
 {
     Invoice_Product invoice_product = new Invoice_Product();
     invoice_product.Invoice = invoice;
     invoice_product.Category = category;
     invoice_product.Description = description;
     invoice_product.Quantity = quantity;
     invoice_product.Unit = unit;
     invoice_product.Price = price;
     invoice_product.Kurs = kurs;
     invoice_product.ServiceCharge = serviceCharge;
     invoice_product.PriceTotal = totalPrice;
     invoice_product.SubCon = subcon;
     APCContext.AddToInvoice_Product(invoice_product);
     APCContext.SaveChanges();
     return true;
 }
Ejemplo n.º 2
0
        public static bool insertInvoice_Product(APCEntities APCContext, Invoice invoice, Category category, string description, int quantity, string unit, decimal price, Kurs kurs, decimal serviceCharge, decimal totalPrice, bool subcon)
        {
            Invoice_Product invoice_product = new Invoice_Product();

            invoice_product.Invoice       = invoice;
            invoice_product.Category      = category;
            invoice_product.Description   = description;
            invoice_product.Quantity      = quantity;
            invoice_product.Unit          = unit;
            invoice_product.Price         = price;
            invoice_product.Kurs          = kurs;
            invoice_product.ServiceCharge = serviceCharge;
            invoice_product.PriceTotal    = totalPrice;
            invoice_product.SubCon        = subcon;
            APCContext.AddToInvoice_Product(invoice_product);
            APCContext.SaveChanges();
            return(true);
        }