refs #5772 Fixes fetching parallelism from front
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2023-06-23 11:50:40 +02:00
parent 47a4a9950f
commit 8c0e8e9e12
1 changed files with 8 additions and 2 deletions

View File

@ -9,7 +9,8 @@ class Controller extends Section {
Object.assign(this, { Object.assign(this, {
maxShipped: new Date(date.getFullYear(), date.getMonth(), 0), maxShipped: new Date(date.getFullYear(), date.getMonth(), 0),
clientsToInvoice: 'all', clientsToInvoice: 'all',
companyFk: this.vnConfig.companyFk companyFk: this.vnConfig.companyFk,
parallelism: 1
}); });
const params = {companyFk: this.companyFk}; const params = {companyFk: this.companyFk};
@ -22,7 +23,12 @@ class Controller extends Section {
const filter = {fields: ['parallelism']}; const filter = {fields: ['parallelism']};
this.$http.get('InvoiceOutConfigs/findOne', {filter}) this.$http.get('InvoiceOutConfigs/findOne', {filter})
.then(res => { .then(res => {
this.parallelism = res.data.parallelism || 1; if (res.data.parallelism)
this.parallelism = res.data.parallelism;
})
.catch(res => {
if (res.status == 404) return;
throw res;
}); });
} }