-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit implements a POS receipt for the voucher page. This receipt also puts the transaction type at the top of the receipt and groups by debits/credits. Fixes #184. Fixes #185.
- Loading branch information
Showing
7 changed files
with
110 additions
and
41 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
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
46 changes: 46 additions & 0 deletions
46
server/controllers/finance/reports/vouchers/receipt.pos.handlebars
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<head> | ||
<meta charset="utf-8" /> | ||
<script src="{{absolutePath}}/vendor/JsBarcode.all.min.js"></script> | ||
</head> | ||
<body> | ||
<p><b style="text-transform : uppercase">{{enterprise.name}}</b></p> | ||
<h2 style="text-align : left; margin : 0px">{{details.reference}}</h2> | ||
<p style="margin-top : 0px">{{date details.date}} {{translate 'FORM.LABELS.BY'}} {{details.display_name}}</p> | ||
|
||
<div style="text-align : center;">{{> barcode value=details.barcode}}</div> | ||
|
||
<h2 style="margin-bottom : 0px">{{translate details.text}}</h2> | ||
|
||
<p style="margin-bottom : 0px;"> | ||
{{details.description}} | ||
</p> | ||
|
||
<p style="font-weight : bold; text-decoration : underline; margin-bottom : 0px;"> | ||
{{details.reference}} | ||
</p> | ||
|
||
<table style="width : 100%"> | ||
<thead> | ||
<tr> | ||
<th></th><th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{#each rows as |item| }} | ||
<tr> | ||
<td>{{item.label}}</td> | ||
<th style="text-align : right;"> | ||
{{#if item.credit}} {{currency item.credit ../details.currency_id}}{{/if}} | ||
{{#if item.debit}} ({{currency item.debit ../details.currency_id}}){{/if}} | ||
</th> | ||
</tr> | ||
{{/each}} | ||
</tbody> | ||
</table> | ||
|
||
{{> underline}} | ||
|
||
<h2 style="text-align : right;">{{translate "FORM.LABELS.TOTAL"}}: {{currency details.amount details.currency_id}}</h2> | ||
|
||
<script>JsBarcode('.barcode').init();</script> | ||
</body> |
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