hedera-web/forms/ecomerce/ticket/ui.xml

104 lines
2.4 KiB
XML
Executable File

<vn>
<vn-group>
<vn-param id="ticket-id" on-changed="onTicketChange"/>
<vn-hash-param key="ticket" param="ticket-id"/>
<db-form id="ticket">
<db-model property="model">
<custom>
CALL clientTicketGet(#ticket)
</custom>
<sql-batch property="batch">
<custom>
<item name="ticket" param="ticket-id"/>
</custom>
</sql-batch>
</db-model>
</db-form>
</vn-group>
<h1 id="title">
<t>OrderDetail</t>
</h1>
<div id="actions" class="action-bar">
<htk-bar-button
icon="receipt"
tip="_Delivery note"
on-click="onPrintClick"/>
</div>
<div id="main" class="ticket">
<div class="card form">
<div class="head">
<div>
<p class="important ticket-id">
<htk-text column="id" form="ticket"/>
</p>
<p>
<htk-text form="ticket" column="delivery" format="%D"/>
</p>
</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">
<t>Total</t>
<htk-text form="ticket" column="total" format="%.2d€"/>
</p>
<p class="important total">
<t>Total + VAT</t>
<htk-text form="ticket" column="totalPlusVat" format="%.2d€"/>
</p>
</div>
</div>
<htk-repeater form-id="iter" renderer="repeaterFunc">
<db-model property="model" id="movements">
<custom>
CALL clientTicketRowGet(#ticket)
</custom>
<sql-batch property="batch">
<custom>
<item name="ticket" param="ticket-id"/>
</custom>
</sql-batch>
</db-model>
<custom>
<div class="line">
<htk-image
form="iter"
column="Foto"
class="photo"
directory="catalog"
subdir="200x200"
full-dir="900x900"/>
<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€"/>
<span class="subtotal">
<htk-text id="subtotal" format="%.2d€"/>
</span>
</p>
<div class="clear"/>
</div>
</custom>
</htk-repeater>
</div>
</div>
</vn>