Šis straipsnis taikomas "„Microsoft“ Dynamics NAV", skirtai ispanų (es) kalbos lokalei.
Požymiai
Tarkime, turite du klientus, kurie naudoja tą patį pridėtinės vertės mokesčio (PVM) registracijos numerį ispaniškoje "„Microsoft“ Dynamics NAV" versijoje. Pirmasis klientas įrašuose turi daugiau sumų nei antras klientas. Tokiu atveju, kai eksportuojate 347 modelio failą, pirmojo kliento sumų vertė rodoma tinkamai. Tačiau socialinės priežasties reikšmė rodoma antram klientui, o ne pirmam klientui.
Pastaba Ši problema taip pat kyla, jei turite du tiekėjus, naudojančius tą patį PVM registracijos numerį.
Ši problema kyla šiuose produktuose:
- "„Microsoft“ Dynamics NAV 2009 R2" ispanų kalbos versija
- "„Microsoft“ Dynamics NAV 2009" 1 pakeitimų paketo versija ispanų kalba
- "„Microsoft“ Dynamics NAV 5.0 Service Pack 1" versija ispanų kalba
Sprendimas
Karštųjų pataisų informacija
Dabar palaikomas karštąsias pataisas galima gauti iš "„Microsoft“". Tačiau juo siekiama tik išspręsti šiame straipsnyje aprašytą problemą. Taikyti ją tik sistemoms, kuriose kilo ši konkreti problema. Ši karštoji pataisa gali būti papildomai patikrinta. Todėl, jei ši problema jūsų rimtai nepaveikė, rekomenduojame palaukti kito "„Microsoft“ Dynamics NAV 2009" pakeitimų paketo arba kitos "„Microsoft“ Dynamics NAV" versijos, kurioje yra ši karštoji pataisa.
Pastaba Ypatingais atvejais mokesčiai, kurie paprastai taikomi už palaikymo skambučius, gali būti atšaukti, jei "„Microsoft“ Dynamics" ir susijusių produktų techninio palaikymo specialistas nustato, kad konkretus naujinimas išspręs jūsų problemą. Įprastos palaikymo išlaidos bus taikomos papildomiems palaikymo klausimams ir problemoms, kurios neatitinka atitinkamo konkretaus naujinimo reikalavimų.
Diegimo informacija
"„Microsoft“" pateikia programavimo pavyzdžių tik iliustracijai, be išreikštų ar numanomų garantijų. Tai apima, bet neapsiriboja, numanomas tinkamumo parduoti arba tinkamumo konkrečiam tikslui garantijas. Straipsnyje laikomasi nuomonės, kad esate susipažinę su demonstruojama programavimo kalba ir įrankiais, naudojamais kuriant ir derinant procedūras. "„Microsoft“" palaikymo inžinieriai gali padėti paaiškinti konkrečios procedūros funkcionalumą. Tačiau jie nemodifikuos šių pavyzdžių, kad suteiktų papildomų funkcinių galimybių, arba nesukurs procedūrų, atitinkančių jūsų konkrečius reikalavimus.
Pastaba Prieš diegdami šią karštąją pataisą patikrinkite, ar visi „Microsoft“ Dynamics NAV kliento vartotojai yra atsiregistravę nuo sistemos. Tai apima "„Microsoft“ Dynamics NAV Application Server" (NAS) tarnybas. Turite būti vienintelis kliento vartotojas, kuris yra prisijungęs, kai įdiegiate šią karštąją pataisą.
Norėdami įdiegti šią karštąją pataisą, privalote turėti kūrėjo licenciją.
Rekomenduojame vartotojo paskyrai "Windows" prisijungimų lange arba duomenų bazės prisijungimų lange priskirti "SUPER" vaidmens ID. Jei vartotojo paskyrai negalima priskirti "SUPER" vaidmens ID, turite patikrinti, ar vartotojo paskyra turi šias teises:
- Objekto, kurį keisite, modifikavimo teisė.
- Sistemos objekto ID 5210 ir sistemos objekto ID 9015 objekto vykdymo teisės.
Pastaba: neturite turėti teisių į duomenų saugyklas, nebent turite atlikti duomenų taisymą.
Kodo keitimai
Pastaba Visada išbandykite kodo pataisas kontroliuojamoje aplinkoje prieš taikydami jas gamybos kompiuteriuose.
Norėdami išspręsti šią problemą, pakeiskite kodą deklaracijos Make 347 ataskaitoje (10707). Norėdami tai padaryti, atlikite toliau aprašytus veiksmus.
2 duomenų elemento kodą pakeiskite taip:
Esamas kodasNotIn347Amt := 0;Pakeitimo kodas
NotIn347Amt := 0; // Add the following line. CustomerMaxAmount := 0;3 duomenų elemento kodą pakeiskite taip:
Esamas kodas 1// Delete the following lines. VATEntry.RESET; VATEntry.SETCURRENTKEY(Type,"Posting Date","Document Type","Document No.","Bill-to/Pay-to No."); VATEntry.SETRANGE(Type,VATEntry.Type::Sale); VATEntry.SETRANGE("Document No.","Document No."); VATEntry.SETRANGE("Document Date","Document Date"); VATEntry.SETRANGE("Document Type","Document Type"); VATEntry.SETRANGE("Country/Region Code",CountryCode); // End of the deleted lines.Pakeitimo kodas 1
// Add the following line. FilterVATEntry(VATEntry,"Document Date","Document Type","Document No.",TRUE);Esamas kodas 2
"Document Type"::Invoice: // Delete the following lines. BEGIN SalesInvHeader.RESET; IF SalesInvHeader.GET("Document No.") THEN BEGIN IF SalesInvHeader."Ship-to Code" <> '' THEN BEGIN ShipToAddress.GET("Customer No.",SalesInvHeader."Ship-to Code"); IF ShipToAddress."Country/Region Code" <> CountryCode THEN CurrReport.SKIP; END; SalesinvLine.RESET; SalesinvLine.SETRANGE("Document No.","Document No."); IF SalesinvLine.FINDSET THEN REPEAT IF SalesinvLine."VAT Calculation Type" = SalesinvLine."VAT Calculation Type"::"No Taxable VAT" THEN NoTaxVATFound := TRUE; UNTIL SalesinvLine.NEXT = 0; END ELSE BEGIN IF Customer."Country/Region Code" = CountryCode THEN FromJournal := TRUE; END; END; "Document Type"::"Credit Memo": BEGIN SalesCrMemoHeader.RESET; IF SalesCrMemoHeader.GET("Document No.") THEN BEGIN IF SalesCrMemoHeader."Ship-to Code" <> '' THEN BEGIN ShipToAddress.GET("Customer No.",SalesCrMemoHeader."Ship-to Code"); IF ShipToAddress."Country/Region Code" <> CountryCode THEN CurrReport.SKIP; END; SalesCrMemoLine.RESET; SalesCrMemoLine.SETRANGE("Document No.","Document No."); IF SalesCrMemoLine.FINDSET THEN REPEAT IF SalesCrMemoLine."VAT Calculation Type" = SalesCrMemoLine."VAT Calculation Type"::"No Taxable VAT" THEN NoTaxVATFound := TRUE; UNTIL SalesCrMemoLine.NEXT = 0; END ELSE BEGIN IF Customer."Country/Region Code" = CountryCode THEN FromJournal := TRUE; END; END; // End of the deleted lines. END;Pakeitimo kodas 2
"Document Type"::Invoice: // Add the following lines. CheckCustDocTypeInvoice(SalesInvHeader,"Cust. Ledger Entry",Customer); "Document Type"::"Credit Memo": CheckCustDocTypeCrMemo(SalesCrMemoHeader,"Cust. Ledger Entry",Customer); // End of the added lines. END;Esamas kodas 3
SalesAmt := SalesAmt + "Amount (LCY)"; UpdateQuarterAmount(AmountType::Sales,"Amount (LCY)","Document Date");3 pakeitimo kodas
SalesAmt := SalesAmt + "Amount (LCY)"; // Add the following line. CustomerMaxAmount := SalesAmt; UpdateQuarterAmount(AmountType::Sales,"Amount (LCY)","Document Date");Esamas kodas 4
SalesAmt := SalesAmt + NotIn347Amt + AmtSameVATRegNo; // Delete the following line. IF SalesAmt >= MinAmount THEN BEGIN IF PostCode347 = ' ' THEN4 pakeitimo kodas
SalesAmt := SalesAmt + NotIn347Amt + AmtSameVATRegNo; // Add the following line. IF ABS(SalesAmt) >= MinAmount THEN BEGIN IF PostCode347 = ' ' THENDuomenų elemento Nr. 5 kodą pakeiskite taip:
Esamas kodasNotIn347Amt := 0;Pakeitimo kodas
NotIn347Amt := 0; // Add the following line. VendorMaxAmount := 0;6 duomenų elemento kodą pakeiskite taip:
Esamas kodas 1// Delete the following lines. VATEntry.RESET; VATEntry.SETCURRENTKEY(Type,"Posting Date","Document Type","Document No.","Bill-to/Pay-to No."); VATEntry.SETRANGE(Type,VATEntry.Type::Purchase); VATEntry.SETRANGE("Document No.","Document No."); VATEntry.SETRANGE("Document Date","Document Date"); VATEntry.SETRANGE("Document Type","Document Type"); VATEntry.SETRANGE("Country/Region Code",CountryCode); // End of the deleted lines.Pakeitimo kodas 1
// Add the following line. FilterVATEntry(VATEntry,"Document Date","Document Type","Document No.",FALSE);Esamas kodas 2
"Document Type"::Invoice: // Delete the following lines. BEGIN PurchInvHeader.RESET; IF PurchInvHeader.GET("Document No.") THEN BEGIN IF PurchInvHeader."Order Address Code" <> '' THEN BEGIN OrderAddress.GET("Vendor No.",PurchInvHeader."Order Address Code"); IF OrderAddress."Country/Region Code" <> CountryCode THEN CurrReport.SKIP; END; PurchInvLine.RESET; PurchInvLine.SETRANGE("Document No.","Document No."); IF PurchInvLine.FINDSET THEN REPEAT IF PurchInvLine."VAT Calculation Type" = PurchInvLine."VAT Calculation Type"::"No Taxable VAT" THEN NoTaxVATFound := TRUE; UNTIL PurchInvLine.NEXT = 0; END ELSE BEGIN IF Vendor."Country/Region Code" = CountryCode THEN FromJournal := TRUE; END; END; "Document Type"::"Credit Memo": BEGIN PurchCrMemoHeader.RESET; IF PurchCrMemoHeader.GET("Document No.") THEN BEGIN IF PurchCrMemoHeader."Order Address Code" <> '' THEN BEGIN OrderAddress.GET("Vendor No.",PurchCrMemoHeader."Order Address Code"); IF OrderAddress."Country/Region Code" <> CountryCode THEN CurrReport.SKIP; END; PurchCrMemoLine.RESET; PurchCrMemoLine.SETRANGE("Document No.","Document No."); IF PurchCrMemoLine.FINDSET THEN REPEAT IF PurchCrMemoLine."VAT Calculation Type" = PurchCrMemoLine."VAT Calculation Type"::"No Taxable VAT" THEN NoTaxVATFound := TRUE; UNTIL PurchCrMemoLine.NEXT = 0; END ELSE BEGIN IF Vendor."Country/Region Code" = CountryCode THEN FromJournal := TRUE; END; END; // End of the deleted lines. END;Pakeitimo kodas 2
"Document Type"::Invoice: // Add the following lines. CheckVendDocTypeInvoice(PurchInvHeader,"Vendor Ledger Entry",Vendor); "Document Type"::"Credit Memo": CheckVendDocTypeCrMemo(PurchCrMemoHeader,"Vendor Ledger Entry",Vendor); // End of the added lines. END;Esamas kodas 3
PurchasesAmt := PurchasesAmt - "Amount (LCY)"; UpdateQuarterAmount(AmountType::Purchase,-"Amount (LCY)","Document Date");3 pakeitimo kodas
PurchasesAmt := PurchasesAmt - "Amount (LCY)"; // Add the following line. VendorMaxAmount := PurchasesAmt; UpdateQuarterAmount(AmountType::Purchase,-"Amount (LCY)","Document Date");Esamas kodas 4
TotalNotIn347Amt := TotalNotIn347Amt + NotIn347Amt + AmtSameVATRegNo; // Delete the following lines. PurchasesAmt := PurchasesAmt - NotIn347Amt + AmtSameVATRegNo; IF PurchasesAmt >= MinAmount THEN BEGIN // End of the deleted lines. IF PostCode347 = ' ' THEN4 pakeitimo kodas
TotalNotIn347Amt := TotalNotIn347Amt + NotIn347Amt + AmtSameVATRegNo; // Add the following lines. PurchasesAmt := PurchasesAmt - NotIn347Amt + AmtSameVATRegNo; IF ABS(PurchasesAmt) >= MinAmount THEN BEGIN // End of the added lines. IF PostCode347 = ' ' THENPakeiskite globalių kintamųjų kodą taip:
Esamas kodasText1100032@1100040 : TextConst 'ENU=The process has been aborted. No file will be generated.;ESP=El proceso se ha cancelado. No se crear ning£n archivo.';Pakeitimo kodas
Text1100032@1100040 : TextConst 'ENU=The process has been aborted. No file will be generated.;ESP=El proceso se ha cancelado. No se crear ning£n archivo.'; // Add the following lines. VendorMaxAmount@1100097 : Decimal; CustomerMaxAmount@1100098 : Decimal; // End of the added lines.Pakeiskite funkcijos "CheckSameVATRegNo" kodą taip:
Esamas kodasVAR // Delete the following lines. VATEntry3@1100000 : Record 254; GLEntry@1100002 : Record 17; GLAccount@1100003 : Record 15; TempVATEntry@1100004 : TEMPORARY Record 254; BEGIN VATEntry3.SETCURRENTKEY(Type,"Country/Region Code","VAT Registration No."); VATEntry3.SETRANGE("Country/Region Code",CountryCode); IF IsCustomer THEN BEGIN VATEntry3.SETRANGE(Type,VATEntry3.Type::Sale); VATEntry3.SETRANGE("VAT Registration No.",Customer."VAT Registration No."); VATEntry3.SETFILTER("Bill-to/Pay-to No.",'<>%1',Customer."No."); END ELSE BEGIN VATEntry3.SETRANGE(Type,VATEntry3.Type::Purchase); VATEntry3.SETRANGE("VAT Registration No.",Vendor."VAT Registration No."); VATEntry3.SETFILTER("Bill-to/Pay-to No.",'<>%1',Vendor."No."); END; VATEntry3.SETRANGE("Document Date",FromDate,ToDate); IF VATEntry3.FINDFIRST THEN REPEAT IF IsCustomer THEN Amt := Amt - VATEntry3.Base - VATEntry3.Amount ELSE Amt := Amt + VATEntry3.Base + VATEntry3.Amount; UpdateQuarterAmount(AmountType::Sales,ABS(VATEntry3.Base) + ABS(VATEntry3.Amount),VATEntry3."Document Date"); TempVATEntry.SETRANGE("Transaction No.",VATEntry3."Transaction No."); IF NOT TempVATEntry.FINDFIRST THEN BEGIN GLEntry.SETRANGE("Transaction No.",VATEntry3."Transaction No."); IF GLEntry.FINDSET THEN REPEAT UpdateNotIn347Amount(GLEntry); UNTIL GLEntry.NEXT = 0; TempVATEntry := VATEntry3; TempVATEntry.INSERT; END; UNTIL VATEntry3.NEXT = 0; // End of the deleted lines. EXIT(Amt);Pakeitimo kodas
VAR // Add the following lines. VATEntry3@1100002 : Record 254; GLEntry@1100003 : Record 17; Customer2@110000022 : Record 18; CustLedgEntry@1100007 : Record 21; SalesInvHeader@1100008 : Record 112; SalesCrMemoHeader@1100011 : Record 114; Vendor2@1100013 : Record 23; VendorLedgerEntry@1100014 : Record 25; PurchInvHeader@1100015 : Record 122; OrderAdress@1100017 : Record 224; PurchCrMemoHeader@1100018 : Record 124; VendorAmount@1100020 : Decimal; CustomerAmount@1100021 : Decimal; BEGIN IF IsCustomer THEN BEGIN Customer2.SETCURRENTKEY("VAT Registration No."); Customer2.SETFILTER("No.",'<>%1',Customer."No."); Customer2.SETRANGE("VAT Registration No.",Customer."VAT Registration No."); IF Customer2.FINDFIRST THEN REPEAT CustomerAmount := 0; CustLedgEntry.SETCURRENTKEY("Customer No.","Document Type"); CustLedgEntry.SETRANGE("Customer No.", Customer2."No."); CustLedgEntry.SETRANGE("Document Date",FromDate,ToDate); CustLedgEntry.SETRANGE("Document Type",CustLedgEntry."Document Type"::Invoice,CustLedgEntry."Document Type"::"Credit Memo"); IF CustLedgEntry.FINDFIRST THEN REPEAT FilterVATEntry(VATEntry3,CustLedgEntry."Document Date",CustLedgEntry."Document Type", CustLedgEntry."Document No.",IsCustomer); IF NOT VATEntry3.FINDFIRST THEN BEGIN CASE CustLedgEntry."Document Type" OF CustLedgEntry."Document Type"::Invoice: CheckCustDocTypeInvoice(SalesInvHeader,CustLedgEntry,Customer2); CustLedgEntry."Document Type"::"Credit Memo" : CheckCustDocTypeCrMemo(SalesCrMemoHeader,CustLedgEntry,Customer2); END; END ELSE CheckVatEntryNotIn347(VATEntry3,GLEntry); IF (VATEntry3."VAT Registration No." <> '') OR NoTaxVATFound OR FromJournal THEN BEGIN CustLedgEntry.CALCFIELDS(CustLedgEntry."Amount (LCY)"); Amt := Amt + CustLedgEntry."Amount (LCY)"; CustomerAmount := CustomerAmount + CustLedgEntry."Amount (LCY)"; UpdateQuarterAmount(AmountType::SameVATNo,CustLedgEntry."Amount (LCY)",CustLedgEntry."Posting Date"); END; UNTIL CustLedgEntry.NEXT = 0; IF CustomerMaxAmount < CustomerAmount THEN BEGIN CustomerMaxAmount := CustomerAmount; Name347 := Customer2.Name; END; UNTIL Customer2.NEXT = 0; Name347 := PADSTR(FormatTextName(Name347),40,' '); END ELSE BEGIN Vendor2.SETCURRENTKEY("VAT Registration No."); Vendor2.SETFILTER("No.",'<>%1',Vendor."No."); Vendor2.SETRANGE("VAT Registration No.",Vendor."VAT Registration No."); IF Vendor2.FINDFIRST THEN REPEAT VendorAmount := 0; VendorLedgerEntry.SETCURRENTKEY("Vendor No.","Document Type"); VendorLedgerEntry.SETRANGE("Vendor No.", Vendor2."No."); VendorLedgerEntry.SETRANGE("Document Date",FromDate,ToDate); VendorLedgerEntry.SETRANGE("Document Type",VendorLedgerEntry."Document Type"::Invoice, VendorLedgerEntry."Document Type"::"Credit Memo"); IF VendorLedgerEntry.FINDFIRST THEN REPEAT FilterVATEntry(VATEntry3,VendorLedgerEntry."Document Date",VendorLedgerEntry."Document Type", VendorLedgerEntry."Document No.",IsCustomer); IF NOT VATEntry3.FINDFIRST THEN BEGIN CASE VendorLedgerEntry."Document Type" OF VendorLedgerEntry."Document Type"::Invoice: CheckVendDocTypeInvoice(PurchInvHeader,VendorLedgerEntry,Vendor2); VendorLedgerEntry."Document Type"::"Credit Memo": CheckVendDocTypeCrMemo(PurchCrMemoHeader,VendorLedgerEntry,Vendor2); END; END ELSE CheckVatEntryNotIn347(VATEntry3,GLEntry); IF (VATEntry3."VAT Registration No." <> '') OR NoTaxVATFound OR FromJournal THEN BEGIN VendorLedgerEntry.CALCFIELDS(VendorLedgerEntry."Amount (LCY)"); Amt := Amt - VendorLedgerEntry."Amount (LCY)"; VendorAmount := VendorAmount - VendorLedgerEntry."Amount (LCY)"; UpdateQuarterAmount(AmountType::SameVATNo,-VendorLedgerEntry."Amount (LCY)",VendorLedgerEntry."Posting Date"); END; UNTIL VendorLedgerEntry.NEXT = 0; IF VendorMaxAmount < VendorAmount THEN BEGIN VendorMaxAmount := VendorAmount; Name347 := Vendor2.Name; END; UNTIL Vendor2.NEXT = 0; Name347 := PADSTR(FormatTextName(Name347),40,' '); END; // End of the added lines. EXIT(Amt);Pakeiskite funkcijos "IdentifyCashPayments" kodą taip:
Esamas kodasTHEN BEGIN // Delete the following lines. IF IsCashAccount(CustLedgerEntry."Bal. Account No.") THEN BEGIN CreateCashTotals(CustLedgerEntry."Entry No.",VATRegistrationNo); END; END ELSE IF ((CustLedgerEntry."Bal. Account No." = '') OR (CustLedgerEntry."Bal. Account Type" <> CustLedgerEntry."Bal. Account Type"::"G/L Account")) THEN BEGIN IF IdentifyCashPaymentsFromGL(CustLedgerEntry) THEN CreateCashTotals(CustLedgerEntry."Entry No.",VATRegistrationNo); // End of the deleted lines. END;Pakeitimo kodas
THEN BEGIN // Add the following lines. IF IsCashAccount(CustLedgerEntry."Bal. Account No.") THEN CreateCashTotals(CustLedgerEntry."Entry No.",VATRegistrationNo); END ELSE IF ((CustLedgerEntry."Bal. Account No." = '') OR (CustLedgerEntry."Bal. Account Type" <> CustLedgerEntry."Bal. Account Type"::"G/L Account")) THEN BEGIN IF IdentifyCashPaymentsFromGL(CustLedgerEntry) THEN CreateCashTotals(CustLedgerEntry."Entry No.",VATRegistrationNo); // End of the added lines. END;Pakeiskite funkcijos CheckVatEntryNotIn347 kodą taip:
Esamas kodasBEGINPakeitimo kodas
// Add the following lines. LOCAL PROCEDURE CheckVatEntryNotIn347@1100098(VATEntry@1100000 : Record 254;GLEntry@1100001 : Record 17); VAR TempVATEntry@1100002 : Record 254; BEGIN REPEAT TempVATEntry.SETRANGE("Transaction No.",VATEntry."Transaction No."); IF NOT TempVATEntry.FINDFIRST THEN BEGIN GLEntry.SETRANGE("Transaction No.",VATEntry."Transaction No."); IF GLEntry.FINDSET THEN REPEAT UpdateNotIn347Amount(GLEntry); UNTIL GLEntry.NEXT = 0; TempVATEntry := VATEntry; TempVATEntry.INSERT; END; UNTIL VATEntry.NEXT = 0; END; LOCAL PROCEDURE FilterVATEntry@1100099(VAR VATEntry@1100000 : Record 254;DocumentDate@1100001 : Date;DocumentType@1100002 : Integer;DocumentNo@1100003 : Code[20];IsCustomer@1100004 : Boolean); BEGIN VATEntry.RESET; IF IsCustomer THEN VATEntry.SETRANGE(Type,VATEntry.Type::Sale) ELSE VATEntry.SETRANGE(Type,VATEntry.Type::Purchase); VATEntry.SETRANGE("Document Date",DocumentDate); VATEntry.SETRANGE("Document Type",DocumentType); VATEntry.SETRANGE("Document No.",DocumentNo); VATEntry.SETRANGE("Country/Region Code",CountryCode); END; LOCAL PROCEDURE CheckCustDocTypeInvoice@1100101(SalesInvHeader@1100000 : Record 112;CustLedgEntry@1100001 : Record 21;Customer@1100002 : Record 18); VAR SalesInvLine@1100003 : Record 113; BEGIN SalesInvHeader.RESET; IF SalesInvHeader.GET(CustLedgEntry."Document No.") THEN BEGIN IF SalesInvHeader."Ship-to Code" <> '' THEN IF SalesInvHeader."Ship-to Country/Region Code" = CountryCode THEN BEGIN SalesInvLine.RESET; SalesInvLine.SETRANGE("Document No.",CustLedgEntry."Document No."); IF SalesInvLine.FINDSET THEN REPEAT IF (SalesInvLine."VAT Calculation Type" = SalesInvLine."VAT Calculation Type"::"No Taxable VAT") AND (Customer."Country/Region Code" = CountryCode) THEN NoTaxVATFound := TRUE; UNTIL SalesInvLine.NEXT = 0; END; END; IF Customer."Country/Region Code" = CountryCode THEN FromJournal := TRUE; END; PROCEDURE CheckCustDocTypeCrMemo@1100102(SalesCrMemoHeader@1100000 : Record 114;CustLedgEntry@1100001 : Record 21;Customer@1100002 : Record 18); VAR SalesCrMemoLine@1100003 : Record 115; BEGIN SalesCrMemoHeader.RESET; IF SalesCrMemoHeader.GET(CustLedgEntry."Document No.") THEN BEGIN IF SalesCrMemoHeader."Ship-to Code" <> '' THEN IF SalesCrMemoHeader."Ship-to Country/Region Code" = CountryCode THEN BEGIN SalesCrMemoLine.RESET; SalesCrMemoLine.SETRANGE("Document No.",CustLedgEntry."Document No."); IF SalesCrMemoLine.FINDSET THEN REPEAT IF (SalesCrMemoLine."VAT Calculation Type" = SalesCrMemoLine."VAT Calculation Type"::"No Taxable VAT") AND (Customer."Country/Region Code" = CountryCode) THEN NoTaxVATFound := TRUE; UNTIL SalesCrMemoLine.NEXT = 0; END; END; IF Customer."Country/Region Code" = CountryCode THEN FromJournal := TRUE; END; PROCEDURE CheckVendDocTypeInvoice@1100103(PurchInvHeader@1100000 : Record 122;VendorLedgerEntry@1100001 : Record 25;Vendor@1100002 : Record 23); VAR PurchInvLine@1100003 : Record 123; BEGIN PurchInvHeader.RESET; IF PurchInvHeader.GET(VendorLedgerEntry."Document No.") THEN BEGIN IF PurchInvHeader."Ship-to Code" <> '' THEN IF PurchInvHeader."Ship-to Country/Region Code" = CountryCode THEN BEGIN PurchInvLine.RESET; PurchInvLine.SETRANGE("Document No.",VendorLedgerEntry."Document No."); IF PurchInvLine.FINDSET THEN REPEAT IF (PurchInvLine."VAT Calculation Type" = PurchInvLine."VAT Calculation Type"::"No Taxable VAT") AND (Vendor."Country/Region Code" = CountryCode) THEN NoTaxVATFound := TRUE; UNTIL PurchInvLine.NEXT = 0; END; END; IF Vendor."Country/Region Code" = CountryCode THEN FromJournal := TRUE; END; PROCEDURE CheckVendDocTypeCrMemo@1100104(PurchCrMemoHeader@1100000 : Record 124;VendorLedgerEntry@1100001 : Record 25;Vendor@1100002 : Record 23); VAR PurchCrMemoLine@1100003 : Record 125; BEGIN PurchCrMemoHeader.RESET; IF PurchCrMemoHeader.GET(VendorLedgerEntry."Document No.") THEN BEGIN IF PurchCrMemoHeader."Ship-to Code" <> '' THEN IF PurchCrMemoHeader."Ship-to Country/Region Code" = CountryCode THEN BEGIN PurchCrMemoLine.RESET; PurchCrMemoLine.SETRANGE("Document No.",VendorLedgerEntry."Document No."); IF PurchCrMemoLine.FINDSET THEN REPEAT IF (PurchCrMemoLine."VAT Calculation Type" = PurchCrMemoLine."VAT Calculation Type"::"No Taxable VAT") AND (Vendor."Country/Region Code" = CountryCode) THEN NoTaxVATFound := TRUE; UNTIL PurchCrMemoLine.NEXT = 0; END; END; IF Vendor."Country/Region Code" = CountryCode THEN FromJournal := TRUE; END; // End of the added lines. BEGIN
Būtinosios sąlygos
Norėdami taikyti šią karštąją pataisą, turite įdiegti vieną iš šių produktų:
- "„Microsoft“ Dynamics NAV 2009 R2" ispanų kalbos versija
- "„Microsoft“ Dynamics NAV 2009" 1 pakeitimų paketo versija ispanų kalba
- "„Microsoft“ Dynamics NAV 5.0 Service Pack 1" versija ispanų kalba
Pašalinimo informacija
Šios karštosios pataisos pašalinti negalite.
Būsena
„„Microsoft““ patvirtino, kad tai yra „„Microsoft““ produktų, išvardytų dalyje „Taikoma“, problema.
Pastaba: tai "SPARČIOJO PUBLIKAVIMO" straipsnis, sukurtas tiesiogiai iš "„Microsoft“" palaikymo organizacijos. Čia pateikta informacija pateikiama tokia, kokia yra, reaguojant į kylančias problemas. Dėl greito jos pateikimo medžiagoje gali būti spausdinimo klaidų ir ji gali būti peržiūrėta bet kuriuo metu be išankstinio įspėjimo. Dėl kitų aplinkybių žr. Naudojimo sąlygas .