etreschenkov 2025-08-22 14:22:10 +03:00
parent b0b4f294ec
commit dac99adb0f
4 changed files with 6 additions and 2 deletions

View file

@ -255,6 +255,9 @@ public class CompanyService extends QueueConsumer implements InitializingBean {
if (CompanySymbol.RGRC.equalsByKey(companySymbol.getCompanySymbol())) { if (CompanySymbol.RGRC.equalsByKey(companySymbol.getCompanySymbol())) {
company.setRegistrationCode(setUpValue); company.setRegistrationCode(setUpValue);
} }
if (CompanySymbol.TAXN.equalsByKey(companySymbol.getCompanySymbol())) {
company.getProfile().setTaxNumber(setUpValue);
}
} }
private String shouldBeDeletedOrSet(String companySymbol, boolean shouldBeDeleted) { private String shouldBeDeletedOrSet(String companySymbol, boolean shouldBeDeleted) {

View file

@ -346,7 +346,7 @@ public class ReportService extends QueueConsumerV2 implements InitializingBean {
Map<File, ReportInfo> outFiles = createReportsForTask(List.of(), reportBuildersForGREC.values()); Map<File, ReportInfo> outFiles = createReportsForTask(List.of(), reportBuildersForGREC.values());
sendReportsToGateway(List.of(), outFiles, ReportType.REPORT_KS_LCC.getKey()); sendReportsToGateway(List.of(), outFiles, ReportType.REPORT_KS_VALUE.getKey());
sendFilesToSftp(outFiles.keySet()); sendFilesToSftp(outFiles.keySet());
} catch (Exception e) { } catch (Exception e) {
log.error("Unexpected exception", e); log.error("Unexpected exception", e);

View file

@ -21,6 +21,8 @@ public enum CompanySymbol implements IEnumKey {
LICT("LICT"), LICT("LICT"),
LICC("LICC"), LICC("LICC"),
LICF("LICF"), LICF("LICF"),
TAXN("TAXN"),
; ;
private final String key; private final String key;

View file

@ -11,7 +11,6 @@ public enum ReportType implements IEnumKey {
PFX65("PFX65"), PFX65("PFX65"),
REPORT_KS_TMP("REPORT_KS_TMP"), REPORT_KS_TMP("REPORT_KS_TMP"),
REPORT_KS_FINAL("REPORT_KS_FINAL"), REPORT_KS_FINAL("REPORT_KS_FINAL"),
REPORT_KS_LCC("REPORT_KS_LCC"),
REPORT_KS_VALUE("REPORT_KS_VALUE"), REPORT_KS_VALUE("REPORT_KS_VALUE"),
; ;