8144-devToTest_2448 #3216

Merged
alexm merged 256 commits from 8144-devToTest_2448 into test 2024-11-19 07:36:04 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 8569bec34a - Show all commits

View File

@ -0,0 +1,3 @@
INSERT INTO vn.report (name, `method`)
VALUES ('LabelItemBarcode','Items/{id}/label-barcode-pdf'),
('LabelItemQr','Items/{id}/label-qr-pdf');

View File

@ -4,7 +4,7 @@ const moment = require('moment');
const jsbarcode = require('jsbarcode'); const jsbarcode = require('jsbarcode');
module.exports = { module.exports = {
name: 'item-label-qr', name: 'item-label-barcode',
async serverPrefetch() { async serverPrefetch() {
this.company = await this.findOneFromDef('company', [this.warehouseId]); this.company = await this.findOneFromDef('company', [this.warehouseId]);
if (!this.company) if (!this.company)