Exemplo n.º 1
0
 public void CreateBooking(CreateBookingReceive cmd)
 {
     FailIfBookingExist(cmd.InvoiceId);
     Receive rcv = new Receive
     {
         id = Guid.NewGuid(),
         InvoiceId = cmd.InvoiceId,
         ReceiveDate = DateTime.Now,
         ReceiveNo = ReceiveAutoNumberGenerator.GenerateReceiveNumber(DateTime.Now, cmd.BranchId),
         ReceiveType = (int)ReceiveTypes.UANGTANDAJADI,
         Total = cmd.Total,
         BranchId = cmd.BranchId,
         TransactionDate = DateTime.Now
     };
     ReceiveRepository.Save(rcv);
 }
Exemplo n.º 2
0
 public void CreateAngsuran(CreateAngsuranReceive cmd)
 {
     Receive rcv = new Receive
     {
         id = Guid.NewGuid(),
         InvoiceId = cmd.InvoiceId,
         ReceiveDate = cmd.PaymentDate,
         ReceiveNo = ReceiveAutoNumberGenerator.GenerateReceiveNumber(DateTime.Now, cmd.BranchId),
         ReceiveType = (int)ReceiveTypes.ANGSURAN,
         Total = cmd.Total,
         BranchId = cmd.BranchId,
         Denda = cmd.Denda,
         Month = cmd.BulanAngsuran,
         MonthNumber = cmd.BulanAngsuranNumber,
         TransactionDate = DateTime.Now,
         Deposit = cmd.CreditNote
     };
     ReceiveRepository.Save(rcv);
 }
Exemplo n.º 3
0
 public void Update(Receive rcv)
 {
     ReportingRepository.Update<Receive>(rcv, new { id = rcv.id });
 }
Exemplo n.º 4
0
 public void Save(Receive rcv)
 {
     ReportingRepository.Save<Receive>(rcv);
 }
Exemplo n.º 5
0
 public void CreatePelunasan(Guid invoceId, string branchId, decimal total, decimal denda, long banyakCicilanYangTelahDiBayar)
 {
     Receive rcv = new Receive
     {
         id = Guid.NewGuid(),
         InvoiceId = invoceId,
         ReceiveDate = DateTime.Now,
         ReceiveNo = ReceiveAutoNumberGenerator.GenerateReceiveNumber(DateTime.Now, branchId),
         ReceiveType = (int)ReceiveTypes.PELUNASAN,
         MonthNumber = banyakCicilanYangTelahDiBayar,
         Total = total,
         Denda = denda,
         BranchId = branchId,
         TransactionDate = DateTime.Now
     };
     ReceiveRepository.Save(rcv);
 }
Exemplo n.º 6
0
 public void CreateUangMuka(CreateUangMukaReceive cmd)
 {
     Receive rcv = new Receive
     {
         id = Guid.NewGuid(),
         InvoiceId = cmd.InvoiceId,
         ReceiveDate = DateTime.Now,
         ReceiveNo = ReceiveAutoNumberGenerator.GenerateReceiveNumber(DateTime.Now, cmd.BranchId),
         ReceiveType = (int)ReceiveTypes.UANGMUKA,
         Total = cmd.Total,
         BranchId = cmd.BranchId,
         TransactionDate = DateTime.Now
     };
     ReceiveRepository.Save(rcv);
 }