template engine
This commit is contained in:
65
EpsonTest.Templates/Templates/KitchenReceipt.xml
Normal file
65
EpsonTest.Templates/Templates/KitchenReceipt.xml
Normal file
@@ -0,0 +1,65 @@
|
||||
<receipt>
|
||||
<line align="center" big="true" tall="true" red="true">{{Title}}</line>
|
||||
<separator />
|
||||
<line />
|
||||
|
||||
<line align="center">{{TransactionDateTime:dd-MMM-yy HH:mm}} Nr.:{{ReceiptNumber}}</line>
|
||||
<line align="center">{{WaiterName}}</line>
|
||||
<line align="center" big="true" bold="true">Tisch: {{TableNumber}}</line>
|
||||
|
||||
<if test="SpecialInstruction">
|
||||
<line />
|
||||
<line align="center" big="true" bold="true">{{SpecialInstruction}}</line>
|
||||
<line />
|
||||
</if>
|
||||
|
||||
<separator />
|
||||
|
||||
<foreach items="Gangs" var="gang">
|
||||
<line align="center" big="true" tall="true" red="true">{{gang.Id}}. {{gang.Name}}</line>
|
||||
<foreach items="gang.Dishes" var="dish">
|
||||
<line tall="true" wrap="true">{{dish.GuestPrefix}}{{dish.Number}}x {{dish.Name}}</line>
|
||||
<if test="dish.Modifications.HasModifications">
|
||||
<foreach items="dish.Modifications.Removed" var="removed">
|
||||
<line tall="true" bold="true"> - {{removed}}</line>
|
||||
</foreach>
|
||||
<foreach items="dish.Modifications.Added" var="added">
|
||||
<line tall="true" bold="true"> + {{added}}</line>
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="dish.Comment">
|
||||
<line tall="true" bold="true">Comment: {{dish.Comment}}</line>
|
||||
</if>
|
||||
</foreach>
|
||||
<if test="!$last">
|
||||
<cut />
|
||||
<line />
|
||||
<line />
|
||||
</if>
|
||||
</foreach>
|
||||
|
||||
<if test="HasGangs">
|
||||
<separator />
|
||||
</if>
|
||||
|
||||
<foreach items="Dishes" var="dish">
|
||||
<line tall="true" wrap="true">{{dish.GuestPrefix}}{{dish.Number}}x {{dish.Name}}</line>
|
||||
<if test="dish.Modifications.HasModifications">
|
||||
<foreach items="dish.Modifications.Removed" var="removed">
|
||||
<line tall="true" bold="true"> - {{removed}}</line>
|
||||
</foreach>
|
||||
<foreach items="dish.Modifications.Added" var="added">
|
||||
<line tall="true" bold="true"> + {{added}}</line>
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="dish.Comment">
|
||||
<line tall="true" bold="true">Comment: {{dish.Comment}}</line>
|
||||
</if>
|
||||
</foreach>
|
||||
|
||||
<if test="HasDishes">
|
||||
<line />
|
||||
<separator />
|
||||
<line />
|
||||
</if>
|
||||
</receipt>
|
||||
Reference in New Issue
Block a user