Skip to content

Commit

Permalink
fix: sales order not assigned to territory orders (backport #37905) (#…
Browse files Browse the repository at this point in the history
…38025)

fix: sales order not assigned to territory orders (#37905)

filtered sales order are not assigned to 'territory_orders' which results in 0 order amount and 0 billing amount in the output

(cherry picked from commit 45b4bfc)

Co-authored-by: jabir-elat <[email protected]>
  • Loading branch information
mergify[bot] and jabir-elat authored Nov 9, 2023
1 parent 3c0f8b1 commit 40cc3a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_data(filters=None):

territory_orders = []
if t_quotation_names and sales_orders:
list(filter(lambda x: x.quotation in t_quotation_names, sales_orders))
territory_orders = list(filter(lambda x: x.quotation in t_quotation_names, sales_orders))
t_order_names = []
if territory_orders:
t_order_names = [t.name for t in territory_orders]
Expand Down

0 comments on commit 40cc3a7

Please sign in to comment.