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

\myref{(((myref)))}

parent 2993ba5d
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ def offer(doc_id ):
if failed:
return make_response(jsonify(doc))
res = make_response(trans.planning_offer(pla))
res = make_response(trans.planning_offer(pla, doc_id))
## !
## write doc with fees dict
db.save_doc(doc)
......
......@@ -14,7 +14,7 @@
\yourref{(((pla.CustomerSign)))}
\myref{}
\yourmail{(((date.CustomerRef.value))) (per E-Mail)}
\handledby{(((maintainer.title)))\,(((maintainer.firstName)))\,(((maintainer.lastName)))}
%\mymail{ }
......@@ -22,6 +22,8 @@
\myfax{+49 30 3481-7386}
\myemail{vacuum.cal@ptb.de}
\myref{(((myref)))}
\definecolor{bgTextColor}{gray}{0.9}
\bgText*{ANGEBOT}
......
......@@ -21,6 +21,8 @@
\myfax{+49 30 3481-7386}
\myemail{vacuum.cal@ptb.de}
\myref{(((myref)))}
\definecolor{bgTextColor}{gray}{0.9}
\bgText*{OFFER}
......
......@@ -318,7 +318,7 @@ class Trans:
return jsonify({"docs":cal_doc_arr})
def planning_offer(self, pla):
def planning_offer(self, pla, doc_id):
# lang (de|en)
lang = pla['Customer']['Lang']
......@@ -357,6 +357,7 @@ class Trans:
prepay_text, failed = self.utils.get_prepay_text(customer)
return template.render(pla=pla,
myref=doc_id.replace("pla-", ""),
maintainer=maintainer,
date=date,
customer=customer,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment