Example #1
0
 public DiscountItemDetail(DiscountItem discountItem)
 {
     Id       = discountItem.Id;
     Stock    = new StockDetail(discountItem.Stock);
     Discount = new DiscountDetail
     {
         Id = discountItem.Discount.Id
     };
 }
Example #2
0
 public InvoiceItemDetail(InvoiceItem invoiceItem)
 {
     Id          = invoiceItem.Id;
     Description = invoiceItem.Description;
     Quantity    = invoiceItem.Quantity;
     Price       = invoiceItem.Price;
     FinalPrice  = invoiceItem.FinalPrice;
     Discount    = invoiceItem.Discount;
     Stock       = new StockDetail(invoiceItem.Stock);
 }
Example #3
0
 public BillItemDetail(BillItem billItem)
 {
     Id          = billItem.Id;
     Description = billItem.Description;
     Quantity    = billItem.Quantity;
     Price       = billItem.Price;
     Stock       = new StockDetail(billItem.Stock);
     Bill        = new BillDetail
     {
         Id     = billItem.Id,
         Number = billItem.Bill.Number
     };
 }