MProductPricing does not consider new Product in current transaction

Description

Proposing an alternate constructor that allows trxName to be passed and included in embedded queries. Thus, any Product created in the current transaction are included. Otherwise MProductPricing.calculate() will fail.

Environment

None

Activity

Show:
Hiep Lq
September 3, 2017, 4:20 AM

you should create a overload function. for old function mark it deprecate.
so old plugin can continue work
http://wiki.idempiere.org/en/Contributing_to_Trunk#Changing_the_code

Andy Conn
September 4, 2017, 1:44 AM
Edited

Yes, I overloaded the constructor. It is backwards compatible. Patch updated with @deprecate annotation

Assignee

Andy Conn

Reporter

Andy Conn

Labels

Tested By

None

Components

Affects versions

Priority

Minor
Configure