@silexpert/core 1.1.110 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.110",
3
+ "version": "1.1.112",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -28,8 +28,8 @@ export function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry
28
28
  const oldEntries = flatten(updatedEntries?.map((u) => u.old));
29
29
  const newEntries = flatten(updatedEntries?.map((u) => u.new));
30
30
 
31
- const collectedOldAmount = getAmountByAccountNumber(oldEntries, ['4457'], 0);
32
- const collectedNewAmount = getAmountByAccountNumber(newEntries, ['4457'], 0);
31
+ const collectedOldAmount = getAmountByAccountNumber(oldEntries, ['4457'], 0, true);
32
+ const collectedNewAmount = getAmountByAccountNumber(newEntries, ['4457'], 0, true);
33
33
 
34
34
  const deductedOldAmount = getAmountByAccountNumber(oldEntries, ['4456'], 0);
35
35
  const deductedNewAmount = getAmountByAccountNumber(newEntries, ['4456'], 0);