Skip to content
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

Merged
merged 4 commits into from
Apr 20, 2017
Merged

Report aged of Debts #1475

merged 4 commits into from
Apr 20, 2017

Conversation

lomamech
Copy link
Contributor

@lomamech lomamech commented Apr 7, 2017

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

@lomamech lomamech requested a review from jniles April 7, 2017 09:34
Copy link
Contributor

@jniles jniles left a 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",
Copy link
Contributor

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>
Copy link
Contributor

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,
Copy link
Contributor

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>
Copy link
Contributor

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">
Copy link
Contributor

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:

  1. report.config.js
  2. report.modal.html

Why does this file exist?

@jniles jniles added the Report label Apr 7, 2017
Copy link
Contributor

@jniles jniles left a 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 👍

  1. Please use the translate directive instead of the translate filter. This was mentioned in the first review, but it looks like you missed a few.
  2. 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>
Copy link
Contributor

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"}}
Copy link
Contributor

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
Copy link
Contributor

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.

@jniles
Copy link
Contributor

jniles commented Apr 11, 2017

@lomamech, these changes look good! There are some conflicts to resolve, but afterwards this will be a really great report to have. 👍

@lomamech lomamech force-pushed the agedCreditors branch 2 times, most recently from 245ddb3 to a7c1378 Compare April 11, 2017 14:16
@jniles
Copy link
Contributor

jniles commented Apr 12, 2017

@lomamech, it seems like the creditor group report tests fail... do you fail on your local machine?

@jniles
Copy link
Contributor

jniles commented Apr 14, 2017

@kwilu try

@ghost
Copy link

ghost commented Apr 14, 2017

⌛ Trying commit a7c1378 with merge fda8425...

ghost pushed a commit that referenced this pull request Apr 14, 2017
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
@ghost
Copy link

ghost commented Apr 15, 2017

💥 Test timed out

@ghost
Copy link

ghost commented Apr 15, 2017

☔ 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
@lomamech lomamech force-pushed the agedCreditors branch 3 times, most recently from 871e261 to 9dd89e8 Compare April 19, 2017 15:04
@jniles
Copy link
Contributor

jniles commented Apr 20, 2017

Looks good to me 👍

@jniles jniles merged commit 2f2cb6d into IMA-WorldHealth:master Apr 20, 2017
@lomamech lomamech deleted the agedCreditors branch May 15, 2017 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implémentation du rapport "Balance Agée Fournisseurs"
2 participants