template engine
This commit is contained in:
29
EpsonTest.Templates/Templates/InvoiceReceipt.xml
Normal file
29
EpsonTest.Templates/Templates/InvoiceReceipt.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<receipt>
|
||||
<line align="center">{{CompanyName}}</line>
|
||||
<line align="center">{{Address1}}</line>
|
||||
<line align="center">{{Address2}}</line>
|
||||
<line align="center">{{Phone}}</line>
|
||||
<line />
|
||||
<line />
|
||||
|
||||
<columns left="{{ReceiptLabel}}" right="{{DateTime:HH:mm dd.MM.yyyy}}" bold="true" />
|
||||
<if test="Guests">
|
||||
<line>Guests: {{Guests}}</line>
|
||||
</if>
|
||||
<line />
|
||||
|
||||
<foreach items="Items" var="item">
|
||||
<columns left="{{item.Quantity}}x {{item.Description}}" right="{{item.PriceDisplay}}" wrap="true" />
|
||||
<foreach items="item.SubItems" var="sub">
|
||||
<line> - {{sub}}</line>
|
||||
</foreach>
|
||||
</foreach>
|
||||
|
||||
<line />
|
||||
<line align="right">---------</line>
|
||||
<line />
|
||||
|
||||
<line align="center" big="true" bold="true">Summe: {{Total:F2}} {{Currency}}</line>
|
||||
<line align="center">Tisch: {{TableNumber}}</line>
|
||||
<line align="center">{{ThankYouMessage}}</line>
|
||||
</receipt>
|
||||
Reference in New Issue
Block a user