ticket dms local warehouse and company
gitea/salix/master This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-07-17 15:01:38 +02:00
parent 32f9aadaeb
commit 7a4ed5c3d0
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
Local warehouse: Almacén local
Local bank: Banco local
Local company: Compañia local
Local company: Empresa local
User warehouse: Almacén del usuario
User company: Compañia del usuario
User company: Empresa del usuario

View File

@ -32,10 +32,12 @@ class Controller {
}};
this.$http.get('/api/DmsTypes/findOne', {params}).then(res => {
const dmsTypeId = res.data && res.data.id;
const companyId = window.localStorage.defaultCompanyFk;
const warehouseId = window.localStorage.defaultWarehouseFk;
const defaultParams = {
reference: this.ticket.id,
warehouseId: this.ticket.warehouseFk,
companyId: this.ticket.companyFk,
warehouseId: warehouseId,
companyId: companyId,
dmsTypeId: dmsTypeId,
description: this.$translate.instant('FileDescription', {
ticketId: this.ticket.id,