Merge pull request 'fix: refs #7644 Update in print method' (!2961) from 7644-updateInPrint into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2961 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
d3dc77d3ee
|
@ -53,6 +53,13 @@ module.exports = Self => {
|
|||
}
|
||||
|
||||
if (!merger._doc) throw new UserError('The entry not have stickers');
|
||||
|
||||
await Self.rawSql(`
|
||||
UPDATE buy
|
||||
SET printedStickers = stickers
|
||||
WHERE entryFk = ?
|
||||
`, [id], myOptions);
|
||||
|
||||
return [await merger.saveAsBuffer(), 'application/pdf', `filename="entry-${id}.pdf"`];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue