forked from verdnatura/hedera-web
83 lines
1.7 KiB
XML
Executable File
83 lines
1.7 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<db-form id="debt">
|
|
<db-model property="model">
|
|
SELECT clientGetDebt() debt
|
|
</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
|
|
lot="debt"
|
|
name="debt"
|
|
format="%.2d€"
|
|
conditional-func="balanceConditionalFunc"/>
|
|
</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 lot="hash" name="from"/>
|
|
</div>
|
|
</div>
|
|
<div class="card list">
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
|
<db-model property="model" lot="hash">
|
|
CALL clientTicketList (#from, NULL)
|
|
</db-model>
|
|
<custom>
|
|
<a id="link" class="list-row" title="_SeeOrder">
|
|
<p class="important total">
|
|
<htk-text lot="iter" name="total" format="%.2d€"/>
|
|
</p>
|
|
<p class="important">
|
|
<htk-text lot="iter" name="date" format="%D"/>
|
|
</p>
|
|
<p>
|
|
<htk-text lot="iter" name="consignee"/>
|
|
</p>
|
|
<p>
|
|
<htk-text lot="iter" name="type"/>
|
|
</p>
|
|
<p>
|
|
<htk-text lot="iter" name="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>
|