[Erp5-report] r10067 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 18 09:53:05 CEST 2006
Author: aurel
Date: Mon Sep 18 09:53:03 2006
New Revision: 10067
URL: http://svn.erp5.org?rev=10067&view=rev
Log:
add method to generate source_reference on document
Modified:
erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=10067&r1=10066&r2=10067&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Mon Sep 18 09:53:03 2006
@@ -590,6 +590,14 @@
# a default date
self.date = DateTime()
+ def setDocumentSourceReference(self, doc):
+ """
+ Compute and set the source reference for a document
+ """
+ # document must have a date defined
+ doc.edit(start_date=DateTime())
+ # call script to set source reference
+ doc.Baobab_getUniqueReference()
def createPerson(self, id, first_name, last_name):
@@ -667,6 +675,7 @@
quantity=25,title='100')
return model
+
def createCheckModel(self, id):
"""
Create a checkbook for the given bank account
@@ -688,7 +697,6 @@
# mark the check as issued
check.confirm()
return check
-
def createCashContainer(self, document, container_portal_type, global_dict, line_list, delivery_line_type='Cash Delivery Line'):
"""
More information about the Erp5-report
mailing list