@silexpert/core 1.1.337 → 1.1.338
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.
|
|
3
|
+
"version": "1.1.338",
|
|
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": "dist/cjs/index.js",
|
|
@@ -347,7 +347,7 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
|
|
|
347
347
|
|
|
348
348
|
data.refund.surplus = shouldFillRefund ? data.net.surplus : 0;
|
|
349
349
|
data.refund.maximum = shouldFillRefund ? data.refund.creditRefundable + data.refund.surplus : 0;
|
|
350
|
-
data.refund.reportable = shouldFillRefund ? data.refund.maximum - data.refund.asked : 0;
|
|
350
|
+
data.refund.reportable = shouldFillRefund && (data.refund.maximum - data.refund.asked) > 0 ? data.refund.maximum - data.refund.asked : 0;
|
|
351
351
|
|
|
352
352
|
data.total = setZeroIfIsNegative(data.vat.total.tax - (data.vat.saleOfImmobilization.tax + data.vat.ownDelivery.tax + data.deductible.total1));
|
|
353
353
|
|