<receipt>
  <table items="Items" var="item">
    <col width="8" align="center">Order:</col>
    <col align="center">QR:</col>
    <col width="12" align="center">{{DateTime:dd.MM.yyyy}}</col>
  </table>

  <if test="ClientNotes">
    <line>|Client Notes: {{ClientNotes}}</line>
  </if>

  <separator />

  <foreach items="Items" var="item">
    <line />
    <columns left="{{item.Number}} {{item.Name}}" right="{{item.SizePart}}x{{item.Quantity}}" />
    <foreach items="item.SubItems" var="sub">
      <line>  - {{sub}}</line>
    </foreach>
    <if test="item.Modifications.HasModifications">
      <line>  Change of</line>
      <line>  Ingredients:</line>
      <foreach items="item.Modifications.Removed" var="removed">
        <line>  - {{removed}}</line>
      </foreach>
      <foreach items="item.Modifications.Added" var="added">
        <line>  + {{added}}</line>
      </foreach>
    </if>
    <if test="item.Comment">
      <line>  SpecialInstruction: {{item.Comment}}</line>
    </if>
  </foreach>
</receipt>
