Skip to content

Commit

Permalink
refactor: ignore PLE's on PCV cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Sep 22, 2023
1 parent d477387 commit 301092d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def on_submit(self):
def on_cancel(self):
self.validate_future_closing_vouchers()
self.db_set("gle_processing_status", "In Progress")
self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry")
self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry", "Payment Ledger Entry")
gle_count = frappe.db.count(
"GL Entry",
{"voucher_type": "Period Closing Voucher", "voucher_no": self.name, "is_cancelled": 0},
Expand Down

0 comments on commit 301092d

Please sign in to comment.