Commit e3a2eef4 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_property_sheets: rename and factor some properties in new property sheet

parent c9da1b7f
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Property Sheet" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SupplyCell</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Property Sheet</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Length" module="BTrees.Length"/>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
......@@ -27,19 +27,17 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/object</string>
<string>elementary_type/float</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
<value> <string>The base_price to apply to items of the matching range if base_price_per_sliced is set to True</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>sliced_range_property</string> </value>
<value> <string>sliced_base_price_property</string> </value>
</item>
<item>
<key> <string>mode</string> </key>
......
......@@ -27,19 +27,19 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/float</string>
<string>elementary_type/object</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>A per unit base price applying to the products whose quantity is in slice. This per unit base price will be weighted with the per unit base price of other slices.\n
This property is useful for the following case :\n
0-10 products cost 10$, and 11-inf products cost 9$. Thus in a command of 15 products, the unit base price is 9.6667$, as 10 * 10 + 5 * 9 = 145, and 145 / 15 = 9.6667</string> </value>
<value> <string>quantiy range of the items for which the sliced_base_price will be applied if base_price_per_sliced is True.\n
\n
sliced_quantity_range is a 2-tuple : (min_bound, max_bound)</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>sliced_base_price_property</string> </value>
<value> <string>sliced_quantity_range_property</string> </value>
</item>
<item>
<key> <string>mode</string> </key>
......
......@@ -16,13 +16,18 @@
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
<value> <string encoding="cdata"><![CDATA[
Defines if the base_price of maching quantity step should be used as unit price for all items (value is False), or if it applies only to items of the range (value is True).\n
\n
If this property is set to True, the base_price will be calculated as such :\n
if 0->10 products cost 10$, and 11->infinity products cost 9$, in a command of 15 products, the unit base price is 9.6667$, as the 10 first products cost 10$, and the 5 others cost 9$ (and (10*10+5*9)/15 = 9.6667)
]]></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>is_sliced_base_price_property</string> </value>
<value> <string>base_price_per_sliced_property</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......
......@@ -158,6 +158,7 @@ StandardBT5ConfiguratorItem
StandardProperty
State
StockCapacity
SupplyCell
SupplyLine
SupplyLink
TALESConstraint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment