Add ptrTrancode to DTOs and use in TransactionLogService

Introduced the ptrTrancode field to AccountToAccountDTO and GlToAccountDTO. Updated TransactionLogService to set the transaction code from the new ptrTrancode field instead of using an empty string.
dev-pending-20-01-2026
Naeem Ullah 6 days ago
parent 3753918526
commit 7e9b314127

@ -16,6 +16,7 @@ public class AccountToAccountDTO {
private String plcLocacode; private String plcLocacode;
private String porOrgacode; private String porOrgacode;
private String ppmPymdcode; private String ppmPymdcode;
private String ptrTrancode;
private String sgtGntrcreateusr; private String sgtGntrcreateusr;
private String sgtGntrnarration; private String sgtGntrnarration;
private LocalDate sgtGntrvaluedate; private LocalDate sgtGntrvaluedate;

@ -17,6 +17,7 @@ public class GlToAccountDTO {
private String plcLocacode; private String plcLocacode;
private String porOrgacode; private String porOrgacode;
private String ppmPymdcode; private String ppmPymdcode;
private String ptrTrancode;
private String sgtGntrcreateusr; private String sgtGntrcreateusr;
private String sgtGntrnarration; private String sgtGntrnarration;
private LocalDate sgtGntrvaluedate; private LocalDate sgtGntrvaluedate;

@ -93,7 +93,7 @@ public class TransactionLogService {
transactionLog.setUpdatedAt(LocalDateTime.now()); transactionLog.setUpdatedAt(LocalDateTime.now());
transactionLog.setSgtGntrdate(accountToAccountDTO.getSgtGntrvaluedate()); transactionLog.setSgtGntrdate(accountToAccountDTO.getSgtGntrvaluedate());
transactionLog.setTransactionUri(URI); transactionLog.setTransactionUri(URI);
transactionLog.setTransactionCode(""); transactionLog.setTransactionCode(accountToAccountDTO.getPtrTrancode());
return transactionLogRepository.save(transactionLog); return transactionLogRepository.save(transactionLog);
} }
@ -105,14 +105,12 @@ public class TransactionLogService {
transactionLog.setCrMbmbkmsnumber(glToAccountDTO.getCreditAcc().getMbmBkmsnumber()); transactionLog.setCrMbmbkmsnumber(glToAccountDTO.getCreditAcc().getMbmBkmsnumber());
transactionLog.setDrMbmbkmsnumber(""); transactionLog.setDrMbmbkmsnumber("");
transactionLog.setCrPcaglacode(""); transactionLog.setCrPcaglacode("");
transactionLog.setDrPcaGlacode(glToAccountDTO.getDebitGl().getPcaGlaccode());
transactionLog.setPpmPymdcode(glToAccountDTO.getPpmPymdcode());
transactionLog.setSgtGntrdate(glToAccountDTO.getSgtGntrvaluedate()); transactionLog.setSgtGntrdate(glToAccountDTO.getSgtGntrvaluedate());
transactionLog.setCreatedAt(LocalDateTime.now()); transactionLog.setCreatedAt(LocalDateTime.now());
transactionLog.setUpdatedAt(LocalDateTime.now()); transactionLog.setUpdatedAt(LocalDateTime.now());
transactionLog.setSgtGntrdate(glToAccountDTO.getSgtGntrvaluedate()); transactionLog.setSgtGntrdate(glToAccountDTO.getSgtGntrvaluedate());
transactionLog.setTransactionUri(URI); transactionLog.setTransactionUri(URI);
transactionLog.setTransactionCode(""); transactionLog.setTransactionCode(glToAccountDTO.getPtrTrancode());
return transactionLogRepository.save(transactionLog); return transactionLogRepository.save(transactionLog);
} }
} }

Loading…
Cancel
Save