private void RecalculateRentaloutstanding(Receive _receive) { foreach (ReceiveItem itm in _receive.Items) { Outstanding.MinusOutstanding(itm.RentalId, itm.PayAmount); } }
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); } }
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; }
private void CreateReceiveHeader(Receive _receive) { ReceiveHeader header = new ReceiveHeader() { ReceiveId = _receive.ReceiveId, ReceiveNo = _receive.ReceiveNo, CustId = _receive.CustId, ReceiveDate = _receive.ReceiveDate }; Penerimaan.CreateReceiveHeader(header); }