@freedom_sky/feige-lib 4.51.4 → 4.51.5
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/dist/index.js +5 -0
- package/package.json +1 -1
- package/src/index.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -177,6 +177,11 @@ function calcReceivablePrice(order, processArr, noTax) {
|
|
|
177
177
|
totalDiscountPrice += dishTotalPrice;
|
|
178
178
|
volume_1 += dishTotalPrice * rate_1;
|
|
179
179
|
});
|
|
180
|
+
if (order.type === order_enum_1.OrderTypeEnum.Buffet) {
|
|
181
|
+
var buffetTotalPrice = index_1.calcBuffetTotalPrice(order.buffet.snapshot, order.adultNum, order.childNum);
|
|
182
|
+
totalDiscountPrice += buffetTotalPrice;
|
|
183
|
+
volume_1 += buffetTotalPrice * rate_1;
|
|
184
|
+
}
|
|
180
185
|
resultProcessArr.push({
|
|
181
186
|
type: process.type,
|
|
182
187
|
value: process.value,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -202,6 +202,11 @@ export function calcReceivablePrice(
|
|
|
202
202
|
totalDiscountPrice += dishTotalPrice;
|
|
203
203
|
volume += dishTotalPrice * rate;
|
|
204
204
|
});
|
|
205
|
+
if(order.type === OrderTypeEnum.Buffet) {
|
|
206
|
+
const buffetTotalPrice = calcBuffetTotalPrice(order.buffet.snapshot, order.adultNum, order.childNum)
|
|
207
|
+
totalDiscountPrice += buffetTotalPrice;
|
|
208
|
+
volume += buffetTotalPrice * rate;
|
|
209
|
+
}
|
|
205
210
|
resultProcessArr.push({
|
|
206
211
|
type: process.type,
|
|
207
212
|
value: process.value,
|