Expose department tax, FS flag
This commit is contained in:
parent
cd82f8927b
commit
507a9ffc71
3 changed files with 21 additions and 4 deletions
|
@ -918,6 +918,14 @@ class MasterView(View):
|
|||
if not vendor:
|
||||
node.raise_invalid("Vendor not found")
|
||||
|
||||
def render_tax(self, obj, field):
|
||||
tax = getattr(obj, field)
|
||||
if not tax:
|
||||
return
|
||||
text = str(tax)
|
||||
url = self.request.route_url('taxes.view', uuid=tax.uuid)
|
||||
return tags.link_to(text, url)
|
||||
|
||||
def render_department(self, obj, field):
|
||||
department = getattr(obj, field)
|
||||
if not department:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue