@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
|
@@ -5130,7 +5130,6 @@ var RJMapperBuilderClass = /** @class */ (function () {
|
|
|
5130
5130
|
(/** @type {?} */ (_this)).rjObject[element.externalTenderKey].push(obj);
|
|
5131
5131
|
}
|
|
5132
5132
|
else {
|
|
5133
|
-
debugger;
|
|
5134
5133
|
/** @type {?} */
|
|
5135
5134
|
var obj1 = {
|
|
5136
5135
|
XMLSchemaVersion: "1",
|
|
@@ -6519,9 +6518,12 @@ var WebReturnMapperBuilderClass = /** @class */ (function () {
|
|
|
6519
6518
|
refundedQuantity: (element.qty_refunded) ? Number((/** @type {?} */ (_this)).getText((/** @type {?} */ (_this)).document.items.item.qty_refunded)) : 0,
|
|
6520
6519
|
price: (element.original_price) ? Number((/** @type {?} */ (_this)).getText(element.original_price)) : 0,
|
|
6521
6520
|
itemLineId: (element.item_id) ? Number((/** @type {?} */ (_this)).getText(element.item_id)) : 0,
|
|
6522
|
-
totalLinePrice: (element.row_invoiced) ? Number(
|
|
6521
|
+
// totalLinePrice: (element.row_invoiced) ? Number(this.getText(element.row_invoiced)) : 0,
|
|
6522
|
+
totalLinePrice: (element.qty_ordered - element.qty_refunded) * element.base_original_price || 0,
|
|
6523
6523
|
};
|
|
6524
|
-
(
|
|
6524
|
+
if (product && product.price != 0) {
|
|
6525
|
+
(/** @type {?} */ (_this)).webReturnObject.basket['products'].push(product);
|
|
6526
|
+
}
|
|
6525
6527
|
}));
|
|
6526
6528
|
}
|
|
6527
6529
|
else {
|
|
@@ -6532,11 +6534,14 @@ var WebReturnMapperBuilderClass = /** @class */ (function () {
|
|
|
6532
6534
|
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,
|
|
6533
6535
|
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,
|
|
6534
6536
|
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,
|
|
6535
|
-
totalLinePrice: (
|
|
6537
|
+
// totalLinePrice: (this.document.items && this.document.items.item && this.document.items.item.row_invoiced) ? Number(this.getText(this.document.items.item.row_invoiced)) : 0,
|
|
6538
|
+
totalLinePrice: ((/** @type {?} */ (this)).document.items.item.qty_ordered - (/** @type {?} */ (this)).document.items.item.qty_refunded) * (/** @type {?} */ (this)).document.items.item.base_original_price || 0,
|
|
6536
6539
|
};
|
|
6540
|
+
if (product && product.price != 0) {
|
|
6541
|
+
(/** @type {?} */ (this)).webReturnObject.basket['products'].push(product);
|
|
6542
|
+
}
|
|
6537
6543
|
}
|
|
6538
6544
|
}
|
|
6539
|
-
(/** @type {?} */ (this)).webReturnObject.basket['products'].push(product);
|
|
6540
6545
|
return (/** @type {?} */ (this));
|
|
6541
6546
|
};
|
|
6542
6547
|
/**
|