fix: handle return cancellation

This commit is contained in:
l0gesh29
2025-12-24 22:09:03 +05:30
parent ae594e81f9
commit 50f73a5072

View File

@@ -589,7 +589,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)