|
|
|
|
@ -281,7 +281,31 @@ public class TransactionService {
|
|
|
|
|
|
|
|
|
|
response = (Map<String, Object>) webClientDepositService.postTransaction(cashOutTransaction, UCOURI.BANKING_CASH_OUT, glAccontTranasctionRequestModel.getPorOrgacode());
|
|
|
|
|
Map<String, Object> transactionId = (Map<String, Object>) response.get("FuncReturnDetail");
|
|
|
|
|
TransactionTrail transactionTrail = TransactionTrail.builder()
|
|
|
|
|
.porOrgacode(glAccontTranasctionRequestModel.getPorOrgacode())
|
|
|
|
|
.drMbmBkmsnumber(glAccontTranasctionRequestModel.getDrPcaGlaccode())
|
|
|
|
|
.crMbmBkmsnumber(glAccontTranasctionRequestModel.getCrMbmBkmsnumber())
|
|
|
|
|
.dmpProdcode(glAccontTranasctionRequestModel.getDmpProdCode())
|
|
|
|
|
.drmbmBkmstitle(glAccontTranasctionRequestModel.getDrPcaGlacdesc())
|
|
|
|
|
.drpcrCurrdesc("GL Currency")
|
|
|
|
|
.drPcrCurrshort("GL Curr")
|
|
|
|
|
.cmpCustcode(glAccontTranasctionRequestModel.getCmpCustcode())
|
|
|
|
|
.drPcrCurrcode("GL Curr")
|
|
|
|
|
.crMbmBkmstitle(glAccontTranasctionRequestModel.getCrMbmBkmstitle())
|
|
|
|
|
.drSgtGntramt(BigDecimal.valueOf(glAccontTranasctionRequestModel.getSgtGntramtfc()))
|
|
|
|
|
.crSgtGntramt(null)
|
|
|
|
|
.crPcrCurrdesc(glAccontTranasctionRequestModel.getCrPcrCurrdesc())
|
|
|
|
|
.crPcrCurrcode(glAccontTranasctionRequestModel.getCrPcrCurrcode())
|
|
|
|
|
.crPcrCurrshort(glAccontTranasctionRequestModel.getCrPcrCurrshort())
|
|
|
|
|
.sgtSentGntrnumber(extractTranNumber(List.of(transactionId.get("arguments"))))
|
|
|
|
|
.drSgtGntrdate(LocalDate.now())
|
|
|
|
|
.sgtGntramt(BigDecimal.valueOf(glAccontTranasctionRequestModel.getSgtGntramtfc()))
|
|
|
|
|
.batAcnttranSend(true)
|
|
|
|
|
.batAcnttranReceived(true)
|
|
|
|
|
.sgtReceiveGntrnumber(extractTranNumber(List.of(transactionId.get("arguments"))))
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
|
transactionTrailRepository.save(transactionTrail);
|
|
|
|
|
GLAccountMasterTransaction glAccountMasterTransaction = GLAccountMasterTransaction.builder()
|
|
|
|
|
.porOrgacode(glAccontTranasctionRequestModel.getPorOrgacode())
|
|
|
|
|
.cmpCustcode(glAccontTranasctionRequestModel.getCmpCustcode())
|
|
|
|
|
|