[Erp5-report] r41947 gregory - in /erp5/trunk/bt5/erp5_banking_check: SkinTemplateItem/port...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 3 15:01:22 CET 2011
Author: gregory
Date: Mon Jan 3 15:01:22 2011
New Revision: 41947
URL: http://svn.erp5.org?rev=41947&view=rev
Log:
Non-unique per account check references are unique per country.
Added:
erp5/trunk/bt5/erp5_banking_check/bt/template_catalog_related_key_list
Modified:
erp5/trunk/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckbookReceptionLine_checkOrCreateItemList.xml
Modified: erp5/trunk/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckbookReceptionLine_checkOrCreateItemList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckbookReceptionLine_checkOrCreateItemList.xml?rev=41947&r1=41946&r2=41947&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckbookReceptionLine_checkOrCreateItemList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckbookReceptionLine_checkOrCreateItemList.xml [utf8] Mon Jan 3 15:01:22 2011
@@ -144,8 +144,13 @@ def checkReferenceListUniqueness(referen
else:\n
destination_payment_uid = destination_payment_value.getUid()\n
internal_bank_account_number = destination_payment_value.getInternalBankAccountNumber()\n
+ # unique_per_account is True -> references are unique per account\n
+ # unique_per_account is False -> references are unique per country\n
if unique_per_account:\n
catalog_kw[\'destination_payment_uid\'] = destination_payment_uid\n
+ else:\n
+ reference_match = "%s%%" % (destination_payment_value.getReference()[:2], )\n
+ catalog_kw[\'baobab_destination_payment_reference\'] = reference_match\n
match_list = portal.portal_catalog(**catalog_kw)\n
assertReferenceMatchListEmpty(match_list, internal_bank_account_number)\n
for reference in reference_list:\n
Added: erp5/trunk/bt5/erp5_banking_check/bt/template_catalog_related_key_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/bt/template_catalog_related_key_list?rev=41947&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/bt/template_catalog_related_key_list (added)
+++ erp5/trunk/bt5/erp5_banking_check/bt/template_catalog_related_key_list [utf8] Mon Jan 3 15:01:22 2011
@@ -0,0 +1 @@
+baobab_destination_payment_reference | category,catalog/reference/z_related_destination_payment
\ No newline at end of file
More information about the Erp5-report
mailing list