@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.
@@ -326,7 +326,7 @@ function getCerfa3517Century23Payload(accountingEntries, payload) {
326
326
  data.recapitulation.toPay = data.recapitulation.vatNetDue + data.recapitulation.assimiledTax + data.recapitulation.consumsion;
327
327
  data.refund.surplus = shouldFillRefund ? data.net.surplus : 0;
328
328
  data.refund.maximum = shouldFillRefund ? data.refund.creditRefundable + data.refund.surplus : 0;
329
- data.refund.reportable = shouldFillRefund ? data.refund.maximum - data.refund.asked : 0;
329
+ data.refund.reportable = shouldFillRefund && (data.refund.maximum - data.refund.asked) > 0 ? data.refund.maximum - data.refund.asked : 0;
330
330
  data.total = (0, utils_1.setZeroIfIsNegative)(data.vat.total.tax - (data.vat.saleOfImmobilization.tax + data.vat.ownDelivery.tax + data.deductible.total1));
331
331
  return data;
332
332
  }