Commit 2fb25873 authored by Jérome Perrin's avatar Jérome Perrin

support ${days} Days End of Month in delivery printouts

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27230 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e66ac548
......@@ -115,11 +115,14 @@ def getOrderedDate(date):\n
return date.strftime(pattern)\n
\n
def getPaymentConditionText(order):\n
if order.getPaymentConditionPaymentEndOfMonth():\n
return translateString("End of Month")\n
end_of_month = order.getPaymentConditionPaymentEndOfMonth()\n
days = order.getPaymentConditionPaymentTerm()\n
if days:\n
return \'%s %s\' % (days, translateString(\'Days\'))\n
if end_of_month:\n
return translateString("${days} Days End of Month", mapping=dict(days=days))\n
return translateString("${days} Days", mapping=dict(days=days))\n
elif end_of_month:\n
return translateString("End of Month") \n
return \'\'\n
\n
def getTaxLineList(order):\n
......
596
\ No newline at end of file
597
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment