geer-builder 1.2.762 → 1.2.764
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/GCheckout.vue +26 -5
- package/GManualPaymentPage.vue +2 -0
- package/package.json +1 -1
package/GCheckout.vue
CHANGED
|
@@ -423,6 +423,7 @@ export default {
|
|
|
423
423
|
is_branch_pickup:false,
|
|
424
424
|
is_merchant_free_shipping_conflict:false,
|
|
425
425
|
is_elms_conflict:false,
|
|
426
|
+
is_elms_included:false,
|
|
426
427
|
is_ecom_disable:false,
|
|
427
428
|
is_select_voucher_open:false,
|
|
428
429
|
is_update_address_dialog_open:false,
|
|
@@ -1315,6 +1316,7 @@ export default {
|
|
|
1315
1316
|
}
|
|
1316
1317
|
else if(pro.product.type === "ELMS")
|
|
1317
1318
|
{
|
|
1319
|
+
this.is_elms_included = true;
|
|
1318
1320
|
let check_condition = true;
|
|
1319
1321
|
if(free_shipping_ctr >= 1 && is_merchant_free_shipping !== true && check_condition === true)
|
|
1320
1322
|
{
|
|
@@ -2279,14 +2281,14 @@ export default {
|
|
|
2279
2281
|
this.is_add_address_dialog_open = true;
|
|
2280
2282
|
});
|
|
2281
2283
|
}
|
|
2282
|
-
else if(this.is_merchant_free_shipping_conflict == true)
|
|
2283
|
-
{
|
|
2284
|
-
this.$q.dialog({ html: true, title: `Something's not quite right`, message: `Cannot combine products with shipping fee to a product with free shipping fee please clear your cart.` });
|
|
2285
|
-
}
|
|
2286
2284
|
else if(this.is_elms_conflict == true)
|
|
2287
2285
|
{
|
|
2288
2286
|
this.$q.dialog({ html: true, title: `Something's not quite right`, message: `Cannot combine elms wallet purchase with other products please clear your cart.` });
|
|
2289
2287
|
}
|
|
2288
|
+
else if(this.is_merchant_free_shipping_conflict == true)
|
|
2289
|
+
{
|
|
2290
|
+
this.$q.dialog({ html: true, title: `Something's not quite right`, message: `Cannot combine products with shipping fee to a product with free shipping fee please clear your cart.` });
|
|
2291
|
+
}
|
|
2290
2292
|
else if(!this.checkout_info.shipping_address.first_name ||!this.checkout_info.shipping_address.last_name )
|
|
2291
2293
|
{
|
|
2292
2294
|
this.$q.dialog({ html: true, title: `Something's not quite right`, message: "Please Update Shipping Address First Name/Last Name" }).onOk(async data =>
|
|
@@ -2491,6 +2493,25 @@ export default {
|
|
|
2491
2493
|
}
|
|
2492
2494
|
}
|
|
2493
2495
|
|
|
2496
|
+
if(this.is_elms_included == true)
|
|
2497
|
+
{
|
|
2498
|
+
let copy_list = Object.assign([], this.payment_method_list);
|
|
2499
|
+
for (let [i,asd] of copy_list.entries())
|
|
2500
|
+
{
|
|
2501
|
+
if(asd.payment_method_id == "cod")
|
|
2502
|
+
{
|
|
2503
|
+
let pos = this.payment_method_list.map(function(e) { return e.payment_method_id; }).indexOf('cod');
|
|
2504
|
+
this.payment_method_list.splice(pos, 1);
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
if(asd.payment_method_id == "cod_manual")
|
|
2508
|
+
{
|
|
2509
|
+
let pos = this.payment_method_list.map(function(e) { return e.payment_method_id; }).indexOf('cod_manual');
|
|
2510
|
+
this.payment_method_list.splice(pos, 1);
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2494
2515
|
let ind = this.payment_method_list.map(function(e) { return e.payment_method_id; }).indexOf('online_payment');
|
|
2495
2516
|
if(ind>=0)
|
|
2496
2517
|
{
|
|
@@ -2523,7 +2544,7 @@ export default {
|
|
|
2523
2544
|
}
|
|
2524
2545
|
});
|
|
2525
2546
|
|
|
2526
|
-
|
|
2547
|
+
|
|
2527
2548
|
}
|
|
2528
2549
|
},
|
|
2529
2550
|
changePaymentMethod(event,index)
|
package/GManualPaymentPage.vue
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
<div>Payment: <b>{{this.order_info.payment_method.manual_pay_choice.bank_label}}</b></div>
|
|
43
43
|
<div>Account Name: <b>{{this.order_info.payment_method.manual_pay_choice.account_name}}</b></div>
|
|
44
44
|
<div>Account Number: <b>{{this.order_info.payment_method.manual_pay_choice.account_number}}</b></div>
|
|
45
|
+
<div>Order Total: <b>PHP {{$_formatNumber(this.order_info.orders.order_total, { decimal: 2})}}</b></div>
|
|
45
46
|
</div>
|
|
46
47
|
</div>
|
|
47
48
|
<div class="q-mt-md">
|
|
@@ -114,6 +115,7 @@ export default {
|
|
|
114
115
|
async getOrderDetails()
|
|
115
116
|
{
|
|
116
117
|
await this.$bind('order_info', new DB_MERCHANT_ORDERS().doc(this.order_id));
|
|
118
|
+
// console.log(this.order_info);
|
|
117
119
|
},
|
|
118
120
|
async getaAccountList()
|
|
119
121
|
{
|