esoftplay-event 0.0.2-n → 0.0.2-o

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.
@@ -286,7 +286,7 @@ export default function m(props: EventOrder_detailProps): any {
286
286
  }
287
287
  curlPriceConfig(res?.url_price_config, res?.price_id, (conf) => {
288
288
  args['tax'] = conf?.tax
289
- args['fee_platform'] = Boolean(conf?.fee_platform_amount) ? {
289
+ args['fee_platform'] = conf.hasOwnProperty('fee_platform_amount') ? {
290
290
  fee_platform_amount: conf?.fee_platform_amount || 0,
291
291
  fee_platform_type: conf?.fee_platform_type || "NONE"
292
292
  } : fee_platform
@@ -296,6 +296,7 @@ export default function m(props: EventOrder_detailProps): any {
296
296
  fee_custom_type: conf?.fee_custom_type || "NONE"
297
297
  }
298
298
 
299
+ esp.log(conf, res?.price_id, args);
299
300
  LibNavigation.navigate('payment/ticket', args)
300
301
  })
301
302
  }
@@ -271,7 +271,7 @@ export default function m(props: EventTicket_listProps): any {
271
271
  LibNavigation.navigate('payment/ticket', {
272
272
  order_type: eventConfig?.order_type?.ticket,
273
273
  tax: config?.tax || selectedTicket?.tax || 0,
274
- fee_platform: Boolean(config?.fee_platform_amount) ? {
274
+ fee_platform: config.hasOwnProperty('fee_platform_amount') ? {
275
275
  fee_platform_amount: config?.fee_platform_amount || 0,
276
276
  fee_platform_type: config?.fee_platform_type || "NONE"
277
277
  } : fee_platform,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.2-n",
3
+ "version": "0.0.2-o",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {