0
1
Fork 0
hedera-web-mindshore/web/forms/ecomerce/ticket/ui.xml

124 lines
3.5 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
<vn-group>
2015-11-19 13:57:23 +00:00
<vn-param id="ticket-id"/>
<vn-hash-param key="ticket" param="ticket-id"/>
2015-03-06 23:33:54 +00:00
<db-form id="ticket">
<db-model property="model" id="ticket-data">
<custom>
SELECT t.id, date, a.Agencia, note, p.name province,
zip_code, city, c.name, consignee, invoice
FROM ticket_view t
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
</custom>
2015-03-06 23:33:54 +00:00
<sql-batch property="batch">
<custom>
<item name="ticket" param="ticket-id"/>
</custom>
2015-03-06 23:33:54 +00:00
</sql-batch>
</db-model>
</db-form>
</vn-group>
<div id="title">
<h1><t>OrderDetail</t></h1>
</div>
<div id="actions" class="action-bar">
2015-11-19 13:57:23 +00:00
<htk-button
image="image/dark/print.svg"
tip="_Print delivery note"
on-click="onPrintClick"
showText="true"/>
</div>
2015-03-06 23:33:54 +00:00
<div id="form" class="ticket">
<div class="box">
2015-03-07 00:56:24 +00:00
<div id="report">
2015-03-06 23:33:54 +00:00
<table class="form">
<tbody>
<tr>
<td class="label">
<label><t>TicketNumber:</t></label>
</td>
<td>
2015-04-01 08:24:15 +00:00
<htk-text column="id" form="ticket"/>
2015-03-06 23:33:54 +00:00
</td>
</tr>
<tr>
<td class="label">
<label><t>DateExit:</t></label>
</td>
<td>
<htk-date-chooser column="date" form="ticket" editable="false"/>
</td>
</tr>
<tr>
<td class="label">
<label><t>SendMethod:</t></label>
</td>
<td>
2015-04-01 08:24:15 +00:00
<htk-text column="Agencia" form="ticket"/>
2015-03-06 23:33:54 +00:00
</td>
</tr>
<tr>
<td class="label">
<label><t>Notes:</t></label>
</td>
<td>
2015-04-01 08:24:15 +00:00
<htk-text column="note" form="ticket"/>
2015-03-06 23:33:54 +00:00
</td>
</tr>
<tr>
<td class="label">
<label for="total"><t>Subtotal:</t></label>
</td>
<td>
2015-04-01 08:24:15 +00:00
<htk-text format="%.2d€">
2015-11-19 13:57:23 +00:00
<db-calc-sum func="subtotal" model="movements"/>
2015-04-01 08:24:15 +00:00
</htk-text>
2015-03-06 23:33:54 +00:00
</td>
</tr>
</tbody>
</table>
<htk-grid model="ticket-data">
2015-03-15 12:44:57 +00:00
<htk-column-spin title="_PC" column="zip_code"/>
<htk-column-text title="_City" column="city"/>
<htk-column-text title="_Province" column="province"/>
<htk-column-text title="_Address" column="name"/>
<htk-column-text title="_Consignee" column="consignee"/>
2015-03-06 23:33:54 +00:00
</htk-grid>
<htk-grid>
<db-model property="model" id="movements">
<custom>
SELECT m.item_id, amount, concept, Categoria, Medida, Tallos, Color,
Abreviatura, IF(fixed != FALSE, price, NULL) price, fixed, discount
FROM ticket_row_view m
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
</custom>
2015-03-06 23:33:54 +00:00
<sql-batch property="batch">
<custom>
<item name="ticket" param="ticket-id"/>
</custom>
2015-03-06 23:33:54 +00:00
</sql-batch>
</db-model>
2015-03-15 12:44:57 +00:00
<htk-column-spin title="_ItemNumber" column="item_id"/>
<htk-column-spin title="_Amount" column="amount"/>
<htk-column-text title="_Item" column="concept"/>
<htk-column-text title="_Category" column="Categoria"/>
<htk-column-text title="_S1" column="Medida"/>
<htk-column-text title="_Stems" column="Tallos"/>
<htk-column-text title="_Color" column="Color"/>
<htk-column-text title="_Origin" column="Abreviatura"/>
<htk-column-spin title="_Price" column="price" unit="€" digits="2"/>
<htk-column-spin title="_Desc" column="discount" unit="%"/>
2015-11-19 13:57:23 +00:00
<htk-column-spin title="_Subtotal" unit="€" digits="2" renderer="subtotalRenderer"/>
2015-03-06 23:33:54 +00:00
</htk-grid>
</div>
</div>
</div>
</vn>