Ahora se usa la tabla producer

This commit is contained in:
Juan Ferrer Toribio 2015-11-10 14:07:10 +01:00
parent 7390f21a92
commit e93d4049a0
3 changed files with 9 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.243-deb8) stable; urgency=low
hedera-web (1.244-deb8) stable; urgency=low
* Initial Release.

View File

@ -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)

View File

@ -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