Label show provider

This commit is contained in:
Pau 2022-11-18 11:46:13 +01:00
parent 65fd5e2c8f
commit bc5940b036
2 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<div class="data">
<div class="header">{{item.name}}</div>
<div class="color">{{tags.color}}</div>
<div class="producer">{{tags.producer}}</div>
<div class="producer">{{tags.provider}}</div>
<div class="details">
<div class="package">
<div class="packing">{{packing()}}</div>

View File

@ -3,9 +3,12 @@ SELECT
i.name,
i.stems,
i.size,
b.packing
b.packing,
p.name as 'producer'
FROM vn.item i
JOIN cache.last_buy clb ON clb.item_id = i.id
JOIN vn.buy b ON b.id = clb.buy_id
JOIN vn.entry e ON e.id = b.entryFk
JOIN vn.producer p ON p.id = i.producerFk
WHERE i.id = ? AND clb.warehouse_id = ?