fix: handle return cancellation

(cherry picked from commit 50f73a5072)
This commit is contained in:
l0gesh29
2025-12-24 22:09:03 +05:30
committed by Mergify
parent a04da71182
commit 65a1c7086b

View File

@@ -571,7 +571,7 @@ class SalesInvoice(SellingController):
self.check_if_consolidated_invoice()
super().before_cancel()
self.update_time_sheet(None)
self.update_time_sheet(self.return_against if (self.is_return and self.return_against) else None)
def on_cancel(self):
check_if_return_invoice_linked_with_payment_entry(self)