On 2017-05-10 17:40, Sergi Almacellas Abellana wrote:
> Hi All,
> 
> I strange behaviour with the comissions generated from an invoice with a mix
> of lines with products and without products.
> 
> Our comission plan contains three lines:
> 
> - One for category A
> - One for category B
> - Another for all the others.
> 
> When generating the commissions of this invoice, the lines with product work
> correctly as they match depending on the product category, but the line
> without product always matches the first line of the plan. Which is at least
> something strange.
> 
> I'm not sure which will be the expected behavior on this case. Any ideas?

I think it is a wrong behaviour because in Plan.compute the pattern for
product is set only if there is a product. But I think it should be set
to None if no product is passed.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20170510163243.GB23442%40tetsuo.

Reply via email to