sdf54 C_acc_deb/Doc_Date/Value_date fix
This commit is contained in:
parent
23604146f8
commit
07e78d6a50
1 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
package ru.spcex.clearing.service;
|
package ru.spcex.clearing.service;
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
|
import java.time.LocalDate;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
@ -118,13 +119,14 @@ public class Sdf54Creator {
|
||||||
if (prcBankAcc != null) {
|
if (prcBankAcc != null) {
|
||||||
sDf54.setSwift_int(prcBankAcc.getSwiftCode());
|
sDf54.setSwift_int(prcBankAcc.getSwiftCode());
|
||||||
}
|
}
|
||||||
sDf54.setDoc_Date(null);
|
String today = payDateFormatter.format(LocalDate.now());
|
||||||
sDf54.setValue_date(null);
|
sDf54.setDoc_Date(today);
|
||||||
|
sDf54.setValue_date(today);
|
||||||
sDf54.setAcc_kr_1(paymentInstruction.getDebitLeg_account());
|
sDf54.setAcc_kr_1(paymentInstruction.getDebitLeg_account());
|
||||||
|
|
||||||
{
|
{
|
||||||
Account prcCorrAcc = accountImdg.getFirstObjectBySQL("companyId=%d and accountType = '%s' and status = '%s'"
|
Account prcCorrAcc = accountImdg.getFirstObjectBySQL("companyId=%d and accountType = '%s' and status = '%s'"
|
||||||
.formatted(Sender.Prc.getId(), AccountType.Corr.getKey(), Status.Active.getKey()));
|
.formatted(Sender.Prc.getId(), AccountType.Bank.getKey(), Status.Active.getKey()));
|
||||||
if (prcCorrAcc == null) {
|
if (prcCorrAcc == null) {
|
||||||
log.warn("Account for PRC CORR not found");
|
log.warn("Account for PRC CORR not found");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue