[impact] Limit available functions in jinja environment

This commit is contained in:
Anand Doshi
2014-07-25 12:50:00 +05:30
parent a5437cdac1
commit 62b1cbf003
8 changed files with 22 additions and 19 deletions

View File

@@ -3,7 +3,7 @@
from __future__ import unicode_literals
import frappe
from frappe.utils import cint, flt, _round, cstr, comma_or
from frappe.utils import cint, flt, rounded, cstr, comma_or
from erpnext.setup.utils import get_company_currency
from frappe import _, throw
@@ -220,8 +220,8 @@ class SellingController(StockController):
self.net_total_export + flt(self.discount_amount),
self.precision("other_charges_total_export"))
self.rounded_total = _round(self.grand_total)
self.rounded_total_export = _round(self.grand_total_export)
self.rounded_total = rounded(self.grand_total)
self.rounded_total_export = rounded(self.grand_total_export)
def apply_discount_amount(self):
if self.discount_amount: