ByProvince
@@ -216,13 +206,11 @@
id="realms-model"
property="model"
on-status-changed="refreshTitleColor">
-
- SELECT r.id, l.str name, r.color
- FROM vn2008.reinos r
- LEFT JOIN vn_locale.realm_view l ON l.realm_id = r.id
- WHERE r.display != FALSE
- ORDER BY name
-
+ SELECT r.id, l.str name, r.color
+ FROM vn2008.reinos r
+ LEFT JOIN vn_locale.realm_view l ON l.realm_id = r.id
+ WHERE r.display != FALSE
+ ORDER BY name
@@ -247,16 +235,14 @@
conn="conn"
result-index="1"
on-status-changed="refreshTitle">
-
- CALL item_available ();
- SELECT DISTINCT t.tipo_id, l.str name
- FROM vn2008.Tipos t
- JOIN vn2008.Articles a ON a.tipo_id = t.tipo_id
- LEFT JOIN vn_locale.family_view l ON l.family_id = t.tipo_id
- JOIN tmp.item_available i ON i.item_id = a.Id_Article
- WHERE #filter
- ORDER BY name
-
+ CALL item_available ();
+ SELECT DISTINCT t.tipo_id, l.str name
+ FROM vn2008.Tipos t
+ JOIN vn2008.Articles a ON a.tipo_id = t.tipo_id
+ LEFT JOIN vn_locale.family_view l ON l.family_id = t.tipo_id
+ JOIN tmp.item_available i ON i.item_id = a.Id_Article
+ WHERE #filter
+ ORDER BY name
@@ -269,22 +255,20 @@
placeholder="_Color"
param="color">
-
- CALL item_available ();
- SELECT DISTINCT c.Id_Tinta, l.str name
- FROM vn2008.Tintas c
- JOIN vn2008.Articles a ON a.Color = c.Id_Tinta
- JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
- LEFT JOIN vn_locale.color_view l ON l.color_id = c.Id_Tinta
- JOIN tmp.item_available i ON i.item_id = a.Id_Article
- WHERE #filter
- ORDER BY name
-
+ CALL item_available ();
+ SELECT DISTINCT c.Id_Tinta, l.str name
+ FROM vn2008.Tintas c
+ JOIN vn2008.Articles a ON a.Color = c.Id_Tinta
+ JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
+ LEFT JOIN vn_locale.color_view l ON l.color_id = c.Id_Tinta
+ JOIN tmp.item_available i ON i.item_id = a.Id_Article
+ WHERE #filter
+ ORDER BY name
-
+
@@ -294,21 +278,19 @@
placeholder="_Producer"
param="producer">
-
- CALL item_available ();
- SELECT DISTINCT p.producer_id, p.name
- FROM vn2008.producer p
- JOIN vn2008.Articles a ON a.producer_id = p.producer_id
- JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
- JOIN tmp.item_available i ON i.item_id = a.Id_Article
- WHERE #filter
- ORDER BY name
-
+ CALL item_available ();
+ SELECT DISTINCT p.producer_id, p.name
+ FROM vn2008.producer p
+ JOIN vn2008.Articles a ON a.producer_id = p.producer_id
+ JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
+ JOIN tmp.item_available i ON i.item_id = a.Id_Article
+ WHERE #filter
+ ORDER BY name
-
+
@@ -318,22 +300,20 @@
placeholder="_Origin"
param="origin">
-
- CALL item_available ();
- SELECT DISTINCT o.id, l.str name, o.Abreviatura
- FROM vn2008.Origen o
- JOIN vn2008.Articles a ON a.id_origen = o.id
- JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
- LEFT JOIN vn_locale.origin_view l ON l.origin_id = o.id
- JOIN tmp.item_available i ON i.item_id = a.Id_Article
- WHERE #filter
- ORDER BY name
-
+ CALL item_available ();
+ SELECT DISTINCT o.id, l.str name, o.Abreviatura
+ FROM vn2008.Origen o
+ JOIN vn2008.Articles a ON a.id_origen = o.id
+ JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
+ LEFT JOIN vn_locale.origin_view l ON l.origin_id = o.id
+ JOIN tmp.item_available i ON i.item_id = a.Id_Article
+ WHERE #filter
+ ORDER BY name
-
+
@@ -343,20 +323,18 @@
placeholder="_Category"
param="category">
-
- CALL item_available ();
- SELECT DISTINCT a.Categoria, a.Categoria category
- FROM vn2008.Articles a
- JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
- JOIN tmp.item_available i ON i.item_id = a.Id_Article
- WHERE #filter
- ORDER BY a.Categoria
-
+ CALL item_available ();
+ SELECT DISTINCT a.Categoria, a.Categoria category
+ FROM vn2008.Articles a
+ JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
+ JOIN tmp.item_available i ON i.item_id = a.Id_Article
+ WHERE #filter
+ ORDER BY a.Categoria
-
+
@@ -433,14 +411,14 @@
Color
-
+
- Origin
+ Origin
-
-
@@ -66,6 +44,8 @@
@@ -103,21 +83,19 @@
on-change="onAddressChange"
renderer="addressRenderer">
-
- SELECT a.id, a.consignee, p.name province, a.zip_code, a.city, a.name, a.active, c.Pais country
- FROM address_view a
+ SELECT a.id, a.consignee, p.name province, a.zip_code, a.city, a.name, a.active, c.Pais country
+ FROM address_view a
LEFT JOIN vn2008.province p ON a.province_id = p.province_id
JOIN vn2008.Paises c ON c.Id = p.Paises_Id
- WHERE active != FALSE
-
+ WHERE active != FALSE
-
+
-
+
@@ -129,7 +107,8 @@
@@ -139,7 +118,8 @@
@@ -152,11 +132,11 @@
-
+
Agency
-
+
@@ -68,7 +65,7 @@
Previous balance
-
+
@@ -76,7 +73,7 @@
Order total
-
+
@@ -84,7 +81,7 @@
Order VAT
-
+
@@ -92,7 +89,7 @@
Total debt
-
+
@@ -100,7 +97,7 @@
Credit
-
+
@@ -108,7 +105,7 @@
Exceeded credit
-
+
@@ -125,14 +122,14 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-