diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CurrencyPurchase_getQuantity.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CurrencyPurchase_getQuantity.xml index 1c7adcfc620f4ff81213dde93c3291509f423760..3f83e280cf5b12b1abb3976ad4d805f5c32cae01 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CurrencyPurchase_getQuantity.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CurrencyPurchase_getQuantity.xml @@ -72,6 +72,7 @@ \n commission_ratio = context.getDiscountRatio()\n commission_price = context.getDiscount()\n +\n if commission_ratio is not None and commission_ratio !=0 and commission_price is not None and commission_price !=0:\n price = None\n if commission_ratio == 0 or commission_price == 0:\n @@ -79,7 +80,7 @@ if commission_ratio == 0 or commission_price == 0:\n if commission_ratio is None and commission_price is None:\n price = round(price,0)\n \n -comission_value = 0\n +commission_value = 0\n if commission_ratio is not None:\n commission_value = commission_ratio * price\n \n @@ -155,7 +156,6 @@ return quantity\n <string>commission_price</string> <string>None</string> <string>round</string> - <string>comission_value</string> <string>commission_value</string> <string>quantity</string> </tuple>