forked from verdnatura/hedera-web
90 lines
1.9 KiB
XML
Executable File
90 lines
1.9 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<vn-param id="from"/>
|
|
<vn-hash-param type="Date" key="from" param="from"/>
|
|
<db-form id="debt">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT clientGetDebt() debt
|
|
</custom>
|
|
</db-model>
|
|
</db-form>
|
|
</vn-group>
|
|
<h1 id="title">
|
|
<t>LastOrders</t>
|
|
</h1>
|
|
<div id="actions">
|
|
<htk-bar-button
|
|
icon="basket"
|
|
tip="_ShoppingBasket"
|
|
show-text="false"
|
|
on-click="onBasketClick"/>
|
|
<htk-bar-button
|
|
id="pay-button"
|
|
icon="pay"
|
|
tip="_MakePayment"
|
|
show-text="false"
|
|
on-click="onPayButtonClick"/>
|
|
<div class="balance">
|
|
<span class="label">
|
|
<t>Balance:</t>
|
|
</span>
|
|
<span class="amount" id="balance">
|
|
<htk-text form="debt" column="debt" format="%.2d€"/>
|
|
</span>
|
|
<img
|
|
src="image/icon/dark/info.svg"
|
|
title="_PaymentInfo"
|
|
class="info"
|
|
alt="Info"/>
|
|
</div>
|
|
</div>
|
|
<div id="main" class="orders">
|
|
<div class="card form">
|
|
<div>
|
|
<label><t>Show orders from</t></label>
|
|
<htk-date-chooser param="from"/>
|
|
</div>
|
|
</div>
|
|
<div class="card list">
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
|
<db-model property="model" id="tickets">
|
|
<custom>
|
|
CALL clientTicketList (#from, NULL)
|
|
</custom>
|
|
<sql-batch property="batch">
|
|
<custom>
|
|
<item name="from" param="from"/>
|
|
</custom>
|
|
</sql-batch>
|
|
</db-model>
|
|
<custom>
|
|
<a id="link" class="list-row" title="_SeeOrder">
|
|
<p class="important total">
|
|
<htk-text form="iter" column="total" format="%.2d€"/>
|
|
</p>
|
|
<p class="important">
|
|
<htk-text form="iter" column="date" format="%D"/>
|
|
</p>
|
|
<p>
|
|
<htk-text form="iter" column="consignee"/>
|
|
</p>
|
|
<p>
|
|
<htk-text form="iter" column="type"/>
|
|
</p>
|
|
<p>
|
|
<htk-text form="iter" column="ticket_id"/>
|
|
</p>
|
|
</a>
|
|
</custom>
|
|
</htk-repeater>
|
|
</div>
|
|
</div>
|
|
<htk-dialog
|
|
id="error-dialog"
|
|
icon="error"
|
|
message="_An error has been in the payment"
|
|
buttons="ACCEPT_RETRY"
|
|
on-response="onDialogResponse"/>
|
|
</vn>
|