mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-23 16:48:30 +00:00
This commit is contained in:
@@ -1603,6 +1603,10 @@ def parse_naming_series_variable(doc, variable):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
data = {"YY": "%y", "YYYY": "%Y", "MM": "%m", "DD": "%d", "JJJ": "%j"}
|
data = {"YY": "%y", "YYYY": "%Y", "MM": "%m", "DD": "%d", "JJJ": "%j"}
|
||||||
|
|
||||||
|
if doc and doc.doctype in ["Batch", "Serial No"] and doc.reference_doctype and doc.reference_name:
|
||||||
|
doc = frappe.get_doc(doc.reference_doctype, doc.reference_name)
|
||||||
|
|
||||||
date = (
|
date = (
|
||||||
(
|
(
|
||||||
getdate(doc.get("posting_date") or doc.get("transaction_date") or doc.get("posting_datetime"))
|
getdate(doc.get("posting_date") or doc.get("transaction_date") or doc.get("posting_datetime"))
|
||||||
|
|||||||
Reference in New Issue
Block a user