fix: field can't be a dict

This commit is contained in:
Faris Ansari
2025-06-06 17:05:08 +05:30
parent 6a3fc36979
commit 20e2fda183
2 changed files with 2 additions and 2 deletions

View File

@@ -766,7 +766,7 @@ def validate_against_pcv(is_opening, posting_date, company):
) )
last_pcv_date = frappe.db.get_value( last_pcv_date = frappe.db.get_value(
"Period Closing Voucher", {"docstatus": 1, "company": company}, {"MAX": "period_end_date"} "Period Closing Voucher", {"docstatus": 1, "company": company}, [{"MAX": "period_end_date"}]
) )
if last_pcv_date and getdate(posting_date) <= getdate(last_pcv_date): if last_pcv_date and getdate(posting_date) <= getdate(last_pcv_date):

View File

@@ -174,7 +174,7 @@ class PackingSlip(StatusUpdater):
return ( return (
cint( cint(
frappe.db.get_value( frappe.db.get_value(
"Packing Slip", {"delivery_note": self.delivery_note, "docstatus": 1}, {"MAX": "to_case_no"} "Packing Slip", {"delivery_note": self.delivery_note, "docstatus": 1}, [{"MAX": "to_case_no"}]
) )
) )
+ 1 + 1