mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
fix: Validate for deferred revenue only if sales invoice needs repost
This commit is contained in:
@@ -571,6 +571,7 @@ class SalesInvoice(SellingController):
|
||||
|
||||
# validate if deferred revenue is enabled for any item
|
||||
# Don't allow to update the invoice if deferred revenue is enabled
|
||||
if needs_repost:
|
||||
for item in self.get("items"):
|
||||
if item.enable_deferred_revenue:
|
||||
frappe.throw(
|
||||
|
||||
Reference in New Issue
Block a user