diff --git a/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml index d19c8fa36da5b0a6d72dca7d1318b8cf7e4a89dc..639970704f9555ef37d96e9355bb3c220d8af154 100644 --- a/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml +++ b/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -41,6 +41,9 @@ <portal_type id="Check Model Type Variation"> <item>Amount</item> </portal_type> + <portal_type id="Check Operation Line"> + <item>CheckOperationLineDate</item> + </portal_type> <portal_type id="Checkbook"> <item>Arrow</item> <item>VariationRange</item> diff --git a/bt5/erp5_banking_core/PropertySheetTemplateItem/CheckOperationLineDate.py b/bt5/erp5_banking_core/PropertySheetTemplateItem/CheckOperationLineDate.py new file mode 100644 index 0000000000000000000000000000000000000000..c8bc7e6ce19cca2e997202f7a23c97cbd0aeae07 --- /dev/null +++ b/bt5/erp5_banking_core/PropertySheetTemplateItem/CheckOperationLineDate.py @@ -0,0 +1,39 @@ +############################################################################## +# +# Copyright (c) 2002-2007 Nexedi SARL and Contributors. All Rights Reserved. +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsability of assessing all potential +# consequences resulting from its eventual inadequacies and bugs +# End users who are looking for a ready-to-use solution with commercial +# garantees and support are strongly adviced to contract a Free Software +# Service Company +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +############################################################################## + +class CheckOperationLineDate: + """ + CheckOperationLineDate properties for all ERP5 objects + """ + + _properties = ( + {'id' : 'issue_date', + 'description' : 'a issue date', + 'type' : 'date', + 'mode' : 'w' + }, + ) diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view.xml index b97195ce98143098f5ac746de715be480202b6f4..a4a904920f507edda0b39558a6e80dfced98be8d 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view.xml @@ -86,7 +86,7 @@ <key> <string>center</string> </key> <value> <list> - <string>my_start_date</string> + <string>my_issue_date</string> <string>my_stop_date</string> </list> </value> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_start_date.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_issue_date.xml similarity index 99% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_start_date.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_issue_date.xml index 2764ab82c83239e9dcd6f06143320f3519120cf1..5792d91d73e2265d82df223120569cfe37eede43 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_start_date.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_issue_date.xml @@ -17,7 +17,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>my_start_date</string> </value> + <value> <string>my_issue_date</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -288,6 +288,14 @@ <key> <string>hidden</string> </key> <value> <int>0</int> </value> </item> + <item> + <key> <string>hidden_day_is_last_day</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>hide_day</string> </key> + <value> <int>0</int> </value> + </item> <item> <key> <string>input_order</string> </key> <value> <string>dmy</string> </value> @@ -298,7 +306,7 @@ </item> <item> <key> <string>required</string> </key> - <value> <int>0</int> </value> + <value> <int>1</int> </value> </item> <item> <key> <string>start_datetime</string> </key> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_source_payment_reference.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_source_payment_reference.xml index eb639a5cb191676caa0d56b5c76c19373a0bb4f6..0049effdd700be3bec5d6199e7a9735dff17cf70 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_source_payment_reference.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_source_payment_reference.xml @@ -518,7 +518,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Account Number</string> </value> + <value> <string>Debit Account Number</string> </value> </item> <item> <key> <string>truncate</string> </key> diff --git a/bt5/erp5_banking_core/bt/change_log b/bt5/erp5_banking_core/bt/change_log index 9501b5a702e3c358f3bccf5ebcdc641fef69bfd5..b75356a4341d53761272dd1b500d1d293a137d3a 100644 --- a/bt5/erp5_banking_core/bt/change_log +++ b/bt5/erp5_banking_core/bt/change_log @@ -1,3 +1,6 @@ +2007-11-06 aurel +* add issue date on check operation line + 2006-06-08 Aurel * put recoup date in delivery table instead of start/stop_range_min/max diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index 3456e74000401a820209fdc26849d62897a55461..2291c046ea20295f69366f2199e6eb81d788660c 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -372 \ No newline at end of file +373 \ No newline at end of file diff --git a/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list b/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list index 62fdee2d79c6936079abb02120aef09e3e434cb6..b78e9ae358dfa46d22165a4925619b2138ccafdf 100644 --- a/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list +++ b/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list @@ -18,6 +18,7 @@ Cash Delivery Line | CashDeliveryLine Category | BaobabCategory Check Model Type Variation | Amount Check Model | CheckModel +Check Operation Line | CheckOperationLineDate Check | Arrow Check | Task Checkbook Model Check Amount Variation | Amount diff --git a/bt5/erp5_banking_core/bt/template_property_sheet_id_list b/bt5/erp5_banking_core/bt/template_property_sheet_id_list index bd398466aee2a2a5a25772ea7763cb20d08d9e57..23624e2fad6828f2432822eff10488a195a86e4a 100644 --- a/bt5/erp5_banking_core/bt/template_property_sheet_id_list +++ b/bt5/erp5_banking_core/bt/template_property_sheet_id_list @@ -1,4 +1,5 @@ CheckModel RenderingPreference BaobabStopDate -CurrencyExchangeRate \ No newline at end of file +CurrencyExchangeRate +CheckOperationLineDate \ No newline at end of file