Merge branch 'master' into Hotfix-ZoneEventsExclusion
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Javier Segarra 2024-11-27 18:15:05 +00:00
commit a7f5c13acf
1 changed files with 18 additions and 20 deletions

View File

@ -43,16 +43,17 @@ const columns = computed(() => [
{ {
align: 'left', align: 'left',
name: 'ref', name: 'ref',
label: t('invoiceOutList.tableVisibleColumns.ref'), label: t('globals.reference'),
isTitle: true, isTitle: true,
component: 'select', component: 'select',
attrs: { attrs: {
url: MODEL, url: MODEL,
optionLabel: 'ref', optionLabel: 'ref',
optionValue: 'id', optionValue: 'ref',
}, },
columnField: { columnField: { component: null },
component: null, columnFilter: {
inWhere: true,
}, },
}, },
{ {
@ -154,9 +155,7 @@ function downloadPdf() {
const [invoiceOut] = selectedCardsArray; const [invoiceOut] = selectedCardsArray;
openPdf(invoiceOut.id); openPdf(invoiceOut.id);
} else { } else {
const invoiceOutIdsArray = selectedCardsArray.map( const invoiceOutIdsArray = selectedCardsArray.map((invoiceOut) => invoiceOut.id);
(invoiceOut) => invoiceOut.id
);
const invoiceOutIds = invoiceOutIdsArray.join(','); const invoiceOutIds = invoiceOutIdsArray.join(',');
const params = { const params = {
@ -165,7 +164,6 @@ function downloadPdf() {
openReport(`${MODEL}/downloadZip`, params); openReport(`${MODEL}/downloadZip`, params);
} }
} }
watchEffect(selectedRows); watchEffect(selectedRows);