Files
erpnext/erpnext/support
Mihir Kandoi 39eb34f333 refactor(postgres): address Greptile review on warranty_claim on_cancel
- Filter the parent Maintenance Visit's docstatus (mv.docstatus != 2) via a qb join, as
  the original SQL did, instead of the child Maintenance Visit Purpose row's docstatus.
  Synced in normal flows, but exactly faithful to the original intent.
- Add a limit(500) to bound the read on a cancellation path.

Adds two both-engine tests calling on_cancel directly: an active (non-cancelled) visit
blocks the claim cancel; with no referencing visit the claim is marked Cancelled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 13:13:14 +05:30
..
2021-11-05 11:16:29 +05:30
2024-12-29 14:15:52 +01:00
2022-03-28 18:52:46 +05:30
2013-12-11 10:43:52 +05:30

Customer Support / After sales service / Maintenance Module.