Commit ed0b5d9a authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added categories required to support amount generation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33650 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbdc6561
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
......@@ -69,7 +70,7 @@ class Amount:
'acquisition_depends' : None,
'mode' : 'w' },
{ 'id' : 'cancellation_amount',
'description' : 'defines if this quantity is used in order to cancel another one',
'description' : 'Defines if this quantity is used in order to cancel another one',
'type' : 'boolean',
'default': False,
'mode' : 'w' },
......@@ -77,7 +78,7 @@ class Amount:
# When comparing a delivery to a property_dict coming from a MovementGroup,
# the DeliveryBuilder needs to have at least a specific property for each MovementGroup
{ 'id' : 'quantity_sign',
'description' : 'defines if the quantity is positive or negative',
'description' : 'Defines if the quantity is positive or negative',
'type' : 'float',
'mode' : 'w' },
{ 'id' : 'efficiency',
......@@ -95,15 +96,15 @@ class Amount:
#'has_adapater_id' :
'mode' : 'w' },
# Profit and loss
{ 'id' : 'profit_quantity',
{ 'id' : 'profit_quantity', # XXX-JPS - probably deprecated
'description' : 'A quantity which represents generation of resource from nowhere',
'type' : 'float',
'default' : 0.0,
'mode' : 'w' },
)
)
_categories = ('resource', 'quantity_unit',
'base_application', 'base_contribution', 'use',
'base_application', 'base_contribution', 'use', 'trade_phase',
# Acquired categories
'product_line', )
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