0
1
Fork 0
This commit is contained in:
Juan Ferrer 2019-06-05 09:05:54 +02:00
parent 46f0420431
commit 6e59fd8ea7
4 changed files with 30 additions and 34 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.51) stable; urgency=low hedera-web (1.406.52) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -52,19 +52,19 @@
id="items-model" id="items-model"
result-index="2" result-index="2"
on-status-changed="onItemsChange"> on-status-changed="onItemsChange">
CREATE TEMPORARY TABLE tmp.bionic_calc CREATE TEMPORARY TABLE tmp.item
(INDEX (item_id)) (INDEX (itemFk))
ENGINE = MEMORY ENGINE = MEMORY
SELECT i.id item_id SELECT i.id itemFk
FROM vn.item i FROM vn.item i
JOIN vn.itemType t ON t.id = i.typeFk JOIN vn.itemType t ON t.id = i.typeFk
WHERE #filter; WHERE #filter;
CALL bionic_calc; CALL myBasket_calcCatalogFull;
SELECT i.id, i.description, i.longName item, SELECT i.id, i.description, i.longName item,
i.subName, i.tag5, i.value5, i.tag6, i.value6, i.tag7, i.value7, i.subName, i.tag5, i.value5, i.tag6, i.value6, i.tag7, i.value7,
b.available, b.price, i.image, im.updated b.available, b.price, i.image, im.updated
FROM tmp.bionic_item b FROM tmp.ticketCalculateItem b
JOIN vn.item i ON i.id = b.item_id JOIN vn.item i ON i.id = b.itemFk
LEFT JOIN image im LEFT JOIN image im
ON im.collectionFk = 'catalog' ON im.collectionFk = 'catalog'
AND im.name = i.image AND im.name = i.image
@ -217,7 +217,7 @@
conn="conn" conn="conn"
result-index="1" result-index="1"
on-status-changed="refreshTitle"> on-status-changed="refreshTitle">
CALL itemGetAvailable; CALL myBasket_getAvailable;
SELECT DISTINCT t.id, l.name SELECT DISTINCT t.id, l.name
FROM vn.item i FROM vn.item i
JOIN vn.itemType t ON t.id = i.typeFk JOIN vn.itemType t ON t.id = i.typeFk
@ -237,7 +237,7 @@
placeholder="_Color" placeholder="_Color"
param="color"> param="color">
<db-model property="model" auto-load="false" result-index="1"> <db-model property="model" auto-load="false" result-index="1">
CALL itemGetAvailable; CALL myBasket_getAvailable;
SELECT DISTINCT l.id, l.name SELECT DISTINCT l.id, l.name
FROM vn.item i FROM vn.item i
JOIN vn.itemType t ON t.id = i.typeFk JOIN vn.itemType t ON t.id = i.typeFk
@ -259,7 +259,7 @@
placeholder="_Producer" placeholder="_Producer"
param="producer"> param="producer">
<db-model property="model" auto-load="false" result-index="1"> <db-model property="model" auto-load="false" result-index="1">
CALL itemGetAvailable; CALL myBasket_getAvailable;
SELECT DISTINCT p.id, p.name SELECT DISTINCT p.id, p.name
FROM vn.item i FROM vn.item i
JOIN vn.itemType t ON t.id = i.typeFk JOIN vn.itemType t ON t.id = i.typeFk
@ -281,7 +281,7 @@
placeholder="_Origin" placeholder="_Origin"
param="origin"> param="origin">
<db-model property="model" auto-load="false" result-index="1"> <db-model property="model" auto-load="false" result-index="1">
CALL itemGetAvailable; CALL myBasket_getAvailable;
SELECT DISTINCT o.id, l.name, o.code SELECT DISTINCT o.id, l.name, o.code
FROM vn.item i FROM vn.item i
JOIN vn.itemType t ON t.id = i.typeFk JOIN vn.itemType t ON t.id = i.typeFk
@ -304,7 +304,7 @@
placeholder="_Category" placeholder="_Category"
param="category"> param="category">
<db-model property="model" auto-load="false" result-index="1"> <db-model property="model" auto-load="false" result-index="1">
CALL itemGetAvailable; CALL myBasket_getAvailable;
SELECT DISTINCT i.category, i.category SELECT DISTINCT i.category, i.category
FROM vn.item i FROM vn.item i
JOIN vn.itemType t ON t.id = i.typeFk JOIN vn.itemType t ON t.id = i.typeFk
@ -440,11 +440,11 @@
result-index="1" result-index="1"
on-status-changed-after="onCardLoad" on-status-changed-after="onCardLoad"
batch="card-batch"> batch="card-batch">
CALL bionic_from_item (#item); CALL myBasket_calcCatalogFromItem(#item);
SELECT w.id warehouseFk, w.name warehouse, p.`grouping`, p.price, p.rate, l.available SELECT l.warehouseFk, w.name warehouse, p.`grouping`, p.price, p.rate, l.available
FROM tmp.bionic_lot l FROM tmp.ticketLot l
JOIN tmp.bionic_price p ON p.warehouse_id = l.warehouse_id JOIN tmp.ticketComponentPrice p ON p.warehouseFk = l.warehouseFk
JOIN vn.warehouse w ON w.id = p.warehouse_id JOIN vn.warehouse w ON w.id = p.warehouseFk
ORDER BY warehouseFk, `grouping`; ORDER BY warehouseFk, `grouping`;
</db-model> </db-model>
<htk-column-spin title="_Price" column="price" unit="€" digits="2"/> <htk-column-spin title="_Price" column="price" unit="€" digits="2"/>

View File

@ -21,16 +21,14 @@
auto-load="false" auto-load="false"
result-index="1" result-index="1"
on-status-changed="onAgenciesReady"> on-status-changed="onAgenciesReady">
CALL vn.agencyListAvailable (#date, #address); CALL vn.zoneGetAgency(#address, #date);
SELECT DISTINCT m.id, m.description SELECT DISTINCT a.agencyModeFk id, a.description
FROM tmp.agencyAvailable a FROM tmp.zoneGetAgency a
JOIN vn.agencyMode m
ON m.agencyFk = a.agencyFk
JOIN vn.deliveryMethod d JOIN vn.deliveryMethod d
ON d.id = m.deliveryMethodFk ON d.id = a.deliveryMethodFk
WHERE d.code IN ('AGENCY', 'DELIVERY') WHERE d.code IN ('AGENCY', 'DELIVERY')
ORDER BY m.description; ORDER BY a.description;
DROP TEMPORARY TABLE tmp.agencyAvailable; DROP TEMPORARY TABLE tmp.zoneGetAgency;
<sql-batch property="batch"> <sql-batch property="batch">
<custom> <custom>
<item name="address" param="address"/> <item name="address" param="address"/>
@ -42,16 +40,14 @@
auto-load="false" auto-load="false"
result-index="1" result-index="1"
on-status-changed="onWarehousesReady"> on-status-changed="onWarehousesReady">
CALL vn.agencyListAvailable (#date, #address); CALL vn.zoneGetAgency(#address, #date);
SELECT DISTINCT m.id, m.description SELECT DISTINCT a.agencyModeFk id, a.description
FROM tmp.agencyAvailable a FROM tmp.zoneGetAgency a
JOIN vn.agencyMode m
ON m.agencyFk = a.agencyFk
JOIN vn.deliveryMethod d JOIN vn.deliveryMethod d
ON d.id = m.deliveryMethodFk ON d.id = a.deliveryMethodFk
WHERE d.code IN ('PICKUP') WHERE d.code IN ('PICKUP')
ORDER BY m.description; ORDER BY a.description;
DROP TEMPORARY TABLE tmp.agencyAvailable; DROP TEMPORARY TABLE tmp.zoneGetAgency;
<sql-batch property="batch"> <sql-batch property="batch">
<custom> <custom>
<item name="address" param="address"/> <item name="address" param="address"/>

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "1.406.51", "version": "1.406.52",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {