コード例 #1
0
 private void RecalculateRentaloutstanding(Receive _receive)
 {
     foreach (ReceiveItem itm in _receive.Items)
     {
         Outstanding.MinusOutstanding(itm.RentalId, itm.PayAmount);
     }
 }
コード例 #2
0
 private void CreateReceiveItem(Receive _receive)
 {
     foreach (ReceiveItem itm in _receive.Items)
     {
         ReceiveItem item = new ReceiveItem()
         {
             RentalId = itm.RentalId,
             ReceiveId = _receive.ReceiveId,
             TotalDenda = itm.TotalDenda,
             PayAmount = itm.PayAmount,
             Total = itm.Total,
             TotalAfterDenda = itm.TotalAfterDenda
         };
         Penerimaan.CreateRentalItem(item);
     }
 }
コード例 #3
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;
 }
コード例 #4
0
 private void CreateReceiveHeader(Receive _receive)
 {
     ReceiveHeader header = new ReceiveHeader()
     {
         ReceiveId = _receive.ReceiveId,
         ReceiveNo = _receive.ReceiveNo,
         CustId = _receive.CustId,
         ReceiveDate = _receive.ReceiveDate
     };
     Penerimaan.CreateReceiveHeader(header);
 }