From 7e1c8509800a1870006ee06e6ff12da02403dd7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Wed, 19 Jul 2006 08:53:34 +0000 Subject: [PATCH] modify some forms to display cash inventory git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8519 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...ountInventoryLine_getBankAccountNumber.xml | 2 +- .../my_destination_payment_reference.xml | 31 +- .../CashInventoryGroup_view/listbox.xml | 36 ++- .../listbox_total_price.xml | 48 ++- .../CashInventoryGroup_view/my_start_date.xml | 18 +- .../CashInventoryLine_view.xml | 7 +- .../CashInventoryLine_view/matrixbox.xml | 4 +- ...x_inventory.xml => matrixbox_quantity.xml} | 56 ++-- ...e.xml => my_resource_translated_title.xml} | 2 +- ...InventoryModule_viewCashInventoryGroup.xml | 8 +- .../listbox.xml | 29 +- .../CashInventory_view.xml | 5 +- .../CashInventory_view/listbox.xml | 21 +- .../listbox_total_price.xml | 302 ++++++++++++++++++ .../listbox_total_quantity.xml} | 68 ++-- .../CashInventory_view/my_total_price.xml | 46 ++- .../CashInventory_viewLineFastInputDialog.xml | 8 +- .../InventoryLine_zGetTotal.xml | 2 +- 18 files changed, 575 insertions(+), 118 deletions(-) rename bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/{matrixbox_inventory.xml => matrixbox_quantity.xml} (89%) rename bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/{my_resource_title.xml => my_resource_translated_title.xml} (99%) create mode 100644 bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox_total_price.xml rename bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/{CashInventoryModule_viewCashInventoryGroup/listbox_destination_logical_path.xml => CashInventory_view/listbox_total_quantity.xml} (86%) diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventoryLine_getBankAccountNumber.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventoryLine_getBankAccountNumber.xml index 9620b2b82f..fc58acdcda 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventoryLine_getBankAccountNumber.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventoryLine_getBankAccountNumber.xml @@ -68,7 +68,7 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>return context.getDestinationValue().getBbanTextFormat()\n + <value> <string>return context.getDestinationPaymentValue().getReference()\n </string> </value> </item> <item> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventoryLine_view/my_destination_payment_reference.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventoryLine_view/my_destination_payment_reference.xml index c78022497b..33935d52ef 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventoryLine_view/my_destination_payment_reference.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventoryLine_view/my_destination_payment_reference.xml @@ -234,7 +234,9 @@ </item> <item> <key> <string>default</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>description</string> </key> @@ -292,6 +294,14 @@ <key> <string>max_length</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>parameter_list</string> </key> <value> <string></string> </value> @@ -500,4 +510,23 @@ </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: here.getDestinationPaymentValue().getReference()</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/listbox.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/listbox.xml index fde064d560..3748800f32 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/listbox.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/listbox.xml @@ -356,7 +356,9 @@ </item> <item> <key> <string>count_method</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>css_class</string> </key> @@ -393,7 +395,16 @@ <item> <key> <string>editable_columns</string> </key> <value> - <list/> + <list> + <tuple> + <string>destination</string> + <string>Destination Vault</string> + </tuple> + <tuple> + <string>total_price</string> + <string>Total Price</string> + </tuple> + </list> </value> </item> <item> @@ -425,7 +436,7 @@ <item> <key> <string>list_method</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> </item> <item> @@ -517,6 +528,25 @@ </pickle> </record> <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.MethodField</string> + <string>Method</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>countFolder</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> <pickle> <tuple> <tuple> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/listbox_total_price.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/listbox_total_price.xml index 709729e669..90cde58de2 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/listbox_total_price.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/listbox_total_price.xml @@ -162,11 +162,15 @@ </item> <item> <key> <string>input_style</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>precision</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> </item> <item> <key> <string>required</string> </key> @@ -193,7 +197,7 @@ </item> <item> <key> <string>css_class</string> </key> - <value> <string></string> </value> + <value> <string>figure</string> </value> </item> <item> <key> <string>default</string> </key> @@ -257,4 +261,42 @@ </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>string:-1 234.5 | preferences/getPreferredMoneyQuantityStyle</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: here.gePriceCurrencyValue().getQuantityPrecision()</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/my_start_date.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/my_start_date.xml index 8f64f090f6..0a73cb147c 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/my_start_date.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryGroup_view/my_start_date.xml @@ -405,28 +405,28 @@ <value> <dictionary> <item> - <key> <string>Default</string> </key> + <key> <string>Default</string> </key> <value> <list/> </value> </item> <item> - <key> <string>date</string> </key> + <key> <string>date</string> </key> <value> <list> -<string>year</string> -<string>month</string> -<string>day</string> + <string>year</string> + <string>month</string> + <string>day</string> </list> </value> </item> <item> - <key> <string>time</string> </key> + <key> <string>time</string> </key> <value> <list> -<string>hour</string> -<string>minute</string> -<string>ampm</string> + <string>hour</string> + <string>minute</string> + <string>ampm</string> </list> </value> </item> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view.xml index 65bc99d5ea..3d8114e638 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view.xml @@ -100,7 +100,7 @@ <list> <string>matrixbox_membership_criterion_category_list</string> <string>membership_criterion_base_category_list</string> - <string>matrixbox_inventory</string> + <string>matrixbox_quantity</string> </list> </value> </item> @@ -108,7 +108,6 @@ <key> <string>left</string> </key> <value> <list> - <string>my_resource_title</string> <string>my_total_price</string> </list> </value> @@ -116,7 +115,9 @@ <item> <key> <string>right</string> </key> <value> - <list/> + <list> + <string>my_resource_translated_title</string> + </list> </value> </item> </dictionary> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox.xml index 561ce3cbba..5597cf344e 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox.xml @@ -241,8 +241,8 @@ <value> <list> <tuple> - <string>inventory</string> - <string>inventory</string> + <string>quantity</string> + <string>quantity</string> </tuple> <tuple> <string>membership_criterion_category_list</string> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox_inventory.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox_quantity.xml similarity index 89% rename from bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox_inventory.xml rename to bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox_quantity.xml index 8ef39f01f4..021812358b 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox_inventory.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/matrixbox_quantity.xml @@ -5,7 +5,7 @@ <tuple> <tuple> <string>Products.Formulator.StandardFields</string> - <string>IntegerField</string> + <string>FloatField</string> </tuple> <none/> </tuple> @@ -20,7 +20,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>matrixbox_inventory</string> </value> + <value> <string>matrixbox_quantity</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -31,12 +31,8 @@ <value> <string>The input failed the external validator.</string> </value> </item> <item> - <key> <string>integer_out_of_range</string> </key> - <value> <string>The integer you entered was out of range.</string> </value> - </item> - <item> - <key> <string>not_integer</string> </key> - <value> <string>You did not enter an integer.</string> </value> + <key> <string>not_float</string> </key> + <value> <string>You did not enter a floating point number.</string> </value> </item> <item> <key> <string>required_not_found</string> </key> @@ -81,10 +77,6 @@ <key> <string>enabled</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>end</string> </key> - <value> <string></string> </value> - </item> <item> <key> <string>external_validator</string> </key> <value> <string></string> </value> @@ -98,11 +90,15 @@ <value> <string></string> </value> </item> <item> - <key> <string>required</string> </key> + <key> <string>input_style</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>precision</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>start</string> </key> + <key> <string>required</string> </key> <value> <string></string> </value> </item> <item> @@ -154,10 +150,6 @@ <key> <string>enabled</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>end</string> </key> - <value> <string></string> </value> - </item> <item> <key> <string>external_validator</string> </key> <value> <string></string> </value> @@ -171,11 +163,15 @@ <value> <string></string> </value> </item> <item> - <key> <string>required</string> </key> + <key> <string>input_style</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>start</string> </key> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> <value> <string></string> </value> </item> <item> @@ -225,33 +221,33 @@ <key> <string>enabled</string> </key> <value> <int>1</int> </value> </item> - <item> - <key> <string>end</string> </key> - <value> <string></string> </value> - </item> <item> <key> <string>external_validator</string> </key> <value> <string></string> </value> </item> <item> <key> <string>extra</string> </key> - <value> <string>align="right"</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>hidden</string> </key> <value> <int>0</int> </value> </item> <item> - <key> <string>required</string> </key> + <key> <string>input_style</string> </key> + <value> <string>-1 234.5</string> </value> + </item> + <item> + <key> <string>precision</string> </key> <value> <int>0</int> </value> </item> <item> - <key> <string>start</string> </key> - <value> <string></string> </value> + <key> <string>required</string> </key> + <value> <int>0</int> </value> </item> <item> <key> <string>title</string> </key> - <value> <string>Inventory</string> </value> + <value> <string>matrixbox_quantity</string> </value> </item> <item> <key> <string>whitespace_preserve</string> </key> @@ -277,7 +273,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: here.Integer_toString(int(cell.getProperty(\'inventory\')))</string> </value> + <value> <string>python: cell.getProperty(\'quantity\')</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/my_resource_title.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/my_resource_translated_title.xml similarity index 99% rename from bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/my_resource_title.xml rename to bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/my_resource_translated_title.xml index 3c4aca21f4..81325b2416 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/my_resource_title.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryLine_view/my_resource_translated_title.xml @@ -20,7 +20,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>my_resource_title</string> </value> + <value> <string>my_resource_translated_title</string> </value> </item> <item> <key> <string>message_values</string> </key> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup.xml index 2a016d9f16..a47b918228 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup.xml @@ -85,11 +85,9 @@ </value> </item> <item> - <key> <string>hidden</string> </key> + <key> <string>hidden</string> </key> <value> - <list> - <string>listbox_destination_logical_path</string> - </list> + <list/> </value> </item> </dictionary> @@ -121,7 +119,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Cash Inventory List</string> </value> + <value> <string>Cash Inventories</string> </value> </item> <item> <key> <string>unicode_mode</string> </key> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup/listbox.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup/listbox.xml index 80e93b6fac..265b495603 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup/listbox.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup/listbox.xml @@ -312,8 +312,8 @@ <string>Title</string> </tuple> <tuple> - <string>destination_logical_path</string> - <string>Vault</string> + <string>description</string> + <string>Description</string> </tuple> <tuple> <string>stop_date</string> @@ -324,7 +324,9 @@ </item> <item> <key> <string>count_method</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>css_class</string> </key> @@ -393,7 +395,7 @@ <item> <key> <string>list_method</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> </item> <item> @@ -485,6 +487,25 @@ </pickle> </record> <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.MethodField</string> + <string>Method</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>countFolder</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> <pickle> <tuple> <tuple> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view.xml index 1f22872607..583046df85 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view.xml @@ -96,7 +96,10 @@ <item> <key> <string>hidden</string> </key> <value> - <list/> + <list> + <string>listbox_total_price</string> + <string>listbox_total_quantity</string> + </list> </value> </item> <item> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox.xml index 26aa11f918..8d4748f9e8 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox.xml @@ -336,15 +336,11 @@ <value> <list> <tuple> - <string>id</string> - <string>ID</string> - </tuple> - <tuple> - <string>resource_title</string> + <string>resource_translated_title</string> <string>Resource</string> </tuple> <tuple> - <string>total_inventory</string> + <string>total_quantity</string> <string>Inventory</string> </tuple> <tuple> @@ -393,7 +389,16 @@ <item> <key> <string>editable_columns</string> </key> <value> - <list/> + <list> + <tuple> + <string>total_quantity</string> + <string>Inventory</string> + </tuple> + <tuple> + <string>total_price</string> + <string>Total Price</string> + </tuple> + </list> </value> </item> <item> @@ -492,7 +497,7 @@ <string>Resource</string> </tuple> <tuple> - <string>total_inventory</string> + <string>total_quantity</string> <string>Inventory</string> </tuple> <tuple> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox_total_price.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox_total_price.xml new file mode 100644 index 0000000000..9d7960bfe0 --- /dev/null +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox_total_price.xml @@ -0,0 +1,302 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>FloatField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_total_price</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>not_float</string> </key> + <value> <string>You did not enter a floating point number.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string>figure</string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string>align="right"</string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> <string>-1 234.5</string> </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Total Price</string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>string:-1 234.5 | preferences/getPreferredMoneyQuantityStyle</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: here.getPriceCurrencyValue().getQuantityPrecision()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup/listbox_destination_logical_path.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox_total_quantity.xml similarity index 86% rename from bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup/listbox_destination_logical_path.xml rename to bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox_total_quantity.xml index 37fb767471..ccc261924c 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventoryModule_viewCashInventoryGroup/listbox_destination_logical_path.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/listbox_total_quantity.xml @@ -5,7 +5,7 @@ <tuple> <tuple> <string>Products.Formulator.StandardFields</string> - <string>StringField</string> + <string>FloatField</string> </tuple> <none/> </tuple> @@ -20,7 +20,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>listbox_destination_logical_path</string> </value> + <value> <string>listbox_total_quantity</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -31,12 +31,12 @@ <value> <string>The input failed the external validator.</string> </value> </item> <item> - <key> <string>required_not_found</string> </key> - <value> <string>Input is required but no input given.</string> </value> + <key> <string>not_float</string> </key> + <value> <string>You did not enter a floating point number.</string> </value> </item> <item> - <key> <string>too_long</string> </key> - <value> <string>Too much input was given.</string> </value> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> </item> </dictionary> </value> @@ -90,23 +90,19 @@ <value> <string></string> </value> </item> <item> - <key> <string>max_length</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>required</string> </key> + <key> <string>input_style</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>title</string> </key> + <key> <string>precision</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>truncate</string> </key> + <key> <string>required</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>unicode</string> </key> + <key> <string>title</string> </key> <value> <string></string> </value> </item> <item> @@ -130,9 +126,7 @@ </item> <item> <key> <string>default</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> @@ -167,23 +161,21 @@ <value> <string></string> </value> </item> <item> - <key> <string>max_length</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>required</string> </key> - <value> <string></string> </value> + <key> <string>input_style</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> - <key> <string>title</string> </key> + <key> <string>precision</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>truncate</string> </key> + <key> <string>required</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>unicode</string> </key> + <key> <string>title</string> </key> <value> <string></string> </value> </item> <item> @@ -203,7 +195,7 @@ </item> <item> <key> <string>css_class</string> </key> - <value> <string></string> </value> + <value> <string>figure</string> </value> </item> <item> <key> <string>default</string> </key> @@ -223,7 +215,7 @@ </item> <item> <key> <string>editable</string> </key> - <value> <int>1</int> </value> + <value> <int>0</int> </value> </item> <item> <key> <string>enabled</string> </key> @@ -235,31 +227,27 @@ </item> <item> <key> <string>extra</string> </key> - <value> <string></string> </value> + <value> <string>align="right"</string> </value> </item> <item> <key> <string>hidden</string> </key> <value> <int>0</int> </value> </item> <item> - <key> <string>max_length</string> </key> - <value> <string></string> </value> + <key> <string>input_style</string> </key> + <value> <string>-1 234.5</string> </value> </item> <item> - <key> <string>required</string> </key> + <key> <string>precision</string> </key> <value> <int>0</int> </value> </item> <item> - <key> <string>title</string> </key> - <value> <string>Vault</string> </value> - </item> - <item> - <key> <string>truncate</string> </key> + <key> <string>required</string> </key> <value> <int>0</int> </value> </item> <item> - <key> <string>unicode</string> </key> - <value> <int>0</int> </value> + <key> <string>title</string> </key> + <value> <string>Quantity</string> </value> </item> <item> <key> <string>whitespace_preserve</string> </key> @@ -285,7 +273,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: here.Baobab_getStrippedPath(object=cell, destination=1)</string> </value> + <value> <string>string:-1 234.5 | preferences/getPreferredMoneyQuantityStyle</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/my_total_price.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/my_total_price.xml index b39e8244a3..fdf715ec96 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/my_total_price.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view/my_total_price.xml @@ -162,11 +162,15 @@ </item> <item> <key> <string>input_style</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>precision</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> </item> <item> <key> <string>required</string> </key> @@ -257,4 +261,42 @@ </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>string:-1 234.5 | preferences/getPreferredMoneyQuantityStyle</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: here.getPriceCurrencyValue().getQuantityPrecision()</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_viewLineFastInputDialog.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_viewLineFastInputDialog.xml index 04c602ad95..283028bab5 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_viewLineFastInputDialog.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_viewLineFastInputDialog.xml @@ -94,7 +94,7 @@ if currency_id == context.Baobab_getPortalReferenceCurrencyID():\n else:\n letter_list = [\'not_defined\']\n variation_list = [\'not_defined\']\n - cash_status_list = [\'valid\']\n + cash_status_list = [\'not_defined\']\n \n cash_detail_dict = {\'line_portal_type\' : \'Cash Inventory Line\'\n , \'operation_currency\' : context.getPriceCurrencyId()\n @@ -102,9 +102,9 @@ cash_detail_dict = {\'line_portal_type\' : \'Cash Inventory Line\'\n , \'emission_letter_list\' : letter_list\n , \'variation_list\' : variation_list\n , \'currency_cash_portal_type\': None\n - , \'read_only\' : True\n + , \'read_only\' : False\n , \'column_base_category\' : \'variation\'\n - , \'use_inventory\' : 1\n + , \'use_inventory\' : False\n }\n \n return context.CashDelivery_generateCashDetailInputDialog( listbox = None\n @@ -172,7 +172,7 @@ return context.CashDelivery_generateCashDetailInputDialog( listbox <string>letter_list</string> <string>variation_list</string> <string>cash_status_list</string> - <string>True</string> + <string>False</string> <string>cash_detail_dict</string> </tuple> </value> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/InventoryLine_zGetTotal.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/InventoryLine_zGetTotal.xml index c7b0285862..a83bb84875 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/InventoryLine_zGetTotal.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/InventoryLine_zGetTotal.xml @@ -45,7 +45,7 @@ <key> <string>_keys</string> </key> <value> <list> -<string>uid</string> + <string>uid</string> </list> </value> </item> -- 2.30.9