foodbot-cart-calculations 1.0.16 → 1.0.17
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.
|
@@ -251,10 +251,15 @@ function calculatePackageItemTax(cart, itemIndex, element, tax_settings, afterDi
|
|
|
251
251
|
function calculateModiTax(cart, itemIndex, element, tax_settings, afterDicsount, taxType) {
|
|
252
252
|
return new Promise(async (resolve, reject) => {
|
|
253
253
|
if (element && element.item_modifiers && element.item_modifiers.length > 0) {
|
|
254
|
-
|
|
254
|
+
|
|
255
255
|
element.item_modifiers.forEach((modi, modiIndex) => {
|
|
256
|
+
let itemModiTotalTax = 0
|
|
256
257
|
let taxId = []
|
|
257
|
-
let iepsTax;
|
|
258
|
+
let iepsTax;
|
|
259
|
+
//code commented for test
|
|
260
|
+
|
|
261
|
+
//code gain commented for push
|
|
262
|
+
|
|
258
263
|
if (modi.is_tax_rate_same == 1) {
|
|
259
264
|
if (modi.linked_product && modi.linked_product.product_tax_id) {
|
|
260
265
|
taxId = modi.linked_product.product_tax_id
|
|
@@ -368,8 +373,9 @@ function calculatePackageModiTax(cart, itemIndex, element, tax_settings, afterDi
|
|
|
368
373
|
element.package_items.forEach((packageItem, packageItemIndex) => {
|
|
369
374
|
element.package_items[packageItemIndex].tax_amount_modifier = 0
|
|
370
375
|
if (packageItem.modifiers.length > 0) {
|
|
371
|
-
|
|
376
|
+
|
|
372
377
|
packageItem.modifiers.forEach((modi, modiIndex) => {
|
|
378
|
+
let itemModiTotalTax = 0;
|
|
373
379
|
let taxId = []
|
|
374
380
|
let iepsTax;
|
|
375
381
|
if (modi.is_tax_rate_same == 1) {
|
package/package.json
CHANGED