fix: use ValueWrapper consistently

This commit is contained in:
Smit Vora
2025-11-28 13:33:24 +05:30
parent 8235a551f0
commit a2fadd9347
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import frappe
from pypika.terms import LiteralValue
from pypika.terms import ValueWrapper
from erpnext.accounts.general_ledger import make_reverse_gl_entries
@@ -40,7 +40,7 @@ def execute():
"payment_amount",
# at the time of creating this dunning, the full amount was outstanding
"payment_amount as outstanding",
LiteralValue(0).as_("paid_amount"),
ValueWrapper(0).as_("paid_amount"),
"discounted_amount",
],
)