-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report aged of Debts #1475
Report aged of Debts #1475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a useful report!
Your grid code is good, as is your updates to the i18n
keys!
I'm confused about why you needed the agedCreditor.html file, it seems unnecessary at best and a duplication of work at worst. If you really don't need those files, then you can also remove the AgedCreditorsReportService
and other files that were created to support those files. Please remove all unused files and code.
@@ -271,7 +271,7 @@ | |||
"IS_REPORT":"Is report ?", | |||
"IS_TITLE":"Is title ?", | |||
"IS_WAREHOUSE":"Is warehouse ?", | |||
"INCLUDE_ZEROES":"Inclure des lignes avec des valeurs zéro", | |||
"INCLUDE_ZEROES":"Include lines with zero values", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
<div class="flex-header static"> | ||
<div class="bhima-title"> | ||
<ol class="headercrumb"> | ||
<li class="static">{{ "TREE.FINANCE" | translate }}</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All new client-side modules should use the translate
directive instead of the translate
filter. Please update this code (and all other translate
filters) to be <element translate>KEY</element>
.
|
||
// basic grid options | ||
vm.gridOptions = { | ||
fastWatch: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
<th class="text-center">{{translate "REPORT.AGED_DEBTORS.OVER_NINETY_DAYS"}}</th> | ||
<th class="text-center">{{translate "REPORT.ZERO_TO_THIRTY_DAYS"}}</th> | ||
<th class="text-center">{{translate "REPORT.THIRTY_TO_SIXTY_DAYS"}}</th> | ||
<th class="text-center">{{translate "REPORT.SIXTY_TO_NINETY_DAYS"}}</th> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 This was a good change.
@@ -0,0 +1,33 @@ | |||
<div class="flex-header static"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this file should exist. Normally, for a report, all you need is two client file:
report.config.js
report.modal.html
Why does this file exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost there!
Two more updates and then this will be perfect to get into master
👍
- Please use the
translate
directive instead of thetranslate
filter. This was mentioned in the first review, but it looks like you missed a few. - You use "Aged Creditors" and "Aged Suppliers" a couple times ... it is better to pick one name and use it consistently. "Aged Creditors" makes sense (since we may include banks or other creditors in here). I propose you rename variables, files, comments, and functions to reflect the new name "Aged Creditors".
Apart from those two things, this looks good to go!
<div class="modal-body"> | ||
<div class="form-group" | ||
ng-class="{ 'has-error' : ConfigForm.$submitted && ConfigForm.label.$invalid }"> | ||
<label class="control-label">{{ "FORM.LABELS.LABEL" | translate }}</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should use the translate
directive.
@@ -0,0 +1,77 @@ | |||
{{> head title="REPORT.AGED_SUPPLIERS"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are mixing "Aged Suppliers" and "Aged Creditors" a lot. I propose you stick to the name "Aged Creditors", to avoid confusing in file names and variable names.
* | ||
* @description | ||
* This report displays the amounts owed by creditor groups broken down by age of | ||
* their debt. The report highlights clients who have long overdue debts, so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of this comment doesn't make any sense since it was lifted from the Aged Debtors report. You can just remove everything after the first sentence.
@lomamech, these changes look good! There are some conflicts to resolve, but afterwards this will be a really great report to have. 👍 |
245ddb3
to
a7c1378
Compare
@lomamech, it seems like the creditor group report tests fail... do you fail on your local machine? |
@kwilu try |
Report aged of Debts Report aged of Debts - Update translate files - Creation of user interface - Update data for bhima_test.sql - Adding test integration and E2E - Updating some tests closes #1387
💥 Test timed out |
☔ The latest upstream changes (presumably 1d3b7b2) made this pull request unmergeable. Please resolve the merge conflicts. |
- Remove Unnecessary folder reports/agedCreditors
- Using creditors instead suppliers - Fix Comment
871e261
to
9dd89e8
Compare
Looks good to me 👍 |
Report aged of Debts
closes #1387