Commit fe02b9e1 authored by Romain Courteaud's avatar Romain Courteaud

Move pricing model to property sheet SupplyLine.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4281 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 49f360e1
......@@ -30,25 +30,23 @@ from Products.CMFCore.Expression import Expression
class Price:
"""
Properties which allow to define a generic Price.
Properties which allow to define a generic Price.
"""
_properties = (
# Pricing properties
{ 'id' : 'price',
'description' : 'A typical per unit price',
'type' : 'float',
'acquisition_base_category' : ('order', 'delivery',),
'acquisition_portal_type' : Expression('python: portal.getPortalAcquisitionMovementTypeList() + portal.getPortalDeliveryTypeList()'),
'acquisition_portal_type' : \
Expression('python: ' \
'portal.getPortalAcquisitionMovementTypeList() +' \
'portal.getPortalDeliveryTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 1,
'acquisition_accessor_id' : 'getPrice',
'acquisition_depends' : None,
'mode' : 'w' },
{ 'id' : 'base_price',
'description' : 'A typical per unit base price',
'type' : 'float',
'mode' : 'w' },
{ 'id' : 'priced_quantity',
'description' : 'Number of units involved in base prices',
'type' : 'float',
......@@ -67,26 +65,24 @@ class Price:
# Such price should be used very carefully since
# They are incompatible with the multi company model
{ 'id' : 'source_base_price',
'description' : 'A typical per unit price at which this resource can be sourced (bought)',
'description' : 'A typical per unit price at which this ' \
'resource can be sourced (bought)',
'type' : 'float',
'mode' : 'w' },
{ 'id' : 'source_base_price_validity',
'description' : 'Validity of the typical per unit price at which this resource can be sourced',
'description' : 'Validity of the typical per unit price at ' \
'which this resource can be sourced',
'type' : 'date',
'mode' : 'w' },
{ 'id' : 'destination_base_price',
'description' : 'A typical per unit price at which this resource can be supplied (sold)',
'description' : 'A typical per unit price at which this ' \
'resource can be supplied (sold)',
'type' : 'float',
'mode' : 'w' },
{ 'id' : 'destination_base_price_validity',
'description' : 'Validity of the typical per unit price at which this resource can be supplied',
'description' : 'Validity of the typical per unit price at ' \
'which this resource can be supplied',
'type' : 'date',
'mode' : 'w' },
# They are incompatible with the multi company model
{ 'id' : 'quantity_step',
'description' : 'A list of quantity values which define acceptable ranges',
'type' : 'float',
'multivalued' : 1,
'mode' : 'w' },
)
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