facturas 0.22.0 → 0.22.1
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.
|
@@ -2499,7 +2499,11 @@ function mapWsfexVoucherInfo(raw) {
|
|
|
2499
2499
|
);
|
|
2500
2500
|
assignWsfexValue(voucher, "paymentTerms", readWsfexText(raw.Forma_pago));
|
|
2501
2501
|
assignWsfexValue(voucher, "incoterms", readWsfexText(raw.Incoterms));
|
|
2502
|
-
assignWsfexValue(
|
|
2502
|
+
assignWsfexValue(
|
|
2503
|
+
voucher,
|
|
2504
|
+
"incotermsDetail",
|
|
2505
|
+
readWsfexIncotermsDetail(raw.Incoterms_Ds)
|
|
2506
|
+
);
|
|
2503
2507
|
assignWsfexValue(voucher, "language", readWsfexNumber(raw.Idioma_cbte));
|
|
2504
2508
|
assignWsfexValue(voucher, "paymentDate", readWsfexText(raw.Fecha_pago));
|
|
2505
2509
|
assignWsfexValue(
|
|
@@ -2588,6 +2592,10 @@ function readWsfexTaxId(value) {
|
|
|
2588
2592
|
const text2 = readWsfexText(value);
|
|
2589
2593
|
return text2 !== void 0 && /^\d+$/.test(text2) && Number(text2) !== 0 ? text2 : void 0;
|
|
2590
2594
|
}
|
|
2595
|
+
function readWsfexIncotermsDetail(value) {
|
|
2596
|
+
const text2 = readWsfexText(value);
|
|
2597
|
+
return text2 === "0" ? void 0 : text2;
|
|
2598
|
+
}
|
|
2591
2599
|
function readWsfexFlag(value) {
|
|
2592
2600
|
const flag = normalizeWsfexResult(value);
|
|
2593
2601
|
return flag === "S" || flag === "N" ? flag : void 0;
|
|
@@ -4722,7 +4730,8 @@ function fiscalIdentity(voucher) {
|
|
|
4722
4730
|
]),
|
|
4723
4731
|
paymentTerms: trimmed(voucher.paymentTerms),
|
|
4724
4732
|
incoterms: trimmed(voucher.incoterms),
|
|
4725
|
-
|
|
4733
|
+
// ARCA stores no detail as "0", and the lookup reads "0" as absent.
|
|
4734
|
+
incotermsDetail: trimmed(voucher.incotermsDetail) === "0" ? void 0 : trimmed(voucher.incotermsDetail),
|
|
4726
4735
|
language: voucher.language,
|
|
4727
4736
|
items: voucher.items.map((item) => [
|
|
4728
4737
|
trimmed(item.code),
|
|
@@ -8247,4 +8256,4 @@ export {
|
|
|
8247
8256
|
createArcaClient,
|
|
8248
8257
|
createFileStore
|
|
8249
8258
|
};
|
|
8250
|
-
//# sourceMappingURL=chunk-
|
|
8259
|
+
//# sourceMappingURL=chunk-6BLEIM5F.mjs.map
|