Commit c9c100c4 authored by Mame Coumba Sall's avatar Mame Coumba Sall

-Modify "resource" field in AccountingCancellation form so that it's now a...

-Modify "resource" field in AccountingCancellation form so that it's now a list field and it's non editable
-Modify script to check new constraints added on Accounting Cancellation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a32e4645
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<value> <value>
<list> <list>
<string>listbox_destination_total_asset_price</string> <string>listbox_destination_total_asset_price</string>
<string>resource_title</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -96,7 +97,7 @@ ...@@ -96,7 +97,7 @@
<string>my_source_reference</string> <string>my_source_reference</string>
<string>my_site_title</string> <string>my_site_title</string>
<string>my_source_total_asset_price</string> <string>my_source_total_asset_price</string>
<string>resource_title</string> <string>my_resource</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -65,8 +65,10 @@ transaction = state_change[\'object\']\n ...@@ -65,8 +65,10 @@ transaction = state_change[\'object\']\n
site = transaction.getSite()\n site = transaction.getSite()\n
date = transaction.getStartDate()\n date = transaction.getStartDate()\n
# No need to check counter date, only accounting date\n # No need to check counter date, only accounting date\n
transaction.Base_checkConsistency()\n
transaction.Baobab_checkAccountingDateOpen(site=site, date=date)\n transaction.Baobab_checkAccountingDateOpen(site=site, date=date)\n
\n \n
\n
# Check some properties of document\n # Check some properties of document\n
price = transaction.getSourceTotalAssetPrice()\n price = transaction.getSourceTotalAssetPrice()\n
if price is None or price <= 0:\n if price is None or price <= 0:\n
......
527 531
\ No newline at end of file \ No newline at end of file
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