Expose department tax, FS flag

This commit is contained in:
Lance Edgar 2023-10-11 18:35:35 -05:00
parent cd82f8927b
commit 507a9ffc71
3 changed files with 21 additions and 4 deletions

View file

@ -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: