@silexpert/core 1.1.38 → 1.1.39

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.38",
3
+ "version": "1.1.39",
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",
@@ -322,7 +322,7 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
322
322
  data.net.advance.toPay = data.net.advance1.toPay + data.net.advance2.toPay;
323
323
  data.net.advance.total = data.net.advance.paid + data.net.advance.toPay;
324
324
 
325
- data.net.balance = data.net.due - (data.net.credit + data.net.advance.total) > 0 ? data.net.due - (data.net.due + data.net.advance.total) : 0;
325
+ data.net.balance = data.net.due - (data.net.credit + data.net.advance.total) > 0 ? data.net.due - (data.net.credit + data.net.advance.total) : 0;
326
326
  data.net.surplus = data.net.advance.total - data.net.due > 0 ? data.net.advance.total - data.net.due : 0;
327
327
  data.net.balanceSurplus = data.net.credit + data.net.surplus;
328
328