Ejemplo n.º 1
0
 private decimal CreateReceiveSummary(Receive _receive)
 {
     decimal subTotal = 0;
     foreach (ReceiveItem itm in _receive.Items)
     {
         subTotal += itm.PayAmount;
     }
     ReceiveSummary summary = new ReceiveSummary()
     {
         ReceiveId = _receive.ReceiveId,
         Total = subTotal
     };
     Penerimaan.CreateRentalSummary(summary);
     return subTotal;
 }
Ejemplo n.º 2
0
 public void CreateRentalSummary(ReceiveSummary summary)
 {
     string query = String.Format("INSERT INTO tblreceivesummary (receiveid,total) values ('{0}','{1}')",
         summary.ReceiveId, summary.Total);
     qryObjectMapper.Map<ReceiveSummary>(query);
 }