@silexpert/core 1.1.109 → 1.1.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api/resources/BalanceSheet.d.ts +2 -1
- package/es/api/resources/BalanceSheet.d.ts.map +1 -1
- package/es/api/resources/BalanceSheet.js +3 -0
- package/es/api/resources/BalanceSheet.js.map +1 -1
- package/es/api/resources/ConstitutionHistory.d.ts +7 -0
- package/es/api/resources/ConstitutionHistory.d.ts.map +1 -0
- package/es/api/resources/ConstitutionHistory.js +12 -0
- package/es/api/resources/ConstitutionHistory.js.map +1 -0
- package/es/api/resources/Society.d.ts +2 -2
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js.map +1 -1
- package/es/api/resources/statistic/ExpertAccountant.d.ts +6 -0
- package/es/api/resources/statistic/ExpertAccountant.d.ts.map +1 -1
- package/es/api/resources/statistic/ExpertAccountant.js +9 -0
- package/es/api/resources/statistic/ExpertAccountant.js.map +1 -1
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +30 -19
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheet.js +52 -18
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/ClientOrProspect.d.ts +9 -0
- package/es/types/Enum/ClientOrProspect.d.ts.map +1 -0
- package/es/types/Enum/ClientOrProspect.js +16 -0
- package/es/types/Enum/ClientOrProspect.js.map +1 -0
- package/es/types/Enum/MailAuto.d.ts +1 -0
- package/es/types/Enum/MailAuto.d.ts.map +1 -1
- package/es/types/Enum/MailAuto.js +1 -0
- package/es/types/Enum/MailAuto.js.map +1 -1
- package/es/types/Enum/Quality.d.ts +8 -1
- package/es/types/Enum/Quality.d.ts.map +1 -1
- package/es/types/Enum/Quality.js +61 -0
- package/es/types/Enum/Quality.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/Ocr.d.ts +1 -0
- package/es/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/Ocr.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +1 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
- package/es/types/Interface/api/balanceSheet/Query.d.ts +3 -0
- package/es/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheet/Query.js +7 -0
- package/es/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/es/types/Interface/api/balanceSheet/Read.d.ts +5 -0
- package/es/types/Interface/api/balanceSheet/Read.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheet/Read.js.map +1 -1
- package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.d.ts +6 -0
- package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.d.ts.map +1 -0
- package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js +32 -0
- package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js.map +1 -0
- package/es/types/Interface/models/IConstitutionHistory.d.ts +9 -0
- package/es/types/Interface/models/IConstitutionHistory.d.ts.map +1 -0
- package/es/types/Interface/models/IConstitutionHistory.js +2 -0
- package/es/types/Interface/models/IConstitutionHistory.js.map +1 -0
- package/es/types/index.d.ts +3 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +3 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/vat/3310/century23.js +2 -2
- package/es/utils/vat/3310/century23.js.map +1 -1
- package/js/api/resources/BalanceSheet.js +5 -0
- package/js/api/resources/BalanceSheet.js.map +1 -1
- package/js/api/resources/ConstitutionHistory.js +19 -0
- package/js/api/resources/ConstitutionHistory.js.map +1 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/api/resources/statistic/ExpertAccountant.js +13 -0
- package/js/api/resources/statistic/ExpertAccountant.js.map +1 -1
- package/js/api/resources.js +3 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +48 -19
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/ClientOrProspect.js +18 -0
- package/js/types/Enum/ClientOrProspect.js.map +1 -0
- package/js/types/Enum/MailAuto.js +1 -0
- package/js/types/Enum/MailAuto.js.map +1 -1
- package/js/types/Enum/Quality.js +46 -0
- package/js/types/Enum/Quality.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/Ocr.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
- package/js/types/Interface/api/balanceSheet/Query.js +4 -1
- package/js/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/js/types/Interface/api/balanceSheet/Read.js.map +1 -1
- package/js/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js +28 -0
- package/js/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js.map +1 -0
- package/js/types/Interface/models/IConstitutionHistory.js +6 -0
- package/js/types/Interface/models/IConstitutionHistory.js.map +1 -0
- package/js/types/index.js +30 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/vat/3310/century23.js +2 -2
- package/js/utils/vat/3310/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BalanceSheet.ts +5 -1
- package/ts/api/resources/ConstitutionHistory.ts +20 -0
- package/ts/api/resources/Society.ts +2 -2
- package/ts/api/resources/statistic/ExpertAccountant.ts +13 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BalanceSheet.ts +53 -18
- package/ts/types/Enum/ClientOrProspect.ts +15 -0
- package/ts/types/Enum/MailAuto.ts +1 -0
- package/ts/types/Enum/Quality.ts +63 -1
- package/ts/types/Interface/api/accountingFiles/Ocr.ts +1 -0
- package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +1 -0
- package/ts/types/Interface/api/balanceSheet/Query.ts +6 -0
- package/ts/types/Interface/api/balanceSheet/Read.ts +6 -0
- package/ts/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.ts +21 -0
- package/ts/types/Interface/models/IConstitutionHistory.ts +8 -0
- package/ts/types/index.ts +3 -0
- package/ts/utils/vat/3310/century23.ts +2 -2
|
@@ -26,8 +26,8 @@ function getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries
|
|
|
26
26
|
const vatEntries = (0, _lodash.uniqBy)(accountingEntries.filter(ae => typeof ae.idVat === 'number'), 'id');
|
|
27
27
|
const oldEntries = (0, _lodash.flatten)(updatedEntries === null || updatedEntries === void 0 ? void 0 : updatedEntries.map(u => u.old));
|
|
28
28
|
const newEntries = (0, _lodash.flatten)(updatedEntries === null || updatedEntries === void 0 ? void 0 : updatedEntries.map(u => u.new));
|
|
29
|
-
const collectedOldAmount = (0, _utils.getAmountByAccountNumber)(oldEntries, ['4457'], 0);
|
|
30
|
-
const collectedNewAmount = (0, _utils.getAmountByAccountNumber)(newEntries, ['4457'], 0);
|
|
29
|
+
const collectedOldAmount = (0, _utils.getAmountByAccountNumber)(oldEntries, ['4457'], 0, true);
|
|
30
|
+
const collectedNewAmount = (0, _utils.getAmountByAccountNumber)(newEntries, ['4457'], 0, true);
|
|
31
31
|
const deductedOldAmount = (0, _utils.getAmountByAccountNumber)(oldEntries, ['4456'], 0);
|
|
32
32
|
const deductedNewAmount = (0, _utils.getAmountByAccountNumber)(newEntries, ['4456'], 0);
|
|
33
33
|
const mxCollected = collectedNewAmount - collectedOldAmount;
|