Skip to content

Commit

Permalink
fix: production plan date filters for orders (#39702)
Browse files Browse the repository at this point in the history
  • Loading branch information
GursheenK authored Feb 4, 2024
1 parent c81d597 commit 407045a
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 407045a

Please sign in to comment.