Skip to content

Commit

Permalink
fix: production plan date filters for orders (backport #39702) (#39720)
Browse files Browse the repository at this point in the history
fix: production plan date filters for orders (#39702)

(cherry picked from commit 407045a)

Co-authored-by: Gursheen Kaur Anand <40693548+GursheenK@users.noreply.github.com>
  • Loading branch information
mergify[bot] and GursheenK authored Feb 5, 2024
1 parent 5fe40ac commit 3eac436
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1334,10 +1334,10 @@ def get_sales_orders(self):
)

date_field_mapper = {
"from_date": self.from_date >= so.transaction_date,
"to_date": self.to_date <= so.transaction_date,
"from_delivery_date": self.from_delivery_date >= so_item.delivery_date,
"to_delivery_date": self.to_delivery_date <= so_item.delivery_date,
"from_date": so.transaction_date >= self.from_date,
"to_date": so.transaction_date <= self.to_date,
"from_delivery_date": so_item.delivery_date >= self.from_delivery_date,
"to_delivery_date": so_item.delivery_date <= self.to_delivery_date,
}

for field, value in date_field_mapper.items():
Expand Down

0 comments on commit 3eac436

Please sign in to comment.