0
1
Fork 0
hedera-web-mindshore/web/forms/ecomerce/confirm/ui.xml

92 lines
2.5 KiB
XML
Raw Normal View History

<vn>
<vn-group>
2015-07-17 14:34:42 +00:00
<db-form id="order-form" on-ready="onOrderReady">
<db-model>
SELECT o.id, o.date_send, o.note, o.company_id,
2015-07-21 14:16:07 +00:00
ag.description agency, v.code method, c.credit,
ad.consignee, ad.zip_code, ad.city, ad.name address
FROM basket o
JOIN vn2008.Agencias ag ON ag.Id_Agencia = o.agency_id
LEFT JOIN address_view ad ON ad.id = o.address_id
JOIN vn2008.Vistas v ON v.vista_id = o.delivery_method_id
JOIN customer_view c
2015-07-07 15:27:47 +00:00
</db-model>
</db-form>
2015-07-17 14:34:42 +00:00
<db-form id="total-form" on-ready="onImportReady">
2015-07-07 15:27:47 +00:00
<db-model result-index="1">
2015-07-21 14:16:07 +00:00
CALL basket_get_vat ();
2015-07-17 14:34:42 +00:00
SELECT
IFNULL(SUM(tax_base), 0) tax_base,
IFNULL(SUM(vat + surcharge), 0) vat
2015-07-07 15:27:47 +00:00
FROM t_order_vat;
DROP TEMPORARY TABLE t_order_vat;
</db-model>
</db-form>
2015-07-17 14:34:42 +00:00
<db-query id="confirm-query" on-ready="onConfirm">
2015-07-21 14:16:07 +00:00
CALL basket_confirm ();
SELECT customer_get_debt();
2015-07-17 14:34:42 +00:00
</db-query>
</vn-group>
<div id="title">
<h1><t>OrderSummary</t></h1>
</div>
2015-07-07 15:27:47 +00:00
<div id="form" class="confirm">
<div class="box">
2015-07-07 15:27:47 +00:00
<div class="form">
<div class="section">
<p>
2015-07-30 17:50:43 +00:00
<t>Arrival</t>
2015-07-07 15:27:47 +00:00
<htk-text format="_%A, %e of %B" form="order-form" column="date_send"/>
</p>
<p class="small">
2015-07-17 14:34:42 +00:00
<span id="method"><t>Agency</t></span>
2015-07-07 15:27:47 +00:00
<htk-text form="order-form" column="agency"/>
</p>
</div>
2015-07-17 14:34:42 +00:00
<div id="address" class="section">
2015-07-07 15:27:47 +00:00
<p>
<htk-text form="order-form" column="consignee"/>
</p>
<p class="small">
<htk-text form="order-form" column="address"/>
</p>
<p class="small">
<htk-text form="order-form" column="zip_code"/>,
<htk-text form="order-form" column="city"/>
</p>
</div>
<div class="section">
<p>
<t>Total</t>
<htk-text id="total" format="%.2d€"/>
2015-07-07 15:27:47 +00:00
</p>
<p class="small">
(<t>TaxBase</t> <htk-text form="total-form" column="tax_base" format="%.2d€"/> +
<t>VAT</t> <htk-text form="total-form" column="vat" format="%.2d€"/>)
</p>
</div>
<div class="button-bar">
<button on-click="onModifyClick" id="modify" class="thin modify-order">
<t>Modify</t>
</button>
2015-07-07 15:27:47 +00:00
<button on-click="onConfirmClick" id="confirm" class="thin confirm-order">
<t>Confirm</t>
</button>
2015-07-07 15:27:47 +00:00
<div class="clear"/>
</div>
</div>
</div>
2015-07-07 15:27:47 +00:00
</div>
<div id="success-dialog" class="success-dialog">
<div>
<img src="image/ok.svg" alt="_Ok"/>
<p><t>OrderPlacedSuccessfully</t></p>
<div class="clear"/>
</div>
2015-07-07 15:27:47 +00:00
<button on-click="onAcceptClick" class="thin confirm-order">
<t>Accept</t>
</button>
<div class="clear"/>
</div>
</vn>