tplus-components-touch 3.22.18 → 3.22.19

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.
@@ -217,18 +217,20 @@ var SettlementStore = (_class = function () {
217
217
  detailDTO.isManualFreeGift = item.IsPresent;
218
218
  detailDTO.isListPriceIncludingTax = item.TaxFlag || true;
219
219
  detailDTO.IsManualChangePrice = item.IsManualChangePrice;
220
- if (detailDTO.IsManualChangePrice) //如果是手工改价
221
- {
222
- detailDTO.listPrice = item.TaxPrice;
223
- detailDTO.netAmountWithTax = item.TaxAmount;
224
- } else {
225
- var bookingQuantity = 0;
226
- if (item.BookingQuantity) {
227
- bookingQuantity = item.BookingQuantity;
228
- }
229
- detailDTO.listPrice = item.MemberPrice;
230
- detailDTO.netAmountWithTax = Math.Multiply(item.MemberPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
220
+ // if(detailDTO.IsManualChangePrice)//如果是手工改价
221
+ // {
222
+ // detailDTO.listPrice = item.TaxPrice;
223
+ // detailDTO.netAmountWithTax = item.TaxAmount;
224
+ // }
225
+ // else
226
+ // {
227
+ var bookingQuantity = 0;
228
+ if (item.BookingQuantity) {
229
+ bookingQuantity = item.BookingQuantity;
231
230
  }
231
+ detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
232
+ detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
233
+ //}
232
234
  detailDTO.taxRate = item.TaxRate;
233
235
  detailDTO.quantity = item.Quantity;
234
236