From 09aae099df2dca8526eeef6f04f355431724594c Mon Sep 17 00:00:00 2001 From: Vishwas Babu A J Date: Sun, 6 Sep 2015 00:06:06 +0530 Subject: [PATCH] client-fees UI fixes --- app/global-translations/locale-en.json | 1 + .../client/ViewClientController.js | 2 +- app/views/clients/addnewclientcharge.html | 1 + app/views/clients/clientchargeoverview.html | 6 ++- app/views/clients/payclientcharge.html | 44 +++++++++++-------- app/views/clients/viewclient.html | 2 +- app/views/clients/viewclientcharge.html | 5 ++- app/views/products/createcharge.html | 2 +- app/views/products/editcharge.html | 2 +- app/views/products/viewcharge.html | 2 +- .../edit_saving_account_application.html | 2 +- 11 files changed, 40 insertions(+), 29 deletions(-) diff --git a/app/global-translations/locale-en.json b/app/global-translations/locale-en.json index d7b2c454..e032b850 100755 --- a/app/global-translations/locale-en.json +++ b/app/global-translations/locale-en.json @@ -2724,6 +2724,7 @@ "label.input.incomefrominterest": "Income from interest", "label.input.interest.on.overdrafts": "Overdraft Interest Income", "label.input.incomefromfees": "Income from fees", + "label.input.incomefromcharges" : "Income from charge", "label.input.recoverypayments": "Income from Recovery Repayments", "label.input.incomefrompenalties": "Income from penalties", "label.input.loseswrittenoff": "Losses written off", diff --git a/app/scripts/controllers/client/ViewClientController.js b/app/scripts/controllers/client/ViewClientController.js index 4b0c2675..ea070d7b 100644 --- a/app/scripts/controllers/client/ViewClientController.js +++ b/app/scripts/controllers/client/ViewClientController.js @@ -514,7 +514,7 @@ scope.waiveCharge = function(chargeId){ resourceFactory.clientChargesResource.waive({clientId: routeParams.id, resourceType:chargeId}, function (data) { - location.path('/viewclient/'+ scope.client.id); + route.reload(); }); } diff --git a/app/views/clients/addnewclientcharge.html b/app/views/clients/addnewclientcharge.html index c393ce71..7aeaa4a0 100644 --- a/app/views/clients/addnewclientcharge.html +++ b/app/views/clients/addnewclientcharge.html @@ -1,5 +1,6 @@
diff --git a/app/views/clients/clientchargeoverview.html b/app/views/clients/clientchargeoverview.html index 60c0f2fe..b2aea90f 100644 --- a/app/views/clients/clientchargeoverview.html +++ b/app/views/clients/clientchargeoverview.html @@ -1,7 +1,7 @@
@@ -19,7 +19,9 @@ - {{charge.name}} +  {{charge.name}} + {{charge.dueDate|DateFormat}} {{charge.amount | number}} {{charge.amountPaid | number}} diff --git a/app/views/clients/payclientcharge.html b/app/views/clients/payclientcharge.html index 8a8d1eb5..f1adfe17 100644 --- a/app/views/clients/payclientcharge.html +++ b/app/views/clients/payclientcharge.html @@ -1,19 +1,22 @@ -
- -
-
- -
+
+
+ +
+ + +
- +
@@ -23,17 +26,20 @@ class="required">*
-
-
-
- {{'label.button.cancel' | - translate}} - -
- - +
+ {{'label.button.cancel' | + translate}} + +
+ + + \ No newline at end of file diff --git a/app/views/clients/viewclient.html b/app/views/clients/viewclient.html index b6633e57..9f01415d 100755 --- a/app/views/clients/viewclient.html +++ b/app/views/clients/viewclient.html @@ -236,7 +236,7 @@ -  {{charge.name}} +  {{charge.name}} {{charge.dueDate|DateFormat}} {{charge.amount | number}} diff --git a/app/views/clients/viewclientcharge.html b/app/views/clients/viewclientcharge.html index 4bf9119b..d818abca 100644 --- a/app/views/clients/viewclientcharge.html +++ b/app/views/clients/viewclientcharge.html @@ -1,11 +1,12 @@