Skip to content

Commit

Permalink
chore(stock): improve exit report formatting
Browse files Browse the repository at this point in the history
This commit improves the stock exit report by:

 1. making the titles smaller
 2. removing the italics and parens around the units

Closes Third-Culture-Software#5419.
  • Loading branch information
jniles committed Mar 5, 2021
1 parent c71ea15 commit e095ef5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions server/controllers/stock/reports/stock_exit.report.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
<table class="table table-condensed table-report">
<thead>
<tr style="background-color: #EFEFEF;">
<th colspan="5"><h3 style="margin: 0px;">{{translate 'STOCK.RECEIPT.EXIT_PATIENTS'}}</h3></th>
<th colspan="5">{{translate 'STOCK.RECEIPT.EXIT_PATIENTS'}}</th>
<th colspan="2" class="text-right">{{currency exitToPatient.cost metadata.enterprise.currency_id}}</th>
</tr>
</thead>
{{#each exitToPatient.data as | data |}}
<thead>
<tr>
<th colspan="4">{{ data.inventory_name }}</th>
<th class="text-right">{{ data.inventory_stock_exit_quantity }} <i>({{ data.inventory_unit }})</i></th>
<th class="text-right">{{ data.inventory_stock_exit_quantity }} {{ data.inventory_unit }}</th>
<th colspan="2" class="text-right">{{currency data.inventory_stock_exit_cost ../metadata.enterprise.currency_id}}</th>
</tr>
</thead>
Expand All @@ -45,14 +45,14 @@
{{#each data.inventory_stock_exit_data as | item |}}
<tr>
<td style="border:none; width: 20%; padding-left: 30px;"><b>{{ document_reference }}</b></td>
<td class="text-left" style="border:none; width: 40%;">({{ patient_reference }}) {{ patient_display_name }}</td>
<td class="text-left" style="border:none; width: 40%;">{{ patient_reference }} {{ patient_display_name }}</td>
<td class="text-left" style="border:none; width: 15%">
{{#if invoice_reference}}
{{translate 'FORM.LABELS.INVOICE' }}: <b>{{ invoice_reference }}</b>
{{/if}}
</td>
<td style="border:none;">{{date date }}</td>
<td class="text-right" style="border:none;">{{ quantity }} <i>({{ unit_text }})</i></td>
<td class="text-right" style="border:none;">{{ quantity }} {{ unit_text }}</td>
<td class="text-right" style="border:none;">{{currency unit_cost ../../metadata.enterprise.currency_id}}</td>
<td class="text-right" style="border:none;">{{currency cost ../../metadata.enterprise.currency_id}}</td>
</tr>
Expand All @@ -76,15 +76,15 @@
<table class="table table-condensed table-report">
<thead>
<tr style="background-color: #EFEFEF;">
<th colspan="5"><h3 style="margin: 0px;">{{translate 'STOCK.RECEIPT.EXIT_SERVICES'}} <small>{{translate 'STOCK.BY_INVENTORY'}}</small></h3></th>
<th colspan="5">{{translate 'STOCK.RECEIPT.EXIT_SERVICES'}} <small>{{translate 'STOCK.BY_INVENTORY'}}</small></th>
<th colspan="2" class="text-right">{{currency exitToService.cost metadata.enterprise.currency_id}}</th>
</tr>
</thead>
{{#each exitToService.data as | data |}}
<thead>
<tr>
<th colspan="4">{{ data.inventory_name }}</th>
<th class="text-right">{{ data.inventory_stock_exit_quantity }} <i>({{ data.inventory_unit }})</i></th>
<th class="text-right">{{ data.inventory_stock_exit_quantity }} {{ data.inventory_unit }}</th>
<th colspan="2" class="text-right">{{currency data.inventory_stock_exit_cost ../metadata.enterprise.currency_id}}</th>
</tr>
</thead>
Expand All @@ -97,7 +97,7 @@
<td class="text-left" style="border:none; width: 40%;">{{ service_display_name }}</td>
<td class="text-left" style="border:none; width: 15%">&nbsp;</td>
<td style="border:none;">{{date date }}</td>
<td class="text-right" style="border:none;">{{ quantity }} <i>({{ unit_text }})</i></td>
<td class="text-right" style="border:none;">{{ quantity }} {{ unit_text }}</td>
<td class="text-right" style="border:none;">{{currency unit_cost ../../metadata.enterprise.currency_id}}</td>
<td class="text-right" style="border:none;">{{currency cost ../../metadata.enterprise.currency_id}}</td>
</tr>
Expand All @@ -121,7 +121,7 @@
<table class="table table-condensed table-report">
<thead>
<tr style="background-color: #EFEFEF;">
<th colspan="5"><h3 style="margin: 0px;">{{translate 'STOCK.RECEIPT.EXIT_SERVICES'}} <small>{{translate 'STOCK.BY_SERVICE'}}</small></h3></th>
<th colspan="5">{{translate 'STOCK.RECEIPT.EXIT_SERVICES'}} <small>{{translate 'STOCK.BY_SERVICE'}}</small></th>
<th colspan="2" class="text-right">{{currency exitToServiceGrouped.cost metadata.enterprise.currency_id}}</th>
</tr>
</thead>
Expand All @@ -137,7 +137,7 @@
<thead>
<tr>
<th style="padding-left: 30px;" colspan="4">{{ newData.inventory_name }}</th>
<th class="text-right">{{ newData.inventory_stock_exit_quantity }} <i>({{ newData.inventory_unit }})</i></th>
<th class="text-right">{{ newData.inventory_stock_exit_quantity }} {{ newData.inventory_unit }}</th>
<th colspan="2" class="text-right">{{currency newData.inventory_stock_exit_cost ../../metadata.enterprise.currency_id}}</th>
</tr>
</thead>
Expand All @@ -150,7 +150,7 @@
<td class="text-left" style="border:none; width: 40%;">{{ text }}</td>
<td class="text-left" style="border:none; width: 15%">&nbsp;</td>
<td style="border:none;">{{date date }}</td>
<td class="text-right" style="border:none;">{{ quantity }} <i>({{ unit_text }})</i></td>
<td class="text-right" style="border:none;">{{ quantity }} {{ unit_text }}</td>
<td class="text-right" style="border:none;">{{currency unit_cost ../../../metadata.enterprise.currency_id}}</td>
<td class="text-right" style="border:none;">{{currency cost ../../../metadata.enterprise.currency_id}}</td>
</tr>
Expand All @@ -175,15 +175,15 @@
<table class="table table-condensed table-report">
<thead>
<tr style="background-color: #EFEFEF;">
<th colspan="5"><h3 style="margin: 0px">{{translate 'STOCK.RECEIPT.EXIT_DEPOT'}}</h3></th>
<th colspan="5">{{translate 'STOCK.RECEIPT.EXIT_DEPOT'}}</th>
<th colspan="2" class="text-right">{{currency exitToDepot.cost metadata.enterprise.currency_id}}</th>
</tr>
</thead>
{{#each exitToDepot.data as | data |}}
<thead>
<tr>
<th colspan="4">{{ data.inventory_name }}</th>
<th class="text-right">{{ data.inventory_stock_exit_quantity }} <i>({{ data.inventory_unit }})</i></th>
<th class="text-right">{{ data.inventory_stock_exit_quantity }} {{ data.inventory_unit }}</th>
<th colspan="2" class="text-right">{{currency data.inventory_stock_exit_cost ../metadata.enterprise.currency_id}}</th>
</tr>
</thead>
Expand All @@ -196,7 +196,7 @@
<td class="text-left" style="border:none; width: 40%;">{{ depot_name }}</td>
<td class="text-left" style="border:none; width: 15%">&nbsp;</td>
<td style="border:none;">{{date date }}</td>
<td class="text-right" style="border:none;">{{ quantity }} <i>({{ unit_text }})</i></td>
<td class="text-right" style="border:none;">{{ quantity }} {{ unit_text }}</td>
<td class="text-right" style="border:none;">{{currency unit_cost ../../metadata.enterprise.currency_id}}</td>
<td class="text-right" style="border:none;">{{currency cost ../../metadata.enterprise.currency_id}}</td>
</tr>
Expand All @@ -220,15 +220,15 @@
<table class="table table-condensed table-report">
<thead>
<tr style="background-color: #EFEFEF;">
<th colspan="5"><h3 style="margin: 0px;">{{translate 'STOCK.RECEIPT.EXIT_LOSS'}}</h3></th>
<th colspan="5">{{translate 'STOCK.RECEIPT.EXIT_LOSS'}}</th>
<th colspan="2" class="text-right">{{currency exitToLoss.cost metadata.enterprise.currency_id}}</th>
</tr>
</thead>
{{#each exitToLoss.data as | data |}}
<thead>
<tr>
<th colspan="4">{{ data.inventory_name }}</th>
<th class="text-right">{{ data.inventory_stock_exit_quantity }} <i>({{ data.inventory_unit }})</i></th>
<th class="text-right">{{ data.inventory_stock_exit_quantity }} {{ data.inventory_unit }}</th>
<th colspan="2" class="text-right">{{currency data.inventory_stock_exit_cost ../metadata.enterprise.currency_id}}</th>
</tr>
</thead>
Expand All @@ -241,7 +241,7 @@
<td class="text-left" style="border:none; width: 40%;">{{ description }}</td>
<td class="text-left" style="border:none; width: 15%">&nbsp;</td>
<td style="border:none;">{{date date }}</td>
<td class="text-right" style="border:none;">{{ quantity }} <i>({{ unit_text }})</i></td>
<td class="text-right" style="border:none;">{{ quantity }} {{ unit_text }}</td>
<td class="text-right" style="border:none;">{{currency unit_cost ../../metadata.enterprise.currency_id}}</td>
<td class="text-right" style="border:none;">{{currency cost ../../metadata.enterprise.currency_id}}</td>
</tr>
Expand Down

0 comments on commit e095ef5

Please sign in to comment.