Commit 70651100 authored by Aurel's avatar Aurel

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
parent 8841e899
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment