diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_checkAvailableBalance.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_checkAvailableBalance.xml index 920cdeaadcc301aa3270cade2b9450bbbfa19ec4..e0d2845624953b8ccae5306e87dd0a3f5c4f9ec1 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_checkAvailableBalance.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_checkAvailableBalance.xml @@ -77,9 +77,8 @@ manual_validation_account_category_list = (\'test\',)\n # First check that the payment account is in an acceptable state\n #payment_state = context.portal_workflow.getInfoFor(ob=payment, name=\'simulation_state\', wf_id=workflow_id)\n payment_value = context.restrictedTraverse(payment)\n -payment_state = payment_value.getValidationState()\n \n -if not context.BankAccount_isOpened():\n +if not payment_value.BankAccount_isOpened():\n return {\'error_code\':2} # closed account\n \n resource = payment_value.getPriceCurrencyValue()\n @@ -166,7 +165,6 @@ return {\'error_code\':0, \'balance\':account_balance} # ok\n <string>_getattr_</string> <string>context</string> <string>payment_value</string> - <string>payment_state</string> <string>resource</string> <string>None</string> <string>AttributeError</string> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_checkBalance.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_checkBalance.xml index 02bedd8344c5121e5fc2c2c2e77275bc6e18160a..9dfd487d995dfa29ce1c77e14c2e62ff511266a4 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_checkBalance.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_checkBalance.xml @@ -74,9 +74,8 @@ manual_validation_account_category_list = (\'test\',)\n \n # First check that the payment account is in an acceptable state\n payment_value = context.restrictedTraverse(payment)\n -payment_state = payment_value.getValidationState()\n \n -if not context.BankAcocunt_isOpened():\n +if not payment_value.BankAccount_isOpened():\n return {\'error_code\':2} # closed account\n \n resource = payment_value.getPriceCurrencyValue()\n @@ -159,7 +158,6 @@ return {\'error_code\':0, \'balance\':account_balance} # ok\n <string>_getattr_</string> <string>context</string> <string>payment_value</string> - <string>payment_state</string> <string>resource</string> <string>None</string> <string>AttributeError</string> diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index e1170b6414efa1bb63c186ec4a9b5391653f5fa2..266217da54145f14025ea0a04a4f5e586bab8c0e 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -489 \ No newline at end of file +493 \ No newline at end of file