diff --git a/cypress.config.js b/cypress.config.js index e9aeb547a..fe4227d79 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -12,7 +12,7 @@ module.exports = defineConfig({ supportFile: 'test/cypress/support/index.js', videosFolder: 'test/cypress/videos', video: false, - specPattern: 'test/cypress/integration/**/*.spec.js', + specPattern: 'test/cypress/integration/invoiceOut/*.spec.js', experimentalRunAllSpecs: true, watchForFileChanges: true, reporter: 'cypress-mochawesome-reporter', diff --git a/cypress/downloads/download.zip b/cypress/downloads/download.zip new file mode 100644 index 000000000..9bef20a3b Binary files /dev/null and b/cypress/downloads/download.zip differ diff --git a/cypress/downloads/negativeBases.csv b/cypress/downloads/negativeBases.csv new file mode 100644 index 000000000..a9f8a1632 --- /dev/null +++ b/cypress/downloads/negativeBases.csv @@ -0,0 +1,3 @@ +Company Country Id client Client workerSocialName Amount Taxable base Id ticket Active Invoice Data checked Id Comercial workerName +VNL España 1101 BATMAN salesPersonNick -35.4 -35.4 23 1 1 1 18 salesperson +VNL España 1101 BATMAN salesPersonNick -8.07 -8.07 24 1 1 1 18 salesperson \ No newline at end of file diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index ea7cf1dda..b094245ff 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -428,6 +428,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) { + {{ rows.length }} { return filteredParts.join(', '); }; -const modelValue = ref( +const modelValue = computed(() => props.location ? formatLocation(props.location, locationProperties) : null ); @@ -61,6 +61,7 @@ const handleModelValue = (data) => { }; + {{ modelValue }} + *{{ data.location }}* - + @@ -258,58 +258,9 @@ function round(value) { :right-search="false" :is-editable="false" :column-search="false" - @on-fetch="onFetch" :disable-option="{ card: true }" - :footer="true" auto-load > - - {{ toCurrency(balances[rowIndex]?.balance) }} - - - - {{ t('bill', { ref: row.description }) }} - - - - {{ row.description }} - - - value != row.description && - axios.patch(`Receipts/${row.id}`, { description: value }) - " - auto-save - > - - - - - - - {{ round(tableRef.footer.invoiceEuros) }} - - - - - {{ round(tableRef.footer.paymentEuros) }} - - - - - {{ round(tableRef.footer.euroBalance) }} - -