2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
|
|
|
<div id="form" class="basket">
|
2015-02-01 03:21:54 +00:00
|
|
|
<div class="box">
|
2015-02-08 15:38:38 +00:00
|
|
|
<div class="header">
|
2015-03-06 23:33:54 +00:00
|
|
|
<h1><t>ShoppingBasket</t></h1>
|
2015-02-08 15:38:38 +00:00
|
|
|
<div class="action-bar">
|
2015-07-10 12:30:08 +00:00
|
|
|
<button on-click="onConfigureClick">
|
2015-06-30 12:06:19 +00:00
|
|
|
<img src="image/dark/preferences.svg" alt=""/>
|
|
|
|
<t>ConfigureOrder</t>
|
|
|
|
</button>
|
2015-03-27 19:10:49 +00:00
|
|
|
<button on-click="onCheckoutClick">
|
2015-02-08 15:38:38 +00:00
|
|
|
<img src="image/dark/ok.svg" alt=""/>
|
2015-03-06 23:33:54 +00:00
|
|
|
<t>Checkout</t>
|
2015-02-08 15:38:38 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2015-07-10 12:30:08 +00:00
|
|
|
<div class="clear"/>
|
2015-02-01 03:21:54 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2015-07-07 15:27:47 +00:00
|
|
|
<htk-grid show-header="false">
|
2015-07-28 19:14:26 +00:00
|
|
|
<db-model result-index="1" id="items" updatable="true">
|
2015-07-21 14:16:07 +00:00
|
|
|
CALL bionic_from_basket (@calc);
|
2015-07-07 15:27:47 +00:00
|
|
|
SELECT m.id, m.amount, t.available, a.Article, a.Categoria,
|
2015-07-21 14:16:07 +00:00
|
|
|
a.Medida, a.Tallos, a.Color, o.Abreviatura, m.price price, a.Foto
|
|
|
|
FROM basket_item m
|
2015-01-23 13:09:30 +00:00
|
|
|
INNER JOIN vn2008.Articles a ON a.Id_Article = m.item_id
|
|
|
|
LEFT JOIN vn2008.Origen o ON a.id_origen = o.id
|
2015-07-21 14:16:07 +00:00
|
|
|
LEFT JOIN cache.bionic t ON m.warehouse_id = t.warehouse_id AND m.item_id = t.item_id AND t.calc_id = @calc;
|
2015-01-23 13:09:30 +00:00
|
|
|
</db-model>
|
2015-07-17 14:34:42 +00:00
|
|
|
<htk-column-image column="Foto" directory="catalog" subdir="50x50" show-full="true"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
<htk-column-text title="_Item" column="Article"/>
|
2015-07-07 15:27:47 +00:00
|
|
|
<htk-column-text renderer="featuresRender"/>
|
|
|
|
<htk-column-text title="_Amount" column="amount" renderer="stemsRender"/>
|
|
|
|
<htk-column-spin unit="€" digits="2" renderer="subtotalRender"/>
|
2015-01-23 13:09:30 +00:00
|
|
|
</htk-grid>
|
2015-07-07 15:27:47 +00:00
|
|
|
<div class="form">
|
|
|
|
<p>
|
|
|
|
<t>OrderTotal</t>
|
|
|
|
<htk-text format="%.2d€">
|
2015-07-28 19:14:26 +00:00
|
|
|
<db-calc-sum func="subtotal" model="items"/>
|
2015-07-07 15:27:47 +00:00
|
|
|
</htk-text>
|
|
|
|
</p>
|
|
|
|
</div>
|
2015-01-23 13:09:30 +00:00
|
|
|
</div>
|
2015-02-01 03:21:54 +00:00
|
|
|
</div>
|
2015-01-23 13:09:30 +00:00
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
</vn>
|