Skip to content
Snippets Groups Projects
Commit 1fff3632 authored by Thomas Bock's avatar Thomas Bock :speech_balloon:
Browse files

myref esc

parent f43b5708
No related branches found
No related tags found
No related merge requests found
...@@ -311,9 +311,9 @@ class Trans: ...@@ -311,9 +311,9 @@ class Trans:
new_schedule_year = new_schedule_date.split("-")[0] new_schedule_year = new_schedule_date.split("-")[0]
consec_no = self.db.view_pla_next("{year}_{cus}".format(year = new_schedule_year, cus = customer_sign)) no = self.db.view_pla_next("{year}_{cus}".format(year = new_schedule_year, cus = customer_sign))
cal_doc_arr.append({"_id":"pla-{cus}-{year}-{no}".format(year = new_schedule_year, cus = customer_sign.lower(), no = consec_no), cal_doc_arr.append({"_id":"pla-{cus}-{year}-{no}".format(year = new_schedule_year, cus = customer_sign.lower(), no = no),
"Planning": new_pla}) "Planning": new_pla})
return jsonify({"docs":cal_doc_arr}) return jsonify({"docs":cal_doc_arr})
...@@ -357,7 +357,7 @@ class Trans: ...@@ -357,7 +357,7 @@ class Trans:
prepay_text, failed = self.utils.get_prepay_text(customer) prepay_text, failed = self.utils.get_prepay_text(customer)
return template.render(pla=pla, return template.render(pla=pla,
myref=doc_id.replace("pla-", ""), myref=doc_id.replace("pla-", "").replace("_", "\_"),
maintainer=maintainer, maintainer=maintainer,
date=date, date=date,
customer=customer, customer=customer,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment