Break when match product price supplier
Break when find a price by supplier [1].
A. Example price lines:
Quantity / Price /sequence
"10,0", "10,0000", 1
"10 000,0", "0,0524", 2
"1,0", "1,0000", 3
Add qty 24:
for price in prices:
10.0 -> match: 10.0
10000.0 -> no match
1.0 -> match: 1.0
Return price from quantity 1 (last match).
B. Expected price lines (order by sequence like product_price_list):
Quantity / Price /sequence
"10 000,0", "0,0524", 1
"10,0", "10,0000", 2
"1,0", "1,0000", 3
Add qty 24:
for price in prices:
10000.0 -> no match
10.0 -> match: 10.0 and break
Return price from quantity 10 and not continue.
[1] https://hg.tryton.org/modules/purchase/file/tip/product.py#l177