Add label to customer balance so it's clear to the manager what's the balance status: credit owed or balance due

This commit is contained in:
Luis Ramos
2020-10-14 12:03:14 +01:00
parent da69dca471
commit e860e2ca57
5 changed files with 41 additions and 16 deletions

View File

@@ -47,3 +47,8 @@ angular.module("admin.customers").controller "customersCtrl", ($scope, $q, $filt
tag.text.toLowerCase().indexOf(query.toLowerCase()) != -1
defer.resolve filtered
defer.promise
$scope.displayBalanceStatus = (customer) ->
return unless customer.balance_status
t('admin.customers.index.' + customer.balance_status)