@pmcretail/mapper-library 0.0.6 → 0.0.8

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.
@@ -5086,8 +5086,8 @@ var RJMapperBuilderClass = /** @class */ (function () {
5086
5086
  var obj = {
5087
5087
  XMLSchemaVersion: (/** @type {?} */ (_this)).xmlSchemaVersion,
5088
5088
  LineNumber: (/** @type {?} */ (_this)).generateLineNumber(),
5089
- NetValue: (/** @type {?} */ (_this)).convertToString(-1 * (Math.round(element.amount))),
5090
- EffectiveNetValue: (/** @type {?} */ (_this)).convertToString(-1 * (Math.round(element.amount))),
5089
+ NetValue: (/** @type {?} */ (_this)).convertToString(-1 * (/** @type {?} */ (_this)).removeDecimal((Math.round(element.amount)))),
5090
+ EffectiveNetValue: (/** @type {?} */ (_this)).convertToString(-1 * (/** @type {?} */ (_this)).removeDecimal((Math.round(element.amount)))),
5091
5091
  Description: (/** @type {?} */ (_this)).getDescription(value[0].paymentType, element),
5092
5092
  //todo
5093
5093
  DeviceID: (/** @type {?} */ (_this)).deviceId,
@@ -5097,7 +5097,7 @@ var RJMapperBuilderClass = /** @class */ (function () {
5097
5097
  DateTimeCreated: (/** @type {?} */ (_this)).transactionDocument.updatedAt,
5098
5098
  TenderType: value[0].tenderType,
5099
5099
  TenderSubType: value[0].tenderSubType,
5100
- TenderAmount: (/** @type {?} */ (_this)).convertToString(-1 * (Math.round(element.amount))),
5100
+ TenderAmount: (/** @type {?} */ (_this)).convertToString(-1 * (/** @type {?} */ (_this)).removeDecimal((Math.round(element.amount)))),
5101
5101
  CurrencyID: (/** @type {?} */ (_this)).transactionDocument.baseCurrency,
5102
5102
  CurrencyDescription: (/** @type {?} */ (_this)).transactionDocument.baseCurrency,
5103
5103
  GiftVoucherSalesAllowed: '',