2015-11-19 13:57:23 +00:00
|
|
|
<vn>
|
|
|
|
<vn-group>
|
|
|
|
<db-form id="ticket">
|
|
|
|
<db-model property="model" id="ticket-data" conn="conn" batch="batch">
|
|
|
|
<custom>
|
2018-01-02 13:16:41 +00:00
|
|
|
CALL myTicketGet (#ticket)
|
2015-11-19 13:57:23 +00:00
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
</db-form>
|
|
|
|
</vn-group>
|
|
|
|
<div id="report" class="sheet">
|
2015-11-26 12:30:04 +00:00
|
|
|
<h2>
|
|
|
|
<htk-text column="id" form="ticket"/>
|
|
|
|
</h2>
|
|
|
|
<div class="header">
|
|
|
|
<p>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-text form="ticket" column="nickname"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-text form="ticket" column="landed" format="%D"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-text form="ticket" column="street"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-text form="ticket" column="postalCode"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
<htk-text form="ticket" column="city"/>
|
2018-01-02 13:16:41 +00:00
|
|
|
(<htk-text form="ticket" column="province"/>) aaa
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2018-01-02 13:16:41 +00:00
|
|
|
<t>Delivery</t> <htk-text form="ticket" column="agency"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
2015-11-19 13:57:23 +00:00
|
|
|
<htk-grid>
|
|
|
|
<db-model property="model" id="movements" conn="conn" batch="batch">
|
|
|
|
<custom>
|
2018-01-02 13:16:41 +00:00
|
|
|
CALL myTicketGetRows (#ticket)
|
2015-11-19 13:57:23 +00:00
|
|
|
</custom>
|
|
|
|
</db-model>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-column-spin title="_Ref" column="itemFk"/>
|
|
|
|
<htk-column-spin title="_Amount" column="quantity"/>
|
2015-11-19 13:57:23 +00:00
|
|
|
<htk-column-text title="_Item" column="concept"/>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-column-text title="_S1" column="size"/>
|
|
|
|
<htk-column-text title="_Cat" column="category"/>
|
2015-11-19 13:57:23 +00:00
|
|
|
<htk-column-spin title="_Price" column="price" unit="€" digits="2"/>
|
|
|
|
<htk-column-spin title="_Subtotal" unit="€" digits="2" renderer="subtotalRenderer"/>
|
|
|
|
</htk-grid>
|
2018-01-02 13:16:41 +00:00
|
|
|
<p class="footer important">
|
2015-11-26 12:30:04 +00:00
|
|
|
<htk-text format="%.2d€">
|
|
|
|
<db-calc-sum property="param" func="subtotal" model="movements"/>
|
|
|
|
</htk-text>
|
|
|
|
</p>
|
2018-01-02 13:16:41 +00:00
|
|
|
<p class="important">
|
|
|
|
<t>Total + tax</t>
|
|
|
|
<htk-text format="%.2d€" form="ticket" column="total"/>
|
|
|
|
</p>
|
2018-01-05 12:57:35 +00:00
|
|
|
<htk-grid id="packages" class="packages">
|
|
|
|
<db-model
|
|
|
|
property="model"
|
|
|
|
conn="conn"
|
|
|
|
batch="batch"
|
|
|
|
on-status-changed="onPackagesChanged">
|
|
|
|
<custom>
|
|
|
|
CALL myTicketGetPackages (#ticket)
|
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
<htk-column-spin title="_Ref" column="id"/>
|
|
|
|
<htk-column-spin title="_Amount" column="quantity"/>
|
|
|
|
<htk-column-text title="_Item" column="name"/>
|
|
|
|
</htk-grid>
|
2015-11-19 13:57:23 +00:00
|
|
|
</div>
|
|
|
|
</vn>
|