From ed0b5d9a4e927426d8d3e83b22f8b17129f72dec Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Thu, 11 Mar 2010 14:14:52 +0000
Subject: [PATCH] Added categories required to support amount generation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33650 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/PropertySheet/Amount.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/PropertySheet/Amount.py b/product/ERP5/PropertySheet/Amount.py
index e16c33c99e..8c04bc90ea 100644
--- a/product/ERP5/PropertySheet/Amount.py
+++ b/product/ERP5/PropertySheet/Amount.py
@@ -1,3 +1,4 @@
+# -*- 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', )
   
-- 
2.30.9