Skip to content

Commit

Permalink
Merge pull request #37202 from ruthra-kumar/ignore_ple_on_pcv_cancell…
Browse files Browse the repository at this point in the history
…ation

refactor: ignore PLE's on PCV cancellation
  • Loading branch information
ruthra-kumar authored Sep 22, 2023
2 parents 5353f19 + 301092d commit c5e4e01
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 c5e4e01

Please sign in to comment.