@@ -241,55 +257,73 @@
property="model"
on-status-changed="onTypeChange">
- SELECT id, reino, color FROM vn2008.reinos
- WHERE display != FALSE ORDER BY reino
+ 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
+ param="type">
CALL item_available ();
- SELECT DISTINCT t.tipo_id, t.Tipo type
+ 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 t.Tipo
+ ORDER BY name
+
+
+
+
+
+
+
+
+
+
+
+ param="color">
CALL item_available ();
- SELECT DISTINCT c.Id_Tinta, c.name
+ SELECT DISTINCT c.Id_Tinta, l.str name
FROM vn2008.Tintas c
JOIN vn2008.Articles a ON a.Color = c.Id_Tinta
+ 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 c.name
+ ORDER BY name
+
+
+
+
+
+
+
+ param="producer">
CALL item_available ();
@@ -298,32 +332,43 @@
JOIN vn2008.Articles a ON a.producer_id = p.producer_id
JOIN tmp.item_available i ON i.item_id = a.Id_Article
WHERE #filter
- ORDER BY p.name
+ ORDER BY name
+
+
+
+
+
+
+
+ param="origin">
CALL item_available ();
- SELECT DISTINCT o.id, o.Origen, o.Abreviatura
+ SELECT DISTINCT o.id, l.str name, o.Abreviatura
FROM vn2008.Origen o
JOIN vn2008.Articles a ON a.id_origen = o.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 o.Origen
+ ORDER BY name
+
+
+
+
+
+
+
+ param="category">
CALL item_available ();
@@ -334,6 +379,13 @@
ORDER BY a.Categoria
+
+
+
+
+
+
+