From 1529767b4d5ea46929fc437fd5fb906d33b07d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Tue, 7 Feb 2012 18:00:28 +0100 Subject: [PATCH] Check that invoice total price matches accounting information. --- ...otal_price_equal_accounting_constraint.xml | 104 ++++++++++++++++++ master/bt5/vifib_erp5/bt/revision | 2 +- 2 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleInvoiceConstraint/total_price_equal_accounting_constraint.xml diff --git a/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleInvoiceConstraint/total_price_equal_accounting_constraint.xml b/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleInvoiceConstraint/total_price_equal_accounting_constraint.xml new file mode 100644 index 000000000..a560aa587 --- /dev/null +++ b/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleInvoiceConstraint/total_price_equal_accounting_constraint.xml @@ -0,0 +1,104 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TALES Constraint" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>expression</string> </key> + <value> <string>python: context.SaleInvoiceTransaction_isTotalPriceEqualAccounting()</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>total_price_equal_accounting_constraint</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>message_expression_false</string> </key> + <value> <string>Total price of invoice does not match accounting</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>TALES Constraint</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> <string>python: context.getSimulationState() not in [\'draft\', \'planned\']</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/master/bt5/vifib_erp5/bt/revision b/master/bt5/vifib_erp5/bt/revision index ac471d3ba..bbce65161 100644 --- a/master/bt5/vifib_erp5/bt/revision +++ b/master/bt5/vifib_erp5/bt/revision @@ -1 +1 @@ -355 \ No newline at end of file +356 \ No newline at end of file -- 2.30.9