Beispiel #1
0
 public CSale(sale sale, CProduct product, CUser user)
 {
     shop_id    = sale.shop_id;
     sale_id    = sale.sale_id;
     cproduct   = product;
     agent      = user;
     prod_qty   = sale.prod_quant;
     saleDate   = sale.sale_date;
     saleTime   = sale.sale_time;
     cust_name  = sale.cust_name;
     cust_phone = sale.cust_phone;
 }
 public CInventory(inventory i, CProduct p)
 {
     shop_id    = i.shop_id;
     prod_quant = i.prod_quant;
     product    = p;
 }