Ahora se usa la tabla producer
This commit is contained in:
parent
7390f21a92
commit
e93d4049a0
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.243-deb8) stable; urgency=low
|
||||
hedera-web (1.244-deb8) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -183,7 +183,12 @@ Vn.Catalog = new Class
|
|||
|
||||
,nameRenderer: function (renderer, form)
|
||||
{
|
||||
renderer.subtitle = form.get ('producer');
|
||||
var producer = form.get ('producer');
|
||||
|
||||
// if (producer)
|
||||
// producer = producer.toUpperCase ();
|
||||
|
||||
renderer.subtitle = producer;
|
||||
}
|
||||
|
||||
,featuresRender: function (renderer, form)
|
||||
|
|
|
@ -29,11 +29,11 @@
|
|||
SELECT Id_Article item_id FROM vn2008.Articles
|
||||
WHERE #filter;
|
||||
CALL bionic_calc ();
|
||||
SELECT a.Id_Article item_id, t.available, t.price, p.producer,
|
||||
SELECT a.Id_Article item_id, t.available, t.price, p.name producer,
|
||||
a.Foto, a.Article, a.Categoria, a.Medida, a.Tallos, a.Color, o.Abreviatura
|
||||
FROM tmp.bionic_item t
|
||||
JOIN vn2008.Articles a ON a.Id_Article = t.item_id
|
||||
LEFT JOIN vn2008.Articles_producer p ON p.Id_Article = a.Id_Article
|
||||
LEFT JOIN vn2008.producer p ON p.producer_id = a.producer_id
|
||||
LEFT JOIN vn2008.Origen o ON a.id_origen = o.id
|
||||
WHERE t.available > 0
|
||||
ORDER BY a.Article, a.Medida
|
||||
|
|
Loading…
Reference in New Issue