@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.
Files changed (110) hide show
  1. package/es/api/resources/BalanceSheet.d.ts +2 -1
  2. package/es/api/resources/BalanceSheet.d.ts.map +1 -1
  3. package/es/api/resources/BalanceSheet.js +3 -0
  4. package/es/api/resources/BalanceSheet.js.map +1 -1
  5. package/es/api/resources/ConstitutionHistory.d.ts +7 -0
  6. package/es/api/resources/ConstitutionHistory.d.ts.map +1 -0
  7. package/es/api/resources/ConstitutionHistory.js +12 -0
  8. package/es/api/resources/ConstitutionHistory.js.map +1 -0
  9. package/es/api/resources/Society.d.ts +2 -2
  10. package/es/api/resources/Society.d.ts.map +1 -1
  11. package/es/api/resources/Society.js.map +1 -1
  12. package/es/api/resources/statistic/ExpertAccountant.d.ts +6 -0
  13. package/es/api/resources/statistic/ExpertAccountant.d.ts.map +1 -1
  14. package/es/api/resources/statistic/ExpertAccountant.js +9 -0
  15. package/es/api/resources/statistic/ExpertAccountant.js.map +1 -1
  16. package/es/api/resources.d.ts +2 -0
  17. package/es/api/resources.d.ts.map +1 -1
  18. package/es/api/resources.js +2 -0
  19. package/es/api/resources.js.map +1 -1
  20. package/es/types/Enum/BalanceSheet.d.ts +30 -19
  21. package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
  22. package/es/types/Enum/BalanceSheet.js +52 -18
  23. package/es/types/Enum/BalanceSheet.js.map +1 -1
  24. package/es/types/Enum/ClientOrProspect.d.ts +9 -0
  25. package/es/types/Enum/ClientOrProspect.d.ts.map +1 -0
  26. package/es/types/Enum/ClientOrProspect.js +16 -0
  27. package/es/types/Enum/ClientOrProspect.js.map +1 -0
  28. package/es/types/Enum/MailAuto.d.ts +1 -0
  29. package/es/types/Enum/MailAuto.d.ts.map +1 -1
  30. package/es/types/Enum/MailAuto.js +1 -0
  31. package/es/types/Enum/MailAuto.js.map +1 -1
  32. package/es/types/Enum/Quality.d.ts +8 -1
  33. package/es/types/Enum/Quality.d.ts.map +1 -1
  34. package/es/types/Enum/Quality.js +61 -0
  35. package/es/types/Enum/Quality.js.map +1 -1
  36. package/es/types/Interface/api/accountingFiles/Ocr.d.ts +1 -0
  37. package/es/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -1
  38. package/es/types/Interface/api/accountingFiles/Ocr.js.map +1 -1
  39. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +1 -0
  40. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -1
  41. package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
  42. package/es/types/Interface/api/balanceSheet/Query.d.ts +3 -0
  43. package/es/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
  44. package/es/types/Interface/api/balanceSheet/Query.js +7 -0
  45. package/es/types/Interface/api/balanceSheet/Query.js.map +1 -1
  46. package/es/types/Interface/api/balanceSheet/Read.d.ts +5 -0
  47. package/es/types/Interface/api/balanceSheet/Read.d.ts.map +1 -1
  48. package/es/types/Interface/api/balanceSheet/Read.js.map +1 -1
  49. package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.d.ts +6 -0
  50. package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.d.ts.map +1 -0
  51. package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js +32 -0
  52. package/es/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js.map +1 -0
  53. package/es/types/Interface/models/IConstitutionHistory.d.ts +9 -0
  54. package/es/types/Interface/models/IConstitutionHistory.d.ts.map +1 -0
  55. package/es/types/Interface/models/IConstitutionHistory.js +2 -0
  56. package/es/types/Interface/models/IConstitutionHistory.js.map +1 -0
  57. package/es/types/index.d.ts +3 -0
  58. package/es/types/index.d.ts.map +1 -1
  59. package/es/types/index.js +3 -0
  60. package/es/types/index.js.map +1 -1
  61. package/es/utils/vat/3310/century23.js +2 -2
  62. package/es/utils/vat/3310/century23.js.map +1 -1
  63. package/js/api/resources/BalanceSheet.js +5 -0
  64. package/js/api/resources/BalanceSheet.js.map +1 -1
  65. package/js/api/resources/ConstitutionHistory.js +19 -0
  66. package/js/api/resources/ConstitutionHistory.js.map +1 -0
  67. package/js/api/resources/Society.js.map +1 -1
  68. package/js/api/resources/statistic/ExpertAccountant.js +13 -0
  69. package/js/api/resources/statistic/ExpertAccountant.js.map +1 -1
  70. package/js/api/resources.js +3 -1
  71. package/js/api/resources.js.map +1 -1
  72. package/js/types/Enum/BalanceSheet.js +48 -19
  73. package/js/types/Enum/BalanceSheet.js.map +1 -1
  74. package/js/types/Enum/ClientOrProspect.js +18 -0
  75. package/js/types/Enum/ClientOrProspect.js.map +1 -0
  76. package/js/types/Enum/MailAuto.js +1 -0
  77. package/js/types/Enum/MailAuto.js.map +1 -1
  78. package/js/types/Enum/Quality.js +46 -0
  79. package/js/types/Enum/Quality.js.map +1 -1
  80. package/js/types/Interface/api/accountingFiles/Ocr.js.map +1 -1
  81. package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
  82. package/js/types/Interface/api/balanceSheet/Query.js +4 -1
  83. package/js/types/Interface/api/balanceSheet/Query.js.map +1 -1
  84. package/js/types/Interface/api/balanceSheet/Read.js.map +1 -1
  85. package/js/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js +28 -0
  86. package/js/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.js.map +1 -0
  87. package/js/types/Interface/models/IConstitutionHistory.js +6 -0
  88. package/js/types/Interface/models/IConstitutionHistory.js.map +1 -0
  89. package/js/types/index.js +30 -0
  90. package/js/types/index.js.map +1 -1
  91. package/js/utils/vat/3310/century23.js +2 -2
  92. package/js/utils/vat/3310/century23.js.map +1 -1
  93. package/package.json +1 -1
  94. package/ts/api/resources/BalanceSheet.ts +5 -1
  95. package/ts/api/resources/ConstitutionHistory.ts +20 -0
  96. package/ts/api/resources/Society.ts +2 -2
  97. package/ts/api/resources/statistic/ExpertAccountant.ts +13 -0
  98. package/ts/api/resources.ts +2 -0
  99. package/ts/types/Enum/BalanceSheet.ts +53 -18
  100. package/ts/types/Enum/ClientOrProspect.ts +15 -0
  101. package/ts/types/Enum/MailAuto.ts +1 -0
  102. package/ts/types/Enum/Quality.ts +63 -1
  103. package/ts/types/Interface/api/accountingFiles/Ocr.ts +1 -0
  104. package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +1 -0
  105. package/ts/types/Interface/api/balanceSheet/Query.ts +6 -0
  106. package/ts/types/Interface/api/balanceSheet/Read.ts +6 -0
  107. package/ts/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.ts +21 -0
  108. package/ts/types/Interface/models/IConstitutionHistory.ts +8 -0
  109. package/ts/types/index.ts +3 -0
  110. 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;