Commit 5ce4265c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Jérome Perrin

erp5_base: Include getSpecialisedAggregatedAmountList in Tax List of Delivery Data Dict

parent 1c4d3c21
......@@ -93,6 +93,9 @@ def getTaxLineList(order):
tax_line_list = [line for line in
order.contentValues(portal_type=order.getPortalTaxMovementTypeList())
if line.getTotalPrice()]
for line in order.Base_getSpecialisedAggregatedAmountList():
if line.getTradePhase() == "trade/tax":
tax_line_list.append(line)
tax_line_list.sort(key=lambda line:line.getTitle())
return tax_line_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment