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.
@@ -441,11 +441,14 @@
441
441
  },
442
442
  async getMainCurrency()
443
443
  {
444
- this.main_currency = await this.$_getData('public_settings');
445
- this.minimum_commission_margin = this.main_currency.minimum_commission_margin || 0;
446
- this.main_currency = this.main_currency.main_currency;
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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.605",
3
+ "version": "1.2.606",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {