fix: field can't be a dict
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user