fix: refs #8581 update field references for supplier withholding in InvoiceInDescriptorMenu

This commit is contained in:
Jorge Penadés 2025-02-25 13:24:16 +01:00
parent 9a5c1240c9
commit dfb5cfb513
1 changed files with 3 additions and 3 deletions

View File

@ -113,8 +113,8 @@ async function cloneInvoice() {
const isAgricultural = () => {
if (!config.value) return false;
return (
invoiceIn.value?.supplier?.sageFarmerWithholdingFk ===
config?.value[0]?.sageWithholdingFk
invoiceIn.value?.supplier?.sageWithholdingFk ===
config?.value[0]?.sageFarmerWithholdingFk
);
};
function showPdfInvoice() {
@ -174,7 +174,7 @@ const createInvoiceInCorrection = async () => {
/>
<FetchData
url="InvoiceInConfigs"
:where="{ fields: ['sageWithholdingFk'] }"
:where="{ fields: ['sageFarmerWithholdingFk'] }"
auto-load
@on-fetch="(data) => (config = data)"
/>