diff --git a/templates/ledger/coa_accounts/account_list.html b/templates/ledger/coa_accounts/account_list.html index 6923a48f..1f4450a6 100644 --- a/templates/ledger/coa_accounts/account_list.html +++ b/templates/ledger/coa_accounts/account_list.html @@ -11,7 +11,7 @@

{% trans "Accounts" %}

- {% if perms.django_ledger.create_chartofaccountmodel %} + {% if perms.django_ledger.add_chartofaccountmodel %} {% trans 'New Account' %} {% endif %}
diff --git a/templates/sales/invoices/invoice_detail.html b/templates/sales/invoices/invoice_detail.html index ed16bd65..2b9c616f 100644 --- a/templates/sales/invoices/invoice_detail.html +++ b/templates/sales/invoices/invoice_detail.html @@ -82,16 +82,23 @@
+ {% if perms.django_ledger.change_invoicemodel%} {% if invoice.invoice_status == 'in_review' %} {% endif %} {% if invoice.invoice_status == 'approved' %} + {% if perms.inventory.add_payment%} {% trans 'Record Payment' %} + {% endif %} {% endif %} {% if not invoice.is_paid %} + {% if perms.inventory.change_payment%} + {% endif %} {% endif %} + {% endif %} {% trans 'Preview' %} +
{{invoice.amount_owned}}