@pmcretail/mapper-library 0.0.9 → 0.0.11
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 +28 -86
- 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 +29 -74
- package/esm2015/lib/mapper-library.component.js +5 -5
- package/esm2015/lib/mapper-library.module.js +1 -1
- package/esm5/lib/RJ-mapper.class.js +29 -87
- package/esm5/lib/mapper-library.component.js +1 -1
- package/esm5/lib/mapper-library.module.js +1 -1
- package/fesm2015/pmcretail-mapper-library.js +32 -77
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/fesm5/pmcretail-mapper-library.js +28 -86
- package/fesm5/pmcretail-mapper-library.js.map +1 -1
- package/lib/RJ-mapper.class.d.ts +1 -4
- package/package.json +1 -1
- package/pmcretail-mapper-library.metadata.json +1 -1
|
@@ -26,4 +26,4 @@ var MapperLibraryComponent = /** @class */ (function () {
|
|
|
26
26
|
return MapperLibraryComponent;
|
|
27
27
|
}());
|
|
28
28
|
export { MapperLibraryComponent };
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwcGVyLWxpYnJhcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHBtY3JldGFpbC9tYXBwZXItbGlicmFyeS8iLCJzb3VyY2VzIjpbImxpYi9tYXBwZXItbGlicmFyeS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBRWxEO0lBWUU7SUFBZ0IsQ0FBQzs7OztJQUVqQix5Q0FBUTs7O0lBQVI7SUFDQSxDQUFDOztnQkFmRixTQUFTLFNBQUM7b0JBQ1QsUUFBUSxFQUFFLG9CQUFvQjtvQkFDOUIsUUFBUSxFQUFFLHNEQUlUO2lCQUdGOzs7O0lBUUQsNkJBQUM7Q0FBQSxBQWpCRCxJQWlCQztTQVBZLHNCQUFzQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2xpYi1tYXBwZXItbGlicmFyeScsXG4gIHRlbXBsYXRlOiBgXG4gICAgPHA+XG4gICAgICBtYXBwZXItbGlicmFyeSB3b3JrcyFcbiAgICA8L3A+XG4gIGAsXG4gIHN0eWxlczogW1xuICBdXG59KVxuZXhwb3J0IGNsYXNzIE1hcHBlckxpYnJhcnlDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gIH1cblxufVxuIl19
|
|
@@ -22,4 +22,4 @@ var MapperLibraryModule = /** @class */ (function () {
|
|
|
22
22
|
return MapperLibraryModule;
|
|
23
23
|
}());
|
|
24
24
|
export { MapperLibraryModule };
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwcGVyLWxpYnJhcnkubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHBtY3JldGFpbC9tYXBwZXItbGlicmFyeS8iLCJzb3VyY2VzIjpbImxpYi9tYXBwZXItbGlicmFyeS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBSXBFO0lBQUE7SUFVbUMsQ0FBQzs7Z0JBVm5DLFFBQVEsU0FBQztvQkFDUixZQUFZLEVBQUU7d0JBQ1osc0JBQXNCO3FCQUN2QjtvQkFDRCxPQUFPLEVBQUUsRUFDUjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1Asc0JBQXNCO3FCQUN2QjtpQkFDRjs7SUFDa0MsMEJBQUM7Q0FBQSxBQVZwQyxJQVVvQztTQUF2QixtQkFBbUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgTWFwcGVyTGlicmFyeUNvbXBvbmVudCB9IGZyb20gJy4vbWFwcGVyLWxpYnJhcnkuY29tcG9uZW50JztcblxuXG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIE1hcHBlckxpYnJhcnlDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICBdLFxuICBleHBvcnRzOiBbXG4gICAgTWFwcGVyTGlicmFyeUNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIE1hcHBlckxpYnJhcnlNb2R1bGUgeyB9XG4iXX0=
|
|
@@ -18,10 +18,10 @@ class MapperLibraryComponent {
|
|
|
18
18
|
MapperLibraryComponent.decorators = [
|
|
19
19
|
{ type: Component, args: [{
|
|
20
20
|
selector: 'lib-mapper-library',
|
|
21
|
-
template: `
|
|
22
|
-
<p>
|
|
23
|
-
mapper-library works!
|
|
24
|
-
</p>
|
|
21
|
+
template: `
|
|
22
|
+
<p>
|
|
23
|
+
mapper-library works!
|
|
24
|
+
</p>
|
|
25
25
|
`
|
|
26
26
|
}] }
|
|
27
27
|
];
|
|
@@ -3563,7 +3563,7 @@ class RJMapperBuilderClass {
|
|
|
3563
3563
|
(/** @type {?} */ (this)).rjObject['Header'].TradingRegionID = (/** @type {?} */ (this)).tradingRegionId;
|
|
3564
3564
|
(/** @type {?} */ (this)).rjObject['Header'].Eurozone = " "; //unknown
|
|
3565
3565
|
(/** @type {?} */ (this)).rjObject['Header'].EuroBaseExchangeRate = ""; //unknown
|
|
3566
|
-
(/** @type {?} */ (this)).rjObject['Header'].PrintableName =
|
|
3566
|
+
(/** @type {?} */ (this)).rjObject['Header'].PrintableName = (/** @type {?} */ (this)).transactionDocument.userName; //unknown
|
|
3567
3567
|
return (/** @type {?} */ (this));
|
|
3568
3568
|
}
|
|
3569
3569
|
/**
|
|
@@ -3696,18 +3696,11 @@ class RJMapperBuilderClass {
|
|
|
3696
3696
|
obj['NetValue'] = element.discountAmount < 0 ? element.discountAmount : -element.discountAmount;
|
|
3697
3697
|
obj['EffectiveNetValue'] = element.discountAmount < 0 ? element.discountAmount : -element.discountAmount;
|
|
3698
3698
|
obj['Description'] = element.reasonCode;
|
|
3699
|
-
obj['UserID'] = (/** @type {?} */ (this)).transactionDocument.
|
|
3699
|
+
obj['UserID'] = (/** @type {?} */ (this)).transactionDocument.userName;
|
|
3700
3700
|
obj['ReasonCodeID'] = element.reasonCode;
|
|
3701
3701
|
obj['DiscountType'] = element.discountType.toUpperCase() == DISCOUNTTYPE.PERCENT.toUpperCase() ? 0 : 1; // todo - compare values
|
|
3702
3702
|
obj['RoundingRule'] = 2;
|
|
3703
|
-
obj['ModifiedLineNumber '] =
|
|
3704
|
-
element.itemLineIds.forEach((/**
|
|
3705
|
-
* @param {?} element
|
|
3706
|
-
* @return {?}
|
|
3707
|
-
*/
|
|
3708
|
-
(element) => {
|
|
3709
|
-
obj['ModifiedLineNumber'].push(element);
|
|
3710
|
-
}));
|
|
3703
|
+
obj['ModifiedLineNumber '] = element.itemLineIds;
|
|
3711
3704
|
obj['LineNumber'] = (/** @type {?} */ (this)).generateLineNumber();
|
|
3712
3705
|
// obj['DiscountedValue'] = obj['discountAmount'] // todo - confirm value before discount;
|
|
3713
3706
|
// obj['DiscountPercentage'] = obj['discountAmount'] / 100 ; // todo - optional
|
|
@@ -3730,9 +3723,9 @@ class RJMapperBuilderClass {
|
|
|
3730
3723
|
obj.EffectiveNetValue = 0;
|
|
3731
3724
|
obj.Description = data.percentageDiscountReasonName ? data.percentageDiscountReasonName : data.priceOverrideReasonName;
|
|
3732
3725
|
obj.DeviceID = this.deviceId;
|
|
3733
|
-
obj.UserID = this.
|
|
3726
|
+
obj.UserID = this.transactionDocument.userName;
|
|
3734
3727
|
obj.DateTimeCreated = this.updatedAt;
|
|
3735
|
-
obj.AuthorisingUserID = this.
|
|
3728
|
+
obj.AuthorisingUserID = this.transactionDocument.userName;
|
|
3736
3729
|
obj.ReasonCodeID = data.percentageDiscountReasonCode ? data.percentageDiscountReasonCode : data.priceOverrideReasonCode;
|
|
3737
3730
|
obj.ModifiedLineNumber = lineNo;
|
|
3738
3731
|
obj.ModifiedIndex = 1;
|
|
@@ -3748,8 +3741,8 @@ class RJMapperBuilderClass {
|
|
|
3748
3741
|
(/** @type {?} */ (this)).rjObject['Trailer'] = {};
|
|
3749
3742
|
(/** @type {?} */ (this)).rjObject.Trailer.DateTimeCompleted = (/** @type {?} */ (this)).updatedAt;
|
|
3750
3743
|
(/** @type {?} */ (this)).rjObject.Trailer.CompletedBy = {};
|
|
3751
|
-
(/** @type {?} */ (this)).rjObject.Trailer.CompletedBy.DeviceID = (/** @type {?} */ (this)).deviceId;
|
|
3752
|
-
(/** @type {?} */ (this)).rjObject.Trailer.CompletedBy.CashierID = (/** @type {?} */ (this)).cashierId;
|
|
3744
|
+
(/** @type {?} */ (this)).rjObject.Trailer.CompletedBy.DeviceID = (/** @type {?} */ (this)).deviceId;
|
|
3745
|
+
(/** @type {?} */ (this)).rjObject.Trailer.CompletedBy.CashierID = (/** @type {?} */ (this)).cashierId;
|
|
3753
3746
|
(/** @type {?} */ (this)).rjObject.Trailer.CompletedBy.StoreID = (/** @type {?} */ (this)).transactionDocument.storeId;
|
|
3754
3747
|
(/** @type {?} */ (this)).rjObject.Trailer.CompletedBy.BranchID = (/** @type {?} */ (this)).branchId;
|
|
3755
3748
|
(/** @type {?} */ (this)).rjObject.Trailer.CompletedBy.TerminalNumber = (/** @type {?} */ (this)).transactionDocument.terminalId;
|
|
@@ -3842,28 +3835,20 @@ class RJMapperBuilderClass {
|
|
|
3842
3835
|
* @return {?}
|
|
3843
3836
|
*/
|
|
3844
3837
|
(element) => {
|
|
3845
|
-
/** @type {?} */
|
|
3846
|
-
let value = (/** @type {?} */ (this)).paymentTypes.filter((/**
|
|
3847
|
-
* @param {?} x
|
|
3848
|
-
* @return {?}
|
|
3849
|
-
*/
|
|
3850
|
-
x => x.name.toUpperCase() === element.paymentType.toUpperCase()));
|
|
3851
3838
|
if (element.paymentType.toUpperCase() === 'GIFT CARD') {
|
|
3852
3839
|
/** @type {?} */
|
|
3853
3840
|
let obj = {
|
|
3854
3841
|
XMLSchemaVersion: (/** @type {?} */ (this)).xmlSchemaVersion,
|
|
3855
3842
|
LineNumber: (/** @type {?} */ (this)).generateLineNumber(),
|
|
3856
|
-
NetValue: (/** @type {?} */ (this)).convertToString(-1 * (Math.round(element.amount))),
|
|
3857
|
-
EffectiveNetValue: (/** @type {?} */ (this)).convertToString(-1 * (Math.round(element.amount))),
|
|
3858
|
-
Description: (/** @type {?} */ (this)).getDescription(
|
|
3843
|
+
NetValue: (/** @type {?} */ (this)).convertToString(-1 * (/** @type {?} */ (this)).removeDecimal((Math.round(element.amount)))),
|
|
3844
|
+
EffectiveNetValue: (/** @type {?} */ (this)).convertToString(-1 * (/** @type {?} */ (this)).removeDecimal((Math.round(element.amount)))),
|
|
3845
|
+
Description: (/** @type {?} */ (this)).getDescription(element),
|
|
3859
3846
|
DeviceID: (/** @type {?} */ (this)).deviceId,
|
|
3860
|
-
|
|
3861
|
-
UserID: (/** @type {?} */ (this)).userId,
|
|
3862
|
-
//todo
|
|
3847
|
+
UserID: (/** @type {?} */ (this)).transactionDocument.userName,
|
|
3863
3848
|
DateTimeCreated: (/** @type {?} */ (this)).updatedAt,
|
|
3864
|
-
TenderType:
|
|
3865
|
-
TenderSubType:
|
|
3866
|
-
TenderAmount: (/** @type {?} */ (this)).convertToString(-1 * (Math.round(element.amount))),
|
|
3849
|
+
TenderType: element.externalTenderType ? element.externalTenderType : '',
|
|
3850
|
+
TenderSubType: element.externalSubTenderType ? element.externalSubTenderType : '',
|
|
3851
|
+
TenderAmount: (/** @type {?} */ (this)).convertToString(-1 * (/** @type {?} */ (this)).removeDecimal((Math.round(element.amount)))),
|
|
3867
3852
|
CurrencyID: (/** @type {?} */ (this)).transactionDocument.baseCurrency,
|
|
3868
3853
|
CurrencyDescription: (/** @type {?} */ (this)).transactionDocument.baseCurrency,
|
|
3869
3854
|
GiftVoucherSalesAllowed: '',
|
|
@@ -3882,14 +3867,12 @@ class RJMapperBuilderClass {
|
|
|
3882
3867
|
//todo
|
|
3883
3868
|
NetValue: JSON.stringify(-1 * (Math.round(element.amount))),
|
|
3884
3869
|
EffectiveNetValue: JSON.stringify(-1 * (Math.round(element.amount))),
|
|
3885
|
-
Description: (/** @type {?} */ (this)).getDescription(
|
|
3870
|
+
Description: (/** @type {?} */ (this)).getDescription(element),
|
|
3886
3871
|
DeviceID: (/** @type {?} */ (this)).deviceId,
|
|
3887
|
-
|
|
3888
|
-
UserID: (/** @type {?} */ (this)).userId,
|
|
3889
|
-
//todo
|
|
3872
|
+
UserID: (/** @type {?} */ (this)).transactionDocument.userName,
|
|
3890
3873
|
DateTimeCreated: (/** @type {?} */ (this)).updatedAt,
|
|
3891
|
-
TenderType:
|
|
3892
|
-
TenderSubType:
|
|
3874
|
+
TenderType: element.externalTenderType ? element.externalTenderType : '',
|
|
3875
|
+
TenderSubType: element.externalSubTenderType ? element.externalSubTenderType : '',
|
|
3893
3876
|
TenderAmount: JSON.stringify(-1 * (Math.round(element.amount))),
|
|
3894
3877
|
CurrencyID: (/** @type {?} */ (this)).transactionDocument.baseCurrency,
|
|
3895
3878
|
CurrencyDescription: (/** @type {?} */ (this)).transactionDocument.baseCurrency,
|
|
@@ -3944,16 +3927,15 @@ class RJMapperBuilderClass {
|
|
|
3944
3927
|
return this.rjObject;
|
|
3945
3928
|
}
|
|
3946
3929
|
/**
|
|
3947
|
-
* @param {?} paymentType
|
|
3948
3930
|
* @param {?} element
|
|
3949
3931
|
* @return {?}
|
|
3950
3932
|
*/
|
|
3951
|
-
getDescription(
|
|
3952
|
-
if (paymentType.toUpperCase() === 'CARD') {
|
|
3933
|
+
getDescription(element) {
|
|
3934
|
+
if (element.paymentType.toUpperCase() === 'CARD') {
|
|
3953
3935
|
return element.cardType;
|
|
3954
3936
|
}
|
|
3955
3937
|
else {
|
|
3956
|
-
return paymentType;
|
|
3938
|
+
return element.paymentType;
|
|
3957
3939
|
}
|
|
3958
3940
|
}
|
|
3959
3941
|
/**
|
|
@@ -3966,16 +3948,6 @@ class RJMapperBuilderClass {
|
|
|
3966
3948
|
(/** @type {?} */ (this)).deviceId = id;
|
|
3967
3949
|
return (/** @type {?} */ (this));
|
|
3968
3950
|
}
|
|
3969
|
-
/**
|
|
3970
|
-
* @template THIS
|
|
3971
|
-
* @this {THIS}
|
|
3972
|
-
* @param {?} id
|
|
3973
|
-
* @return {THIS}
|
|
3974
|
-
*/
|
|
3975
|
-
setUserInfo(id) {
|
|
3976
|
-
(/** @type {?} */ (this)).userId = id;
|
|
3977
|
-
return (/** @type {?} */ (this));
|
|
3978
|
-
}
|
|
3979
3951
|
/**
|
|
3980
3952
|
* @param {?} value
|
|
3981
3953
|
* @return {?}
|
|
@@ -4100,7 +4072,7 @@ class RJMapperBuilderClass {
|
|
|
4100
4072
|
* @return {THIS}
|
|
4101
4073
|
*/
|
|
4102
4074
|
setCashierID(value) {
|
|
4103
|
-
(/** @type {?} */ (this)).cashierId =
|
|
4075
|
+
(/** @type {?} */ (this)).cashierId = ((/** @type {?} */ (this)).transactionDocument && (/** @type {?} */ (this)).transactionDocument.userName) ? (/** @type {?} */ (this)).transactionDocument.userName : '';
|
|
4104
4076
|
return (/** @type {?} */ (this));
|
|
4105
4077
|
}
|
|
4106
4078
|
/**
|
|
@@ -4153,16 +4125,6 @@ class RJMapperBuilderClass {
|
|
|
4153
4125
|
(/** @type {?} */ (this)).branchId = value;
|
|
4154
4126
|
return (/** @type {?} */ (this));
|
|
4155
4127
|
}
|
|
4156
|
-
/**
|
|
4157
|
-
* @template THIS
|
|
4158
|
-
* @this {THIS}
|
|
4159
|
-
* @param {?} value
|
|
4160
|
-
* @return {THIS}
|
|
4161
|
-
*/
|
|
4162
|
-
setPaymentDetails(value) {
|
|
4163
|
-
(/** @type {?} */ (this)).paymentTypes = value;
|
|
4164
|
-
return (/** @type {?} */ (this));
|
|
4165
|
-
}
|
|
4166
4128
|
/**
|
|
4167
4129
|
* @param {?} date
|
|
4168
4130
|
* @return {?}
|
|
@@ -4222,7 +4184,7 @@ class RJMapperBuilderClass {
|
|
|
4222
4184
|
obj['EffectiveNetValue'] = this.removeDecimal(element['refundedTotal']);
|
|
4223
4185
|
obj['Description'] = element['description'];
|
|
4224
4186
|
obj['DeviceID'] = this.transactionDocument['terminalId'];
|
|
4225
|
-
obj['UserID'] = this.
|
|
4187
|
+
obj['UserID'] = this.transactionDocument.userName;
|
|
4226
4188
|
obj['DateTimeCreated'] = this.createdAt;
|
|
4227
4189
|
obj['ExtendedValue'] = this.removeDecimal(element['totalLinePrice'] * -1);
|
|
4228
4190
|
obj['UnitPrice'] = this.removeDecimal(element['price']);
|
|
@@ -4256,7 +4218,7 @@ class RJMapperBuilderClass {
|
|
|
4256
4218
|
obj['Discount'].ModifierDateTime = obj.DateTimeCreated;
|
|
4257
4219
|
obj['Discount'].ModifierReasonID = lineDiscount.percentageDiscountReasonCode;
|
|
4258
4220
|
obj['Discount'].ModifierDescription = lineDiscount.percentageDiscountReasonName;
|
|
4259
|
-
obj['Discount'].AuthorisingUserID = this.
|
|
4221
|
+
obj['Discount'].AuthorisingUserID = this.transactionDocument.userName;
|
|
4260
4222
|
obj['Discount'].DiscountType = lineDiscount.discountType;
|
|
4261
4223
|
obj['Discount'].XMLSchemaVersion = 1;
|
|
4262
4224
|
obj['Discount'].OriginalPrice = this.removeDecimal(lineDiscount.discountAmount + (lineDiscount.discountedLinePrice || 0));
|
|
@@ -4271,7 +4233,7 @@ class RJMapperBuilderClass {
|
|
|
4271
4233
|
obj['PriceOverride'].ModifierDateTime = obj.DateTimeCreated;
|
|
4272
4234
|
obj['PriceOverride'].ModifierReasonID = lineDiscount.priceOverrideReasonCode;
|
|
4273
4235
|
obj['PriceOverride'].ModifierReasonDescription = lineDiscount.priceOverrideReasonName;
|
|
4274
|
-
obj['PriceOverride'].AuthorisingUserID = this.
|
|
4236
|
+
obj['PriceOverride'].AuthorisingUserID = this.transactionDocument.userName;
|
|
4275
4237
|
obj['PriceOverride'].XMLSchemaVersion = 1;
|
|
4276
4238
|
obj['PriceOverride'].NewPrice = this.removeDecimal(lineDiscount.unitPrice);
|
|
4277
4239
|
obj['PriceOverride'].OriginalPrice = this.removeDecimal(lineDiscount.discountedLinePrice || 0 + lineDiscount.discountAmount);
|
|
@@ -4304,9 +4266,7 @@ class RJMapperBuilderClass {
|
|
|
4304
4266
|
EffectiveNetValue: this.removeDecimal(element.totalLinePrice),
|
|
4305
4267
|
Description: element.description,
|
|
4306
4268
|
DeviceID: this.deviceId,
|
|
4307
|
-
|
|
4308
|
-
UserID: this.userId,
|
|
4309
|
-
//to do,
|
|
4269
|
+
UserID: this.transactionDocument.userName,
|
|
4310
4270
|
DateTimeCreated: this.createdAt,
|
|
4311
4271
|
ExtendedValue: this.removeDecimal(element.price),
|
|
4312
4272
|
UnitPrice: this.removeDecimal(element.price),
|
|
@@ -4340,7 +4300,7 @@ class RJMapperBuilderClass {
|
|
|
4340
4300
|
obj['Discount'].ModifierDateTime = obj.DateTimeCreated;
|
|
4341
4301
|
obj['Discount'].ModifierReasonID = lineDiscount.percentageDiscountReasonCode;
|
|
4342
4302
|
obj['Discount'].ModifierDescription = lineDiscount.percentageDiscountReasonName;
|
|
4343
|
-
obj['Discount'].AuthorisingUserID = this.
|
|
4303
|
+
obj['Discount'].AuthorisingUserID = this.transactionDocument.userName;
|
|
4344
4304
|
obj['Discount'].DiscountType = lineDiscount.discountType;
|
|
4345
4305
|
obj['Discount'].XMLSchemaVersion = 1;
|
|
4346
4306
|
obj['Discount'].OriginalPrice = this.removeDecimal(lineDiscount.discountAmount + (lineDiscount.discountedLinePrice || 0));
|
|
@@ -4355,7 +4315,7 @@ class RJMapperBuilderClass {
|
|
|
4355
4315
|
obj['PriceOverride'].ModifierDateTime = obj.DateTimeCreated;
|
|
4356
4316
|
obj['PriceOverride'].ModifierReasonID = lineDiscount.priceOverrideReasonCode;
|
|
4357
4317
|
obj['PriceOverride'].ModifierReasonDescription = lineDiscount.priceOverrideReasonName;
|
|
4358
|
-
obj['PriceOverride'].AuthorisingUserID = this.
|
|
4318
|
+
obj['PriceOverride'].AuthorisingUserID = this.transactionDocument.userName;
|
|
4359
4319
|
obj['PriceOverride'].XMLSchemaVersion = 1;
|
|
4360
4320
|
obj['PriceOverride'].NewPrice = this.removeDecimal(lineDiscount.unitPrice);
|
|
4361
4321
|
obj['PriceOverride'].OriginalPrice = this.removeDecimal(lineDiscount.discountedLinePrice || 0 + lineDiscount.discountAmount);
|
|
@@ -4465,11 +4425,6 @@ if (false) {
|
|
|
4465
4425
|
* @private
|
|
4466
4426
|
*/
|
|
4467
4427
|
RJMapperBuilderClass.prototype.transactionDocument;
|
|
4468
|
-
/**
|
|
4469
|
-
* @type {?}
|
|
4470
|
-
* @private
|
|
4471
|
-
*/
|
|
4472
|
-
RJMapperBuilderClass.prototype.userId;
|
|
4473
4428
|
/**
|
|
4474
4429
|
* @type {?}
|
|
4475
4430
|
* @private
|