Merge pull request 'HOTFIX: Suppleir Consumption PDF' (!1764) from hotfix_supplierConsumption_dates_pdf into master
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1764
Reviewed-by: Jorge Penadés <jorgep@verdnatura.es>
This commit is contained in:
Javier Segarra 2025-04-29 17:14:17 +00:00
commit 061d601911
1 changed files with 5 additions and 7 deletions

View File

@ -40,13 +40,11 @@ const dateRanges = computed(() => {
return { from, to };
});
const reportParams = computed(() => {
return {
const reportParams = computed(() => ({
recipientId: Number(route.params.id),
to: dateRange(dateRanges.value.to)[1],
from: dateRange(dateRanges.value.from)[1],
};
});
from: dateRange(dateRanges.value.from)[0].toISOString(),
to: dateRange(dateRanges.value.to)[1].toISOString(),
}));
async function getSupplierConsumptionData() {
await arrayData.fetch({ append: false });