feat: añadido almacén por defecto
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
eefafb3ac2
commit
caf1dcd690
|
@ -18,9 +18,11 @@
|
||||||
},
|
},
|
||||||
"expired": {
|
"expired": {
|
||||||
"type": "date"
|
"type": "date"
|
||||||
|
},
|
||||||
|
"warehouseFk": {
|
||||||
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"scope": {
|
"scope": {
|
||||||
"where" :{
|
"where" :{
|
||||||
"expired": null
|
"expired": null
|
||||||
|
|
|
@ -99,8 +99,10 @@ module.exports = Self => {
|
||||||
[summary.botanical] = res[2];
|
[summary.botanical] = res[2];
|
||||||
|
|
||||||
const userConfig = await models.UserConfig.getUserConfig(ctx, myOptions);
|
const userConfig = await models.UserConfig.getUserConfig(ctx, myOptions);
|
||||||
|
console.log(userConfig.warehouseFk);
|
||||||
|
const company = await models.Company.findOne({where: {code: 'VNL'}}, myOptions);
|
||||||
|
|
||||||
res = await models.Item.getVisibleAvailable(summary.item.id, userConfig.warehouseFk, undefined, myOptions);
|
res = await models.Item.getVisibleAvailable(summary.item.id, company.warehouseFk, undefined, myOptions);
|
||||||
|
|
||||||
summary.available = res.available;
|
summary.available = res.available;
|
||||||
summary.visible = res.visible;
|
summary.visible = res.visible;
|
||||||
|
|
|
@ -20,8 +20,17 @@
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-one>
|
<vn-one>
|
||||||
<p translate>Available</p>
|
<p translate>Available</p>
|
||||||
<p>{{$ctrl.summary.available}}</p>
|
<p>{{$ctrl.summary.available}}
|
||||||
</vn-one>
|
<vn-icon
|
||||||
|
icon="info_outline"
|
||||||
|
vn-tooltip="{{'WarehouseFk' | translate:$ctrl.passRequirements}}"
|
||||||
|
pointer>
|
||||||
|
</vn-icon>
|
||||||
|
</p>
|
||||||
|
<!-- <div
|
||||||
|
info="Search ACL by model name">
|
||||||
|
'test'
|
||||||
|
</div> -->
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-one name="basicData">
|
<vn-one name="basicData">
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
WarehouseFk: >
|
||||||
|
Calculated on the warehouse of {{ name }}
|
|
@ -1,3 +1,5 @@
|
||||||
Barcode: Códigos de barras
|
Barcode: Códigos de barras
|
||||||
Other data: Otros datos
|
Other data: Otros datos
|
||||||
Go to the item: Ir al artículo
|
Go to the item: Ir al artículo
|
||||||
|
WarehouseFk: >
|
||||||
|
Calculado sobre el almacén de {{ name }}
|
||||||
|
|
Loading…
Reference in New Issue