104 lines
2.4 KiB
XML
Executable File
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 name"id" lot="ticket"/>
|
|
</p>
|
|
<p>
|
|
<htk-text lot="ticket" name"delivery" format="%D"/>
|
|
</p>
|
|
</div>
|
|
<div>
|
|
<p>
|
|
<t>Delivery</t> <htk-text lot="ticket" name"Agencia"/>
|
|
</p>
|
|
<p>
|
|
<htk-text lot="ticket" name"consignee"/>
|
|
</p>
|
|
<p>
|
|
<htk-text lot="ticket" name"name"/>
|
|
</p>
|
|
<p>
|
|
<htk-text lot="ticket" name"zip_code"/>
|
|
<htk-text lot="ticket" name"city"/>
|
|
(<htk-text lot="ticket" name"province"/>)
|
|
</p>
|
|
</div>
|
|
<div>
|
|
<p class="important total">
|
|
<t>Total</t>
|
|
<htk-text lot="ticket" name"total" format="%.2d€"/>
|
|
</p>
|
|
<p class="important total">
|
|
<t>Total + VAT</t>
|
|
<htk-text lot="ticket" name"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
|
|
lot="iter"
|
|
name"Foto"
|
|
class="photo"
|
|
directory="catalog"
|
|
subdir="200x200"
|
|
full-dir="900x900"/>
|
|
<p class="concept">
|
|
<htk-text lot="iter" name"concept"/>
|
|
<htk-text lot="iter" name"Medida"/>
|
|
<htk-text lot="iter" name"Categoria"/>
|
|
</p>
|
|
<p class="amount">
|
|
<htk-text lot="iter" name"amount"/> x
|
|
<htk-text lot="iter" name"price" format="%.2d€"/>
|
|
<span class="subtotal">
|
|
<htk-text id="subtotal" format="%.2d€"/>
|
|
</span>
|
|
</p>
|
|
<div class="clear"/>
|
|
</div>
|
|
</custom>
|
|
</htk-repeater>
|
|
</div>
|
|
</div>
|
|
</vn>
|