Skip to content

Commit

Permalink
fix: resolve conflict in merging
Browse files Browse the repository at this point in the history
  • Loading branch information
lomamech committed Jul 17, 2017
1 parent c1dff39 commit af968af
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 27 deletions.
15 changes: 15 additions & 0 deletions client/src/i18n/en/table.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@
"NOVEMBER":"November",
"DECEMBER":"December"
},
"DATE_MONTH_MIN":{
"JANUARY":"Jan",
"FEBRUARY":"Feb",
"MARCH":"Mar",
"APRIL":"Apr",
"MAY":"May",
"JUNE":"Jun",
"JULY":"Jul",
"AUGUST":"Aug",
"SEPTEMBER":"Sep",
"OCTOBER":"Oct",
"NOVEMBER":"Nov",
"DECEMBER":"Dec"
},
"DATE_REGISTERED":"Date Registered",
"DEBIT":"Debit",
"DEBIT_SOURCE":"Debit (Source)",
Expand Down Expand Up @@ -96,6 +110,7 @@
"NO_PAYMENTS":"No payments made against this invoice.",
"NUM":"Number",
"OF":"of",
"OPENING_BALANCE":"Balance d'ouverure",
"PASSIVE":"Passive",
"PATIENT":"Patient",
"PATIENT_ID":"ID Patient",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/fr/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@
"PAYMENT":"Paiement",
"PAYMENT_DETAILS":"Details Paiement",
"PAYMENT_METHOD":"Mode de paiement",
"PERIODS":"Périodes",
"PERIOD_FROM" : "Periode Debut",
"PERIOD_TO" : "Periode Fin",
"PERIOD_TOTAL" : "Periode Total",
"PERIODES":"Périodes",
"PERIOD_FROM" : "Periode du Début",
"PERIOD_TO" : "Periode de la Fin",
"PERIOD_TOTAL":"Total de la période",
"PHONE":"Téléphone",
"PHONE_NO":"Numéro de Téléphone",
"POSITION":"Position",
Expand Down
15 changes: 15 additions & 0 deletions client/src/i18n/fr/table.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@
"NOVEMBER":"Novembre",
"DECEMBER":"Décembre"
},
"DATE_MONTH_MIN":{
"JANUARY":"Jan",
"FEBRUARY":"Fév",
"MARCH":"Mar",
"APRIL":"Avr",
"MAY":"Mai",
"JUNE":"Juin",
"JULY":"Juil",
"AUGUST":"Août",
"SEPTEMBER":"Sept",
"OCTOBER":"Oct",
"NOVEMBER":"Nov",
"DECEMBER":"Déc"
},
"DATE_REGISTERED":"Date d'enregistrement",
"DATA_SOURCE":"Source de données",
"DEBIT":"Débit",
Expand Down Expand Up @@ -96,6 +110,7 @@
"NO_PAYMENTS":"Aucun paiement n'a été effectué sur cette facture.",
"NUM":"Numéro",
"OF":"sur",
"OPENING_BALANCE":"Balance d'ouverure",
"PASSIVE":"Passive",
"PATIENT":"Patient",
"PATIENT_ID":"Patient Id",
Expand Down
2 changes: 1 addition & 1 deletion client/src/modules/fiscal/fiscal.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h4 style="margin-top : 0px;">
<div class="row">
<span class="fa fa-calendar"></span>
{{ fiscal.start_date | date }} - {{ fiscal.end_date | date }} ({{ fiscal.number_of_months }}
{{ "FORM.LABELS.PERIODS" | translate }})
{{ "FORM.LABELS.PERIODES" | translate }})
</div>

<div class="row text-lowercase">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ function GeneralLedgerAccountsController(GeneralLedger, Session, Notify,
headerCellFilter : 'translate',
headerCellClass : 'text-center',
cellTemplate : '/modules/general-ledger/templates/balance.cell.html' },


{ field : 'balance0',
displayName : 'TABLE.COLUMNS.OPENING_BALANCE',
enableFiltering : false,
headerCellFilter : 'translate',
headerCellClass : 'text-center',
cellTemplate : getCellTemplate('balance0')},

{ field : 'balance1',
displayName : 'TABLE.COLUMNS.DATE_MONTH.JANUARY',
enableFiltering : false,
Expand Down Expand Up @@ -150,6 +157,7 @@ function GeneralLedgerAccountsController(GeneralLedger, Session, Notify,
flatEntityAccess : true,
enableColumnMenus : false,
appScopeProvider : vm,
onRegisterApi : onRegisterApi,
};

var columnConfig = new Columns(vm.gridOptions, cacheKey);
Expand All @@ -170,6 +178,11 @@ function GeneralLedgerAccountsController(GeneralLedger, Session, Notify,
vm.loading = !vm.loading;
}

// API register function
function onRegisterApi(gridApi) {
vm.gridApi = gridApi;
}

function openColumnConfiguration() {
columnConfig.openConfigurationModal();
}
Expand Down
45 changes: 24 additions & 21 deletions server/controllers/finance/reports/generalLedger/report.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,30 @@
<div class="col-xs-12">

<!-- page title -->
<h1 class="text-center text-capitalize">
{{translate 'TREE.GENERAL_LEDGER'}}
</h1>
<h2 class="text-center text-capitalize">
{{ fiscal_year_label}}
</h2>
<h3 class="text-center text-uppercase"><strong>{{translate 'TREE.GENERAL_LEDGER'}}</strong></h3>

<h4 class="text-center"><strong>{{ fiscal_year_label}}</strong></h4>

<!-- invoices listed -->
<table class="table table-condensed table-striped table-bordered">
<table class="table table-condensed table-striped table-report table-bordered">
<thead>
<tr>
<tr class="text-capitalize text-center" style="background-color: #ddd;">
<th>{{translate 'TABLE.COLUMNS.ACCOUNT'}}</th>
<th>{{translate 'TABLE.COLUMNS.LABEL'}}</th>
<th>{{translate 'TABLE.COLUMNS.BALANCE'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.JANUARY'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.FEBRUARY'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.MARCH'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.APRIL'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.MAY'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.JUNE'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.JULY'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.AUGUST'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.SEPTEMBER'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.OCTOBER'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.NOVEMBER'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH.DECEMBER'}}</th>
<th>{{translate 'TABLE.COLUMNS.OPENING_BALANCE'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.JANUARY'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.FEBRUARY'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.MARCH'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.APRIL'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.MAY'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.JUNE'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.JULY'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.AUGUST'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.SEPTEMBER'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.OCTOBER'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.NOVEMBER'}}</th>
<th>{{translate 'TABLE.COLUMNS.DATE_MONTH_MIN.DECEMBER'}}</th>
</tr>
</thead>
<tbody>
Expand All @@ -43,11 +41,16 @@
<td>{{number}}</td>
<td>{{label}}</td>
<td class="text-right">{{currency balance ../metadata.enterprise.currency_id}}</td>
<td class="text-right">
{{#if balance0}}
{{currency balance0 ../metadata.enterprise.currency_id}}
{{/if}}
</td>
<td class="text-right">
{{#if balance1}}
{{currency balance1 ../metadata.enterprise.currency_id}}
{{/if}}
</td>
</td>
<td class="text-right">
{{#if balance2}}
{{currency balance2 ../metadata.enterprise.currency_id}}
Expand Down

0 comments on commit af968af

Please sign in to comment.