geer-builder 1.2.605 → 1.2.606
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/GRequestProduct.vue +8 -5
- package/package.json +1 -1
package/GRequestProduct.vue
CHANGED
|
@@ -441,11 +441,14 @@
|
|
|
441
441
|
},
|
|
442
442
|
async getMainCurrency()
|
|
443
443
|
{
|
|
444
|
-
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.product_details.commission_margin = this.minimum_commission_margin;
|
|
448
|
-
|
|
444
|
+
let settings = await this.$_getData('public_settings');
|
|
445
|
+
this.main_currency = settings.main_currency || 'PHP';
|
|
446
|
+
// this.minimum_commission_margin = this.main_currency.minimum_commission_margin || 0;
|
|
447
|
+
// this.product_details.commission_margin = this.minimum_commission_margin;
|
|
448
|
+
if(settings && settings.hasOwnProperty('referral_commission_earning') && settings.referral_commission_earning.active)
|
|
449
|
+
{
|
|
450
|
+
this.product_details.commission_margin = settings.referral_commission_earning.default_commission ? settings.referral_commission_earning.default_commission : 0;
|
|
451
|
+
}
|
|
449
452
|
},
|
|
450
453
|
async submitRequestProduct()
|
|
451
454
|
{
|