From 70651100ac75ccff147699ea87bff590d13a4408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Fri, 20 Oct 2006 12:33:36 +0000 Subject: [PATCH] 2006-10-20 aurel * still fix portal type list for getTotalPrice in wf script git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10849 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../money_deposit_workflow/scripts/validateVaultBalance.xml | 2 +- .../scripts/validateVaultBalance.xml | 2 +- .../vault_transfer_workflow/scripts/validateVaultBalance.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/money_deposit_workflow/scripts/validateVaultBalance.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/money_deposit_workflow/scripts/validateVaultBalance.xml index fa05730d7a..654a2f810d 100644 --- a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/money_deposit_workflow/scripts/validateVaultBalance.xml +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/money_deposit_workflow/scripts/validateVaultBalance.xml @@ -79,7 +79,7 @@ resource = transaction.CashDelivery_checkCounterInventory(source = source, porta \n # Get price and total_price.\n price = transaction.getSourceTotalAssetPrice()\n -cash_detail = transaction.getTotalPrice(portal_type=[\'Money Deposit Line\',\'Cash Delivery Cell\'],fast=0)\n +cash_detail = transaction.getTotalPrice(portal_type=[\'Cash Delivery Line\',\'Cash Delivery Cell\'],fast=0)\n #transaction.log("price vs cash detail", str((price, cash_detail)))\n if resource == 3:\n msg = Message(domain="ui", message="No banknote or coin defined.")\n diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/usual_cash_rendering_workflow/scripts/validateVaultBalance.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/usual_cash_rendering_workflow/scripts/validateVaultBalance.xml index 2b19906e36..0504534110 100644 --- a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/usual_cash_rendering_workflow/scripts/validateVaultBalance.xml +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/usual_cash_rendering_workflow/scripts/validateVaultBalance.xml @@ -93,7 +93,7 @@ resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_t \n # Get price and total_price.\n amount = transaction.getSourceTotalAssetPrice()\n -total_price = transaction.getTotalPrice(portal_type=[\'Usual Cash Rendering Line\',\'Cash Delivery Cell\'],fast=0)\n +total_price = transaction.getTotalPrice(portal_type=[\'Cash Delivery Line\',\'Cash Delivery Cell\'],fast=0)\n \n if resource == 2:\n msg = Message(domain="ui", message="No Resource.")\n diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/vault_transfer_workflow/scripts/validateVaultBalance.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/vault_transfer_workflow/scripts/validateVaultBalance.xml index 4e022cedf9..e1b5f0ae81 100644 --- a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/vault_transfer_workflow/scripts/validateVaultBalance.xml +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/vault_transfer_workflow/scripts/validateVaultBalance.xml @@ -94,7 +94,7 @@ resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_t \n # Get price and total_price.\n amount = transaction.getSourceTotalAssetPrice()\n -total_price = transaction.getTotalPrice(portal_type=[\'Vault Transfer Line\',\'Cash Delivery Cell\'],fast=0)\n +total_price = transaction.getTotalPrice(portal_type=[\'Cash Delivery Line\',\'Cash Delivery Cell\'],fast=0)\n \n if resource == 2:\n msg = Message(domain="ui", message="No Resource.")\n -- 2.30.9