forked from verdnatura/hedera-web
68 lines
1.5 KiB
XML
Executable File
68 lines
1.5 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<db-model id="debt-model" result-index="1">
|
|
<custom>
|
|
CALL customer_get_debt_by_company ();
|
|
SELECT * FROM t_customer_debt;
|
|
DROP TEMPORARY TABLE t_customer_debt;
|
|
</custom>
|
|
</db-model>
|
|
</vn-group>
|
|
<div id="title">
|
|
<h1><t>LastOrders</t></h1>
|
|
</div>
|
|
<div id="actions">
|
|
<div class="balance">
|
|
<span class="label">
|
|
<t>Balance:</t>
|
|
</span>
|
|
<span class="amount" id="balance">
|
|
<htk-text
|
|
format="%.2d€"
|
|
conditional-func="balanceConditionalFunc">
|
|
<db-calc-sum
|
|
property="param"
|
|
model="debt-model"
|
|
column-name="amount"
|
|
id="debt"/>
|
|
</htk-text>
|
|
</span>
|
|
<img
|
|
src="image/dark/info.svg"
|
|
title="_PaymentInfo"
|
|
class="info"
|
|
alt="Info"/>
|
|
</div>
|
|
<htk-button
|
|
id="pay-button"
|
|
image="image/dark/pay.svg"
|
|
tip="_MakePayment"
|
|
on-click="onPayButtonClick"/>
|
|
<htk-button
|
|
image="image/dark/basket.svg"
|
|
tip="_ShoppingBasket"
|
|
on-click="onBasketClick"/>
|
|
</div>
|
|
<div id="form" class="orders">
|
|
<div class="box confirmed">
|
|
<div>
|
|
<htk-grid show-header="false">
|
|
<db-model property="model" id="tickets">
|
|
<custom>
|
|
CALL ticket_list ();
|
|
</custom>
|
|
</db-model>
|
|
<htk-column-date column="date" format="%A, %e of %B"/>
|
|
<htk-column-text title="_SendMethod" column="type"/>
|
|
<htk-column-spin column="total" unit="€" digits="2"/>
|
|
<htk-column-button
|
|
column="ticket_id"
|
|
image="image/show.svg"
|
|
tip="_SeeOrder"
|
|
on-clicked="onShowClick"/>
|
|
</htk-grid>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|