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"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
<db-form id="ticket">
|
2016-10-27 11:22:04 +00:00
|
|
|
<db-model id="ticket-data" property="model">
|
2015-11-17 10:34:33 +00:00
|
|
|
<custom>
|
|
|
|
SELECT t.id, date, a.Agencia, note, p.name province,
|
2017-03-09 12:30:39 +00:00
|
|
|
zip_code, city, c.name, consignee, invoice, delivery
|
2015-11-17 10:34:33 +00:00
|
|
|
FROM ticket_view t
|
2017-03-09 12:30:39 +00:00
|
|
|
JOIN address_view c ON t.address_id = c.id
|
|
|
|
JOIN vn2008.Agencias a ON t.agency_id = a.Id_Agencia
|
|
|
|
JOIN vn2008.province p ON c.province_id = p.province_id
|
|
|
|
WHERE t.id = #ticket
|
2015-11-17 10:34:33 +00:00
|
|
|
</custom>
|
2015-03-06 23:33:54 +00:00
|
|
|
<sql-batch property="batch">
|
2015-11-17 10:34:33 +00:00
|
|
|
<custom>
|
|
|
|
<item name="ticket" param="ticket-id"/>
|
|
|
|
</custom>
|
2015-03-06 23:33:54 +00:00
|
|
|
</sql-batch>
|
|
|
|
</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">
|
2016-12-23 08:57:49 +00:00
|
|
|
<div class="card form">
|
2015-11-26 12:30:04 +00:00
|
|
|
<div class="head">
|
|
|
|
<div>
|
|
|
|
<p class="important ticket-id">
|
|
|
|
<htk-text column="id" form="ticket"/>
|
|
|
|
</p>
|
2015-12-10 13:48:43 +00:00
|
|
|
<p>
|
2016-10-20 08:37:08 +00:00
|
|
|
<htk-text form="ticket" column="delivery" format="%D"/>
|
2015-12-10 13:48:43 +00:00
|
|
|
</p>
|
2015-11-26 12:30:04 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
<t>Delivery</t> <htk-text form="ticket" column="Agencia"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<htk-text form="ticket" column="consignee"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<htk-text form="ticket" column="name"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<htk-text form="ticket" column="zip_code"/>
|
|
|
|
<htk-text form="ticket" column="city"/>
|
|
|
|
(<htk-text form="ticket" column="province"/>)
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<p class="important total">
|
2016-01-08 21:00:02 +00:00
|
|
|
<t>Total</t>
|
2015-11-26 12:30:04 +00:00
|
|
|
<htk-text format="%.2d€">
|
|
|
|
<db-calc-sum property="param" func="subtotal" model="movements"/>
|
|
|
|
</htk-text>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-11-30 16:46:24 +00:00
|
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
2015-11-26 12:30:04 +00:00
|
|
|
<db-model property="model" id="movements">
|
|
|
|
<custom>
|
2017-03-09 12:30:39 +00:00
|
|
|
SELECT m.item_id, m.amount, m.concept,
|
|
|
|
IF(m.fixed != FALSE, m.price, NULL) price, m.fixed, m.discount,
|
|
|
|
o.Abreviatura, a.Categoria, a.Medida, a.Tallos, a.Color, a.Foto
|
2015-11-26 12:30:04 +00:00
|
|
|
FROM ticket_row_view m
|
2017-03-09 12:30:39 +00:00
|
|
|
INNER JOIN vn2008.Articles a
|
|
|
|
ON m.item_id = a.Id_Article AND ticket_id = #ticket
|
|
|
|
LEFT JOIN vn2008.Origen o
|
|
|
|
ON a.id_origen = o.id
|
|
|
|
ORDER BY concept
|
2015-11-26 12:30:04 +00:00
|
|
|
</custom>
|
|
|
|
<sql-batch property="batch">
|
2015-11-17 10:34:33 +00:00
|
|
|
<custom>
|
2015-11-26 12:30:04 +00:00
|
|
|
<item name="ticket" param="ticket-id"/>
|
2015-11-17 10:34:33 +00:00
|
|
|
</custom>
|
2015-11-26 12:30:04 +00:00
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="line">
|
2017-03-09 12:30:39 +00:00
|
|
|
<htk-image
|
|
|
|
form="iter"
|
|
|
|
column="Foto"
|
|
|
|
class="photo"
|
|
|
|
directory="catalog"
|
|
|
|
subdir="200x200"
|
|
|
|
full-dir="900x900"/>
|
2015-11-26 12:30:04 +00:00
|
|
|
<p class="concept">
|
|
|
|
<htk-text form="iter" column="concept"/>
|
|
|
|
<htk-text form="iter" column="Medida"/>
|
|
|
|
<htk-text form="iter" column="Categoria"/>
|
|
|
|
</p>
|
|
|
|
<p class="amount">
|
|
|
|
<htk-text form="iter" column="amount"/> x
|
|
|
|
<htk-text form="iter" column="price" format="%.2d€"/>
|
2017-03-09 12:30:39 +00:00
|
|
|
<span class="subtotal">
|
|
|
|
<htk-text id="subtotal" format="%.2d€"/>
|
|
|
|
</span>
|
2015-11-26 12:30:04 +00:00
|
|
|
</p>
|
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|