Commit 29702cf9 authored by Jérome Perrin's avatar Jérome Perrin

trade: use "Third Party" as term for order report, not "Client"

This report can be used for purchase, then it shows supplier. In the
report dialog, we have "By Third Party" report mode, so use consistent term.
parent 091f8b41
...@@ -61,7 +61,7 @@ interval_list = interval_list_dict[aggregation_level] ...@@ -61,7 +61,7 @@ interval_list = interval_list_dict[aggregation_level]
interval_column_list = [] interval_column_list = []
if group_by == "client": if group_by == "client":
interval_column_list.extend([("Amount %s" %x,"Amount %s" %x) for x in interval_list]) interval_column_list.extend([("Amount %s" %x,"Amount %s" %x) for x in interval_list])
selection_columns = [('client', "Client")] selection_columns = [('client', "Third Party")]
total_column_list = [('total amount', 'Total Amount'),] total_column_list = [('total amount', 'Total Amount'),]
stat_columns = [('client', "client")] stat_columns = [('client', "client")]
total_stat_list = [('total amount', 'total amount'),] total_stat_list = [('total amount', 'total amount'),]
...@@ -70,7 +70,7 @@ else: ...@@ -70,7 +70,7 @@ else:
selection_columns = [('product', "Product")] selection_columns = [('product', "Product")]
stat_columns = [('product', "product")] stat_columns = [('product', "product")]
else: else:
selection_columns = [('client', "Client"), ('product', "Product")] selection_columns = [('client', "Third Party"), ('product', "Product")]
stat_columns = [('client', "client"), ('product', "product")] stat_columns = [('client', "client"), ('product', "product")]
for x in interval_list: for x in interval_list:
interval_column_list.extend([("Amount %s" %x,"Amount %s" %x), ("Quantity %s" %x,"Quantity %s" %x), interval_column_list.extend([("Amount %s" %x,"Amount %s" %x), ("Quantity %s" %x,"Quantity %s" %x),
......
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