Skip to content

Commit

Permalink
fix: recent purcahse order fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anhilmy committed Aug 20, 2024
1 parent 47a41cf commit 3710bb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_last_purchase_request(item_code):
left join `tabPurchase Order` tpo
on tpo.name = tpoi.parent
where tpoi.item_code = '{item_code}'
and tpo.status not ('Draft', 'Cancelled')
and tpo.status not in ('Draft', 'Cancelled')
order by tpo.transaction_date desc
limit 1
'''
Expand Down

0 comments on commit 3710bb3

Please sign in to comment.