-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(reports): Open Debtors respects order param
This commit fixes a bug with the Open Debtors report where the report did not respect the ordering parameter. It also refactors the ordering to have more succinct code as well as a clearer select by combining last invoice and last payment into a simpler "last transaction".
- Loading branch information
Showing
7 changed files
with
126 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,89 @@ | ||
{"TREE":{"ACCOUNT":"Account", | ||
"ACCOUNT_STATEMENT":"Account Statement", | ||
"ADMIN":"Admin", | ||
"AGED_CREDITORS":"Aged Debts", | ||
"BALANCE":"Balance", | ||
"BALANCE_SHEET":"Balance Sheet", | ||
"BALANCE_REPORT":"Balance of accounts", | ||
"BILLING_SERVICES":"Billing Services", | ||
"CASH_REPORT" : "Cash Report", | ||
"CASHBOX_MANAGEMENT":"Cashbox Management", | ||
"CASHFLOW":"Cashflow", | ||
"CASHFLOW_BY_SERVICE":"Cashflow by Service", | ||
"CASH_PAYMENT_REGISTRY":"Cash Payment Registry", | ||
"CASH_WINDOW":"Cash Window", | ||
"COMPLEX_JOURNAL_VOUCHER":"Journal Vouchers", | ||
"COST_CENTER_MGMT":"Cost Center Management", | ||
"CREDIT_NOTE":"Credit note", | ||
"CREDITOR_GROUP":"Creditor Group Management", | ||
"CURRENCY":"Currency", | ||
"CUSTOMER_DEBTS":"Customer Debts", | ||
"DEBTOR_GROUP":"Debtor Group Management", | ||
"DEPOTS":"Depots Management", | ||
"EMPLOYEE":"Employee", | ||
"EMPLOYEE_REGISTRY" : "Employees registry", | ||
"ENTERPRISE":"Enterprise", | ||
"EXCHANGE":"Exchange Rate", | ||
"FINANCE":"Finance", | ||
"FISCAL_YEAR":"Fiscal Year", | ||
"FONCTION":"Job titles management", | ||
"GENERAL_LEDGER":"General Ledger", | ||
"GRADE_EMPLOYERS":"Grade Employees", | ||
"HOSPITAL":"Hospital", | ||
"INCOME_EXPENSE":"Income and Expenses", | ||
"INVENTORY":"Inventory", | ||
"INVENTORY_CONFIGURATION":"Configurations", | ||
"INVENTORY_GROUP":"Group", | ||
"INVENTORY_LIST":"List", | ||
"INVENTORY_MANAGEMENT":"Inventory Management", | ||
"INVENTORY_TYPE":"Type", | ||
"INVENTORY_UNIT":"Dosage Form", | ||
"INVENTORY_VIEW":"Stock", | ||
"INVOICE_REGISTRY":"Invoice Registry", | ||
"JOURNAL_VOUCHER":"Journal Voucher", | ||
"LOCATION":"Locations Management", | ||
"PAYROLL":"Payroll", | ||
"PATIENT_DOCUMENT":"Patient Documents", | ||
"PATIENT_GRP":"Patient Groups", | ||
"PATIENT_GRP_ASSIGNMENT":"Patient Group Assignment", | ||
"PATIENT_INVOICE":"Patient Invoice", | ||
"PATIENT_RECORDS":"Patient Records", | ||
"PATIENT_REGISTRATION":"Patient Registration", | ||
"PATIENT_REGISTRATIONS":"Patient Registrations", | ||
"PATIENT_REGISTRY":"Patients Registry", | ||
"PHARMACY":"Pharmacy Management", | ||
"POSTED_JOURNAL":"Posted Journal", | ||
"POSTING_JOURNAL":"Posting Journal", | ||
"PRICE_LIST":"Price List", | ||
"PROJECT":"Projects", | ||
"PURCHASE_ORDER":"Purchase Order", | ||
"PURCHASE":"Purchase", | ||
"PURCHASE_REGISTRY":"Purchase Registry", | ||
"PURCHASING":"Purchasing", | ||
"REFERENCE":"Reference", | ||
"REFERENCE_GROUP":"Reference Group", | ||
"REGISTER_SUPPLIER":"Supplier", | ||
"REPORTS":"Reports", | ||
"REPORT_ACCOUNTS":"Report accounts", | ||
"ROOT":"Root", | ||
"RUBRIC_MANAGEMENT":"Rubrics Management", | ||
"INVOICES":"Invoices", | ||
"SECTION_BILAN":"Bilan section", | ||
"SECTION_RESULTAT":"Result Section", | ||
"SERVICE":"Services", | ||
"SIMPLE_VOUCHER":"Simple Voucher", | ||
"STOCK": "Stock", | ||
"STOCK_INVENTORY":"Inventories in Stock", | ||
"STOCK_REPORT": "[Stock] Inventories", | ||
"STOCK_INVENTORY_REPORT":"[Stock] Inventory Report", | ||
"STOCK_LOTS":"Stock Lots", | ||
"STOCK_MOVEMENTS":"Stock Movements", | ||
"SUBSIDY":"Subsidy Management", | ||
"TRANSACTION_TYPE":"Transaction Types", | ||
"USERS":"Users", | ||
"VOUCHER_REGISTRY":"Voucher Registry", | ||
"AGED_DEBTORS":"Aged Debtors"}} | ||
{ | ||
"TREE": { | ||
"ACCOUNT":"Account", | ||
"ACCOUNT_STATEMENT":"Account Statement", | ||
"ADMIN":"Admin", | ||
"AGED_CREDITORS":"Aged Debts", | ||
"BALANCE":"Balance", | ||
"BALANCE_SHEET":"Balance Sheet", | ||
"BALANCE_REPORT":"Balance of accounts", | ||
"BILLING_SERVICES":"Billing Services", | ||
"CASH_REPORT" : "Cash Report", | ||
"CASHBOX_MANAGEMENT":"Cashbox Management", | ||
"CASHFLOW":"Cashflow", | ||
"CASHFLOW_BY_SERVICE":"Cashflow by Service", | ||
"CASH_PAYMENT_REGISTRY":"Cash Payment Registry", | ||
"CASH_WINDOW":"Cash Window", | ||
"COMPLEX_JOURNAL_VOUCHER":"Journal Vouchers", | ||
"COST_CENTER_MGMT":"Cost Center Management", | ||
"CREDIT_NOTE":"Credit note", | ||
"CREDITOR_GROUP":"Creditor Group Management", | ||
"CURRENCY":"Currency", | ||
"CUSTOMER_DEBTS":"Customer Debts", | ||
"DEBTOR_GROUP":"Debtor Group Management", | ||
"DEPOTS":"Depots Management", | ||
"EMPLOYEE":"Employee", | ||
"EMPLOYEE_REGISTRY" : "Employees registry", | ||
"ENTERPRISE":"Enterprise", | ||
"EXCHANGE":"Exchange Rate", | ||
"FINANCE":"Finance", | ||
"FISCAL_YEAR":"Fiscal Year", | ||
"FONCTION":"Job titles management", | ||
"GENERAL_LEDGER":"General Ledger", | ||
"GRADE_EMPLOYERS":"Grade Employees", | ||
"HOSPITAL":"Hospital", | ||
"INCOME_EXPENSE":"Income and Expenses", | ||
"INVENTORY":"Inventory", | ||
"INVENTORY_CONFIGURATION":"Configurations", | ||
"INVENTORY_GROUP":"Group", | ||
"INVENTORY_LIST":"List", | ||
"INVENTORY_MANAGEMENT":"Inventory Management", | ||
"INVENTORY_TYPE":"Type", | ||
"INVENTORY_UNIT":"Dosage Form", | ||
"INVENTORY_VIEW":"Stock", | ||
"INVOICE_REGISTRY":"Invoice Registry", | ||
"JOURNAL_VOUCHER":"Journal Voucher", | ||
"LOCATION":"Locations Management", | ||
"PAYROLL":"Payroll", | ||
"PATIENT_DOCUMENT":"Patient Documents", | ||
"PATIENT_GRP":"Patient Groups", | ||
"PATIENT_GRP_ASSIGNMENT":"Patient Group Assignment", | ||
"PATIENT_INVOICE":"Patient Invoice", | ||
"PATIENT_RECORDS":"Patient Records", | ||
"PATIENT_REGISTRATION":"Patient Registration", | ||
"PATIENT_REGISTRATIONS":"Patient Registrations", | ||
"PATIENT_REGISTRY":"Patients Registry", | ||
"PHARMACY":"Pharmacy Management", | ||
"POSTED_JOURNAL":"Posted Journal", | ||
"POSTING_JOURNAL":"Posting Journal", | ||
"PRICE_LIST":"Price List", | ||
"PROJECT":"Projects", | ||
"PURCHASE_ORDER":"Purchase Order", | ||
"PURCHASE":"Purchase", | ||
"PURCHASE_REGISTRY":"Purchase Registry", | ||
"PURCHASING":"Purchasing", | ||
"REFERENCE":"Reference", | ||
"REFERENCE_GROUP":"Reference Group", | ||
"REGISTER_SUPPLIER":"Supplier", | ||
"REPORTS":"Reports", | ||
"REPORT_ACCOUNTS":"Report accounts", | ||
"ROOT":"Root", | ||
"RUBRIC_MANAGEMENT":"Rubrics Management", | ||
"INVOICES":"Invoices", | ||
"SECTION_BILAN":"Bilan section", | ||
"SECTION_RESULTAT":"Result Section", | ||
"SERVICE":"Services", | ||
"SIMPLE_VOUCHER":"Simple Voucher", | ||
"STOCK": "Stock", | ||
"STOCK_INVENTORY":"Inventories in Stock", | ||
"STOCK_REPORT": "[Stock] Inventories", | ||
"STOCK_INVENTORY_REPORT":"[Stock] Inventory Report", | ||
"STOCK_LOTS":"Stock Lots", | ||
"STOCK_MOVEMENTS":"Stock Movements", | ||
"SUBSIDY":"Subsidy Management", | ||
"TRANSACTION_TYPE":"Transaction Types", | ||
"USERS":"Users", | ||
"VOUCHER_REGISTRY":"Voucher Registry", | ||
"AGED_DEBTORS":"Aged Debtors" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters