@pmcretail/mapper-library 0.0.19 → 0.0.21
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/bundles/pmcretail-mapper-library.umd.js +10 -5
- package/bundles/pmcretail-mapper-library.umd.js.map +1 -1
- package/bundles/pmcretail-mapper-library.umd.min.js +1 -1
- package/bundles/pmcretail-mapper-library.umd.min.js.map +1 -1
- package/esm2015/lib/RJ-mapper.class.js +1 -2
- package/esm2015/lib/WebReturn-mapper.class.js +11 -5
- package/esm5/lib/RJ-mapper.class.js +1 -2
- package/esm5/lib/WebReturn-mapper.class.js +11 -5
- package/fesm2015/pmcretail-mapper-library.js +10 -5
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/fesm5/pmcretail-mapper-library.js +10 -5
- package/fesm5/pmcretail-mapper-library.js.map +1 -1
- package/package.json +1 -1
|
@@ -5350,7 +5350,6 @@
|
|
|
5350
5350
|
(/** @type {?} */ (_this)).rjObject[element.externalTenderKey].push(obj);
|
|
5351
5351
|
}
|
|
5352
5352
|
else {
|
|
5353
|
-
debugger;
|
|
5354
5353
|
/** @type {?} */
|
|
5355
5354
|
var obj1 = {
|
|
5356
5355
|
XMLSchemaVersion: "1",
|
|
@@ -6739,9 +6738,12 @@
|
|
|
6739
6738
|
refundedQuantity: (element.qty_refunded) ? Number((/** @type {?} */ (_this)).getText((/** @type {?} */ (_this)).document.items.item.qty_refunded)) : 0,
|
|
6740
6739
|
price: (element.original_price) ? Number((/** @type {?} */ (_this)).getText(element.original_price)) : 0,
|
|
6741
6740
|
itemLineId: (element.item_id) ? Number((/** @type {?} */ (_this)).getText(element.item_id)) : 0,
|
|
6742
|
-
totalLinePrice: (element.row_invoiced) ? Number(
|
|
6741
|
+
// totalLinePrice: (element.row_invoiced) ? Number(this.getText(element.row_invoiced)) : 0,
|
|
6742
|
+
totalLinePrice: (element.qty_ordered - element.qty_refunded) * element.base_original_price || 0,
|
|
6743
6743
|
};
|
|
6744
|
-
(
|
|
6744
|
+
if (product && product.price != 0) {
|
|
6745
|
+
(/** @type {?} */ (_this)).webReturnObject.basket['products'].push(product);
|
|
6746
|
+
}
|
|
6745
6747
|
}));
|
|
6746
6748
|
}
|
|
6747
6749
|
else {
|
|
@@ -6752,11 +6754,14 @@
|
|
|
6752
6754
|
refundedQuantity: ((/** @type {?} */ (this)).document.items && (/** @type {?} */ (this)).document.items.item && (/** @type {?} */ (this)).document.items.item.qty_refunded) ? Number((/** @type {?} */ (this)).getText((/** @type {?} */ (this)).document.items.item.qty_refunded)) : 0,
|
|
6753
6755
|
price: ((/** @type {?} */ (this)).document.items && (/** @type {?} */ (this)).document.items.item && (/** @type {?} */ (this)).document.items.item.original_price) ? Number((/** @type {?} */ (this)).getText((/** @type {?} */ (this)).document.items.item.original_price)) : 0,
|
|
6754
6756
|
itemLineId: ((/** @type {?} */ (this)).document.items && (/** @type {?} */ (this)).document.items.item && (/** @type {?} */ (this)).document.items.item.item_id) ? Number((/** @type {?} */ (this)).getText((/** @type {?} */ (this)).document.items.item.item_id)) : 0,
|
|
6755
|
-
totalLinePrice: (
|
|
6757
|
+
// totalLinePrice: (this.document.items && this.document.items.item && this.document.items.item.row_invoiced) ? Number(this.getText(this.document.items.item.row_invoiced)) : 0,
|
|
6758
|
+
totalLinePrice: ((/** @type {?} */ (this)).document.items.item.qty_ordered - (/** @type {?} */ (this)).document.items.item.qty_refunded) * (/** @type {?} */ (this)).document.items.item.base_original_price || 0,
|
|
6756
6759
|
};
|
|
6760
|
+
if (product && product.price != 0) {
|
|
6761
|
+
(/** @type {?} */ (this)).webReturnObject.basket['products'].push(product);
|
|
6762
|
+
}
|
|
6757
6763
|
}
|
|
6758
6764
|
}
|
|
6759
|
-
(/** @type {?} */ (this)).webReturnObject.basket['products'].push(product);
|
|
6760
6765
|
return (/** @type {?} */ (this));
|
|
6761
6766
|
};
|
|
6762
6767
|
/**
|