This commit is contained in:
parent
b0b4f294ec
commit
dac99adb0f
4 changed files with 6 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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"),
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue