refs #084200 arreglo lang
This commit is contained in:
parent
71220c58f7
commit
9be06c6f4b
|
@ -5,9 +5,10 @@ module.exports = {
|
||||||
async serverPrefetch() {
|
async serverPrefetch() {
|
||||||
const company = await db.findOne(`
|
const company = await db.findOne(`
|
||||||
SELECT
|
SELECT
|
||||||
(SELECT ci.footnotes FROM companyI18n ci WHERE ci.companyFk = c.id) AS footnotes,
|
ci.footnotes,
|
||||||
c.code
|
c.code
|
||||||
FROM company c
|
FROM company c
|
||||||
|
JOIN companyI18n ci ON ci.companyFk = c.id AND ci.lang = ?
|
||||||
JOIN companyGroup cg ON cg.id = c.companyGroupFk
|
JOIN companyGroup cg ON cg.id = c.companyGroupFk
|
||||||
JOIN supplier s ON s.id = c.id
|
JOIN supplier s ON s.id = c.id
|
||||||
WHERE c.code = ?`, [this.companyCode]);
|
WHERE c.code = ?`, [this.companyCode]);
|
||||||
|
|
Loading…
Reference in New Issue