[Erp5-dev] Orders and Discounts

Łukasz Nowak lukasz.nowak at ventis.com.pl
Fri Apr 25 14:52:16 CEST 2008


Hello,

In revision 15401 there was possibility to add Discount object to Sale
Order. I wasn't able to find out any references about order's discounts
in code.

So I've checked it in revision 20814. There is Discount tab on Sale
Order, but it is not possible to add Discount to Sale Order. There is
no Discount portal type in Allowed nor Hidden portal type list for
Sale Order, but here is Discount Line in Allowed and Hidden. Well -
there are some 'discount' strings, eg. those in
ERP5/Tool/SimulationTool.py looks interesting, but there are no tests,
so I'm not able to figure out this API (are they? haven't found :( )

I'm quite confused.

Questions:

 * is there any api for Order *and* Order Line level discount system?
 * is it documented/tested/used anywhere?
 * if not - what are the ideas, I'd like to follow them to apply
discount system in our instance and share those work, if guided, is it
acceptable?

Regards,
Luke

PS. Any reference about discounts in ERP5 I've found on
HowToUseERP5Commerce
http://www.erp5.org/HowToUseERP5Commerce?highlight=%28discount%29

PPS. Discounts on resources are other topic. Am I right?

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.



More information about the Erp5-dev mailing list