2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
|
|
|
<vn-group>
|
2016-10-27 11:22:04 +00:00
|
|
|
<vn-param id="ticket-id" on-changed="onTicketChange"/>
|
2015-11-19 13:57:23 +00:00
|
|
|
<vn-hash-param key="ticket" param="ticket-id"/>
|
2018-01-05 12:57:35 +00:00
|
|
|
<sql-batch id="batch">
|
|
|
|
<custom>
|
|
|
|
<item name="ticket" param="ticket-id"/>
|
|
|
|
</custom>
|
|
|
|
</sql-batch>
|
2018-02-06 08:57:05 +00:00
|
|
|
<db-form id="ticket" on-ready="onTicketReady">
|
2018-01-05 12:57:35 +00:00
|
|
|
<db-model id="ticket-data" property="model" batch="batch">
|
2019-06-28 07:24:18 +00:00
|
|
|
CALL myTicket_get(#ticket)
|
2015-03-06 23:33:54 +00:00
|
|
|
</db-model>
|
|
|
|
</db-form>
|
|
|
|
</vn-group>
|
2015-09-11 09:37:16 +00:00
|
|
|
<div id="title">
|
|
|
|
<h1><t>OrderDetail</t></h1>
|
|
|
|
</div>
|
|
|
|
<div id="actions" class="action-bar">
|
2016-09-19 06:40:18 +00:00
|
|
|
<htk-bar-button
|
|
|
|
icon="print"
|
2015-11-19 13:57:23 +00:00
|
|
|
tip="_Print delivery note"
|
2016-09-19 06:40:18 +00:00
|
|
|
on-click="onPrintClick"/>
|
2015-09-11 09:37:16 +00:00
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
<div id="form" class="ticket">
|
|
|
|
<div class="box">
|
2018-01-16 16:26:37 +00:00
|
|
|
<htk-loader class="head" form="ticket">
|
2015-11-26 12:30:04 +00:00
|
|
|
<div>
|
|
|
|
<p class="important ticket-id">
|
2022-05-09 13:52:29 +00:00
|
|
|
#<htk-text column="id" form="ticket"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
2015-12-10 13:48:43 +00:00
|
|
|
<p>
|
2018-06-21 06:43:48 +00:00
|
|
|
<t>Preparation</t> <htk-text form="ticket" column="shipped" format="%D"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<t>Delivery</t> <htk-text form="ticket" column="landed" format="%D"/>
|
2015-12-10 13:48:43 +00:00
|
|
|
</p>
|
2015-11-26 12:30:04 +00:00
|
|
|
<p>
|
2018-02-06 08:57:05 +00:00
|
|
|
<span id="method"></span> <htk-text form="ticket" column="agency"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
2018-02-06 08:57:05 +00:00
|
|
|
</div>
|
|
|
|
<div class="address">
|
2015-11-26 12:30:04 +00:00
|
|
|
<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="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"/>
|
|
|
|
(<htk-text form="ticket" column="province"/>)
|
|
|
|
</p>
|
|
|
|
</div>
|
2018-02-06 08:57:05 +00:00
|
|
|
<div class="total">
|
2015-11-26 12:30:04 +00:00
|
|
|
<p class="important total">
|
2016-01-08 21:00:02 +00:00
|
|
|
<t>Total</t>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-text format="%.2d€" form="ticket" column="taxBase"/>
|
|
|
|
</p>
|
|
|
|
<p class="important total">
|
|
|
|
<t>Total + tax</t>
|
|
|
|
<htk-text format="%.2d€" form="ticket" column="total"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-01-16 16:26:37 +00:00
|
|
|
</htk-loader>
|
2015-11-30 16:46:24 +00:00
|
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
2018-01-05 12:57:35 +00:00
|
|
|
<db-model
|
|
|
|
property="model"
|
|
|
|
id="movements"
|
|
|
|
batch="batch">
|
2019-06-28 07:24:18 +00:00
|
|
|
CALL myTicket_getRows(#ticket)
|
2015-11-26 12:30:04 +00:00
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="line">
|
2018-01-05 12:57:35 +00:00
|
|
|
<htk-image
|
|
|
|
form="iter"
|
|
|
|
column="image"
|
2019-05-27 13:38:06 +00:00
|
|
|
stamp-column="updated"
|
2018-01-05 12:57:35 +00:00
|
|
|
class="photo"
|
|
|
|
directory="catalog"
|
|
|
|
subdir="200x200"
|
2018-07-20 14:30:29 +00:00
|
|
|
full-dir="1600x900"/>
|
2018-03-27 15:26:17 +00:00
|
|
|
<div class="info">
|
|
|
|
<h2>
|
|
|
|
<htk-text form="iter" column="concept"/>
|
|
|
|
</h2>
|
|
|
|
<p class="tags">
|
2019-06-28 07:24:18 +00:00
|
|
|
<htk-text form="iter" column="value5"/>
|
|
|
|
<htk-text form="iter" column="value6"/>
|
2018-07-20 14:30:29 +00:00
|
|
|
<htk-text form="iter" column="value7"/>
|
2018-03-27 15:26:17 +00:00
|
|
|
</p>
|
|
|
|
<p class="amount">
|
|
|
|
<htk-text form="iter" column="quantity"/> x
|
|
|
|
<htk-text form="iter" column="price" format="%.2d€"/>
|
|
|
|
</p>
|
|
|
|
<p class="subtotal">
|
2018-08-30 13:26:05 +00:00
|
|
|
<span class="discount" id="discount">
|
|
|
|
<htk-text id="discount-subtotal" format="%.2d€"/> -
|
|
|
|
<htk-text form="iter" column="discount" format="%.0d%"/> =
|
|
|
|
</span>
|
2018-03-27 15:26:17 +00:00
|
|
|
<htk-text id="subtotal" format="%.2d€"/>
|
|
|
|
</p>
|
|
|
|
</div>
|
2015-11-26 12:30:04 +00:00
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2020-10-23 10:10:41 +00:00
|
|
|
<htk-repeater form-id="iter" id="services" class="packages" renderer="servicesFunc">
|
|
|
|
<db-model
|
|
|
|
property="model"
|
|
|
|
on-status-changed="onServicesChanged"
|
|
|
|
batch="batch">
|
|
|
|
CALL myTicket_getServices(#ticket)
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="line">
|
|
|
|
<div class="info">
|
|
|
|
<h2>
|
|
|
|
<htk-text form="iter" column="description"/>
|
|
|
|
</h2>
|
|
|
|
<p class="amount">
|
|
|
|
<htk-text form="iter" column="quantity"/> x
|
|
|
|
<htk-text form="iter" column="price" format="%.2d€"/>
|
|
|
|
</p>
|
|
|
|
<p class="subtotal">
|
|
|
|
<htk-text id="subtotal" format="%.2d€"/>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2018-01-05 12:57:35 +00:00
|
|
|
<htk-repeater form-id="iter" id="packages" class="packages">
|
|
|
|
<db-model
|
|
|
|
property="model"
|
|
|
|
on-status-changed="onPackagesChanged"
|
|
|
|
batch="batch">
|
2019-06-28 07:24:18 +00:00
|
|
|
CALL myTicket_getPackages(#ticket)
|
2018-01-05 12:57:35 +00:00
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="line">
|
|
|
|
<htk-image
|
|
|
|
form="iter"
|
|
|
|
column="image"
|
|
|
|
class="photo"
|
|
|
|
directory="catalog"
|
|
|
|
subdir="200x200"
|
2018-07-20 14:30:29 +00:00
|
|
|
full-dir="1600x900"/>
|
2019-06-28 07:24:18 +00:00
|
|
|
<div class="info">
|
|
|
|
<h2>
|
|
|
|
<htk-text form="iter" column="name"/>
|
|
|
|
</h2>
|
|
|
|
<p>
|
2022-05-09 13:52:29 +00:00
|
|
|
#<htk-text form="iter" column="id"/>
|
2019-06-28 07:24:18 +00:00
|
|
|
</p>
|
|
|
|
<p class="amount">
|
|
|
|
<htk-text form="iter" column="quantity"/>
|
|
|
|
</p>
|
|
|
|
</div>
|
2018-01-05 12:57:35 +00:00
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|