#7897 - masterTest_24_36 #669

Merged
jsegarra merged 115 commits from 7897_masterTest_24_36 into master 2024-09-03 06:37:49 +00:00
3 changed files with 9 additions and 16 deletions
Showing only changes of commit b71d24cf3d - Show all commits

View File

@ -103,10 +103,6 @@ select:-webkit-autofill {
border-radius: 8px; border-radius: 8px;
} }
.card-width {
width: 770px;
}
.vn-card-list { .vn-card-list {
width: 100%; width: 100%;
max-width: 60em; max-width: 60em;

View File

@ -94,11 +94,13 @@ const selectCustomerId = (id) => {
}; };
const statusText = computed(() => { const statusText = computed(() => {
return status.value === 'invoicing' const baseStatus = t(`status.${status.value}`);
? `${t(`status.${status.value}`)} ${ const clientId =
addresses.value[getAddressNumber.value]?.clientId status.value === 'invoicing'
}` ? addresses.value[getAddressNumber.value]?.clientId || ''
: t(`status.${status.value}`); : '';
return clientId ? `${baseStatus} ${clientId}`.trim() : baseStatus;
}); });
onMounted(() => (stateStore.rightDrawer = true)); onMounted(() => (stateStore.rightDrawer = true));

View File

@ -200,12 +200,7 @@ export const useInvoiceOutGlobalStore = defineStore({
this.addressIndex++; this.addressIndex++;
this.isInvoicing = false; this.isInvoicing = false;
} catch (err) { } catch (err) {
if ( if (err?.response?.status >= 400 && err?.response?.status < 500) {
err &&
err.response &&
err.response.status >= 400 &&
err.response.status < 500
) {
this.invoiceClientError(address, err.response?.data?.error?.message); this.invoiceClientError(address, err.response?.data?.error?.message);
return; return;
} else { } else {
@ -252,7 +247,7 @@ export const useInvoiceOutGlobalStore = defineStore({
params, params,
}); });
if (data.data && data.data.error) throw new Error(); if (data?.data?.error) throw new Error();
const status = exportFile('negativeBases.csv', data, { const status = exportFile('negativeBases.csv', data, {
encoding: 'windows-1252', encoding: 'windows-1252',