Skip to content

Commit

Permalink
Merge pull request #59 from Gramhal-Foundation/Bugfix/removed-crop-id…
Browse files Browse the repository at this point in the history
…-when-sale-receipt-edited

removed crop id check from edit check
  • Loading branch information
nishant22029 authored Jan 9, 2024
2 parents 2ac6ce6 + 02f6af2 commit e132202
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,6 @@ def resource_edit(resource_type, resource_id):
SaleReceiptModel.booklet_number == resource.booklet_number,
SaleReceiptModel.receipt_id == resource.receipt_id,
SaleReceiptModel.mandi_id == resource.mandi_id,
SaleReceiptModel.crop_id == resource.crop_id,
SaleReceiptModel.is_approved == True,
func.date(SaleReceiptModel.receipt_date)
== func.date(resource.receipt_date),
Expand Down

0 comments on commit e132202

Please sign in to comment.