Merge branch 'master' into test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
55bf10435e
|
@ -23,12 +23,13 @@ BEGIN
|
||||||
LEAST(bb.stickers, FLOOR(ish.visible / ish.packing)) ishStickers,
|
LEAST(bb.stickers, FLOOR(ish.visible / ish.packing)) ishStickers,
|
||||||
bb.stickers buyStickers
|
bb.stickers buyStickers
|
||||||
FROM itemShelving ish
|
FROM itemShelving ish
|
||||||
|
JOIN shelving sh ON sh.id = ish.shelvingFk
|
||||||
JOIN (SELECT b.id, b.itemFk, b.stickers
|
JOIN (SELECT b.id, b.itemFk, b.stickers
|
||||||
FROM buy b
|
FROM buy b
|
||||||
WHERE b.entryFk = vFromEntryFk
|
WHERE b.entryFk = vFromEntryFk
|
||||||
ORDER BY b.stickers DESC
|
ORDER BY b.stickers DESC
|
||||||
LIMIT 10000000000000000000) bb ON bb.itemFk = ish.itemFk
|
LIMIT 10000000000000000000) bb ON bb.itemFk = ish.itemFk
|
||||||
WHERE ish.shelvingFk = vShelvingCode COLLATE utf8_general_ci
|
WHERE sh.code = vShelvingCode COLLATE utf8_general_ci
|
||||||
AND NOT ish.isSplit
|
AND NOT ish.isSplit
|
||||||
GROUP BY ish.id;
|
GROUP BY ish.id;
|
||||||
|
|
||||||
|
|
|
@ -20,10 +20,6 @@ BEGIN
|
||||||
CALL travel_checkWarehouseIsFeedStock(NEW.warehouseInFk);
|
CALL travel_checkWarehouseIsFeedStock(NEW.warehouseInFk);
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
IF NOT (NEW.isRaid <=> OLD.isRaid) OR NOT (NEW.daysInForward <=> OLD.daysInForward) THEN
|
|
||||||
CALL travel_checkRaid(NEW.isRaid, NEW.daysInForward);
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT (NEW.awbFk <=> OLD.awbFk)THEN
|
IF NOT (NEW.awbFk <=> OLD.awbFk)THEN
|
||||||
SELECT COUNT(*) INTO vHasAnyInvoiceBooked
|
SELECT COUNT(*) INTO vHasAnyInvoiceBooked
|
||||||
FROM travel t
|
FROM travel t
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="md-txt xl-width bold center">
|
<td class="md-txt xl-width bold center">
|
||||||
<div class="overflow-line">
|
<div class="overflow-line">
|
||||||
{{buy.itemFk}}
|
{{formatNumber(buy.itemFk)}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td colspan="2" class="md-txt md-width center">
|
<td colspan="2" class="md-txt md-width center">
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
{{'LAID'}}
|
{{'LAID'}}
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="overflow-line">
|
<div v-else class="overflow-line">
|
||||||
{{buy.entryFk}}
|
{{formatNumber(buy.entryFk)}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -73,17 +73,17 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="center xl-width">
|
<td class="center xs-txt xl-width">
|
||||||
<div class="overflow-line">
|
<div class="overflow-line">
|
||||||
{{buy.buyFk}}
|
{{formatNumber(buy.buyFk)}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="xs-txt sm-width center">
|
<td class="center xs-txt sm-width">
|
||||||
<div class="overflow-line">
|
<div class="overflow-line">
|
||||||
{{date}}
|
{{date}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="xs-txt sm-width cursive center bold">
|
<td class="cursive center bold xs-txt sm-width">
|
||||||
<div class="overflow-line">
|
<div class="overflow-line">
|
||||||
{{`${buy.labelNum}/${buy.quantity / (packing || buy.packing)}`}}
|
{{`${buy.labelNum}/${buy.quantity / (packing || buy.packing)}`}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@ module.exports = {
|
||||||
this.date = Date.vnNew();
|
this.date = Date.vnNew();
|
||||||
this.buys = await this.rawSqlFromDef('buy', [this.copies || 1, this.id]);
|
this.buys = await this.rawSqlFromDef('buy', [this.copies || 1, this.id]);
|
||||||
if (!this.buys.length) throw new UserError(`Empty data source`);
|
if (!this.buys.length) throw new UserError(`Empty data source`);
|
||||||
this.date = moment(this.date).format('WW/E');
|
this.date = moment(this.date).format('WW/DD');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getBarcode(data) {
|
getBarcode(data) {
|
||||||
|
@ -25,6 +25,9 @@ module.exports = {
|
||||||
margin: 0
|
margin: 0
|
||||||
});
|
});
|
||||||
return new XMLSerializer().serializeToString(svgNode);
|
return new XMLSerializer().serializeToString(svgNode);
|
||||||
|
},
|
||||||
|
formatNumber(number) {
|
||||||
|
return new Intl.NumberFormat('es-ES', {maximumFractionDigits: 0}).format(number);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|
|
@ -34,6 +34,9 @@ html {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
.sm-txt {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
.md-txt {
|
.md-txt {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2" class="sm-txt">
|
||||||
{{buy.buyFk}}
|
{{formatNumber(buy.buyFk)}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" class="lg-width black-bg center bold xl-txt padding">
|
<td colspan="3" class="lg-width black-bg center bold xl-txt padding">
|
||||||
<div class="overflow-line">
|
<div class="overflow-line">
|
||||||
{{buy.itemFk}}
|
{{formatNumber(buy.itemFk)}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -78,8 +78,7 @@
|
||||||
<div v-if="buy.isLaid && typeId === 'buy'" class="overflow-line black-bg bold">
|
<div v-if="buy.isLaid && typeId === 'buy'" class="overflow-line black-bg bold">
|
||||||
{{'LAID'}}
|
{{'LAID'}}
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="overflow-line">
|
<div v-else class="overflow-line xs-txt">
|
||||||
{{buy.entryFk}}
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -103,7 +102,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="sm-width">
|
<td class="sm-width">
|
||||||
<div class="overflow-line">
|
<div class="overflow-line">
|
||||||
<i>Entrada:</i> {{buy.entryFk}}
|
<i>Entrada:</i> {{formatNumber(buy.entryFk)}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -9,7 +9,7 @@ module.exports = {
|
||||||
this.buys = await this.rawSqlFromDef('buy', [this.copies || 1, this.id]);
|
this.buys = await this.rawSqlFromDef('buy', [this.copies || 1, this.id]);
|
||||||
if (!this.buys.length) throw new UserError(`Empty data source`);
|
if (!this.buys.length) throw new UserError(`Empty data source`);
|
||||||
this.qr = await this.getQr(this.buys[0].buyFk);
|
this.qr = await this.getQr(this.buys[0].buyFk);
|
||||||
this.date = moment(this.date).format('WW/E');
|
this.date = moment(this.date).format('WW/DD');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getQr(data) {
|
getQr(data) {
|
||||||
|
@ -24,6 +24,9 @@ module.exports = {
|
||||||
margin: 0,
|
margin: 0,
|
||||||
errorCorrectionLevel: 'L'
|
errorCorrectionLevel: 'L'
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
formatNumber(number) {
|
||||||
|
return new Intl.NumberFormat('es-ES', {maximumFractionDigits: 0}).format(number);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|
Loading…
Reference in New Issue