Šis straipsnis taikomas "„Microsoft“ Dynamics NAV", skirtai italų (IT) kalbos lokalei.
Požymiai
Tarkime, kad naudojate grąžinimo pažymoje pritaikytą SF itališkoje "„Microsoft“ Dynamics NAV 2009" 1 pakeitimų paketo (SP1) versijoje. Kai vykdote klientų sąskaitų sąrašo ataskaitą (12117) ir tiekėjo kliento sąskaitų sąskaitų sąrašo ataskaitą (12116), ataskaitose du netikėtai du kartus spausdinamos grąžinimo pažymos, pritaikytos SF.
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ą, bet jie nemodifikuos šių pavyzdžių, kad suteiktų papildomų funkcinių galimybių, ir nesukurs procedūrų, atitinkančių jūsų konkrečius reikalavimus.
Pastaba Prieš diegdami šią karštąją pataisą patikrinkite, ar visi "„Microsoft“ Navision" kliento vartotojai yra atsijungę nuo sistemos. Tai apima "„Microsoft“ Navision" programų tarnybų (NAS) kliento vartotojus. 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ą, atlikite šiuos veiksmus:
Pakeiskite duomenų elemento Nr. 2 kodą ataskaitoje Tiekėjo sąskaitų sąskaitų sąrašas (12116) taip:
Esamas kodas... END; OnAfterGetRecord=BEGIN // Delete the following lines. IF (("Document Type" = "Document Type"::Payment) OR ("Document Type" = "Document Type"::" ")) AND (Open = FALSE) THEN // End of the lines. CurrReport.SKIP; CALCFIELDS("Amount (LCY)","Remaining Amt. (LCY)"); ...Pakeitimo kodas
... END; OnAfterGetRecord=BEGIN // Add the following lines. IF (("Document Type" = "Document Type"::Payment) OR ("Document Type" = "Document Type"::" ") OR ("Document Type" = "Document Type"::"Credit Memo")) AND NOT Open THEN // End of the lines. CurrReport.SKIP; CALCFIELDS("Amount (LCY)","Remaining Amt. (LCY)"); ...Pakeiskite tiekėjo sąskaitos sąskaitų sąrašo ataskaitos (12116) duomenų elemento Nr. 2 sekcijų kodą taip:
Esamas kodas... DataSetFieldName=VendLedgEntry1__External_Document_No___Control1130023 } { 1130024;TextBox ;1950 ;423 ;1350 ;423 ;SourceExpr="Document Type"; DataSetFieldName=VendLedgEntry1__Document_Type__Control1130024 } } } { PROPERTIES ...Pakeitimo kodas
... DataSetFieldName=VendLedgEntry1__External_Document_No___Control1130023 } { 1130024;TextBox ;1950 ;423 ;1350 ;423 ;SourceExpr="Document Type"; DataSetFieldName=VendLedgEntry1__Document_Type__Control1130024 } // Add the following lines. { 1130082;TextBox ;27600;0 ;150 ;423 ;Visible=No; ForeColor=65535; SourceExpr=FORMAT("Document Type",0,2); DataSetFieldName=VendLedgEntry1_DocumentType } // End of the lines. } } { PROPERTIES ...Pakeiskite tiekėjo kliento sąskaitų sąrašo ataskaitos (12116) duomenų elemento numerio 4 sekcijų kodą taip:
Esamas kodas 1... SectionWidth=27750; SectionHeight=846; OnPreSection=BEGIN // Delete the following lines. IF (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::Payment) OR (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::" ") THEN // End of the lines. CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); ...Pakeitimo kodas 1
... SectionWidth=27750; SectionHeight=846; OnPreSection=BEGIN // Add the following lines. IF (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::Payment) OR (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::"Credit Memo") OR (VendLedgEntry1."Document Type" = VendLedgEntry1."Document Type"::" ") OR ("Unapplied by Entry No." <> 0) THEN // End of the lines. CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); ...Esamas kodas 2
... CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); // Delete the following lines. IF ("Unapplied by Entry No." <> 0) THEN CurrReport.SHOWOUTPUT(FALSE); // End of the lines. END; } ...Pakeitimo kodas 2
... CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); END; } ...Pakeiskite tiekėjo sąskaitos sąskaitų sąrašo ataskaitos (12116) dokumentų kodą taip:
Esamas kodas 1... </TableCell> </TableCells> <Visibility> // Delete the following line. <Hidden>=IIF((Fields!Detailed_Vendor_Ledg__Entry_Entry_No_.Value=0 or Fields!Detailed_Vendor_Ledg__Entry__Unapplied_by_Entry_No__.Value<>0),TRUE,FALSE)</Hidden> // End of the line. </Visibility> </TableRow> <TableRow> ...Pakeitimo kodas 1
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!Detailed_Vendor_Ledg__Entry_Entry_No_.Value=0 OR Fields!Detailed_Vendor_Ledg__Entry__Unapplied_by_Entry_No__.Value<>0 OR Fields!VendLedgEntry1_DocumentType.Value="1" OR Fields!VendLedgEntry1_DocumentType.Value="3" OR Fields!VendLedgEntry1_DocumentType.Value="0", TRUE,FALSE)</Hidden> // End of the lines. </Visibility> </TableRow> <TableRow> ...Esamas kodas 2
... </TableCell> </TableCells> <Visibility> // Delete the following lines. <Hidden>=IIF(Fields!VendLedgEntry1__Document_Type_.Value="Invoice" OR Fields!VendLedgEntry1__Document_Type_.Value="Finance Charge Memo" OR Fields!VendLedgEntry1__Document_Type_.Value="Reminder" OR Fields!VendLedgEntry1__Document_Type_.Value="Credit Memo", // End of the lines. FALSE,TRUE)</Hidden> </Visibility> </TableRow> ...Pakeitimo kodas 2
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!VendLedgEntry1_DocumentType.Value="2" OR Fields!VendLedgEntry1_DocumentType.Value="4" OR Fields!VendLedgEntry1_DocumentType.Value="5" OR Fields!VendLedgEntry1_DocumentType.Value="3", // End of the lines. FALSE,TRUE)</Hidden> </Visibility> </TableRow> ...Esamas kodas 3
... </TableCell> </TableCells> <Visibility> // Delete the following lines. <Hidden>=IIF(Fields!VendLedgEntry1__Document_Type_.Value<>"Invoice" AND Fields!VendLedgEntry1__Document_Type_.Value<>"Finance Charge Memo" AND Fields!VendLedgEntry1__Document_Type_.Value<>"Reminder" AND Fields!VendLedgEntry1__Document_Type_.Value<>"Credit Memo" AND // End of the lines. Fields!VendLedgEntry1__Remaining_Amt___LCY__.Value<>0, FALSE,TRUE)</Hidden> </Visibility> ...3 pakeitimo kodas
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!VendLedgEntry1_DocumentType.Value<>"2" AND Fields!VendLedgEntry1_DocumentType.Value<>"4" AND Fields!VendLedgEntry1_DocumentType.Value<>"5" AND Fields!VendLedgEntry1_DocumentType.Value<>"3" AND // End of the lines. Fields!VendLedgEntry1__Remaining_Amt___LCY__.Value<>0, FALSE,TRUE)</Hidden> </Visibility> ...Esamas kodas 4
... <Field Name="VendLedgEntry1__Amount__LCY___Control1130017Format"> <DataField>VendLedgEntry1__Amount__LCY___Control1130017Format</DataField> </Field> <Field Name="Vendor_BalanceCaption"> <DataField>Vendor_BalanceCaption</DataField> </Field> ...4 pakeitimo kodas
... <Field Name="VendLedgEntry1__Amount__LCY___Control1130017Format"> <DataField>VendLedgEntry1__Amount__LCY___Control1130017Format</DataField> </Field> // Add the following lines. <Field Name="VendLedgEntry1_DocumentType"> <DataField>VendLedgEntry1_DocumentType</DataField> </Field> // End of the lines. <Field Name="Vendor_BalanceCaption"> <DataField>Vendor_BalanceCaption</DataField> </Field> ...Pakeiskite duomenų elemento Nr. 2 kodą klientų sąskaitų sąrašo ataskaitoje (12117) taip pat:
Esamas kodas... END; OnAfterGetRecord=BEGIN // Delete the following lines. IF (("Document Type" = "Document Type"::Payment) OR ("Document Type" = "Document Type"::" ")) AND (Open = FALSE) THEN // End of the lines. CurrReport.SKIP; ...Pakeitimo kodas
... END; OnAfterGetRecord=BEGIN // Add the following lines. IF (("Document Type" = "Document Type"::Payment) OR ("Document Type" = "Document Type"::" ") OR ("Document Type" = "Document Type"::"Credit Memo")) AND NOT Open THEN // End of the lines. CurrReport.SKIP; CALCFIELDS("Amount (LCY)","Remaining Amt. (LCY)"); ...Pakeiskite Kliento sąskaitų sąrašo ataskaitos duomenų elemento Nr. 2 sekcijų kodą (12117) taip:
Esamas kodas... ForeColor=65535; SourceExpr=CustLedgEntry1."Bank Receipt"; DataSetFieldName=CustLedgEntry1_CustLedgEntry1__Bank_Receipt_ } } } { PROPERTIES ...Pakeitimo kodas
... ForeColor=65535; SourceExpr=CustLedgEntry1."Bank Receipt"; DataSetFieldName=CustLedgEntry1_CustLedgEntry1__Bank_Receipt_ } // Add the following lines. { 1130008;TextBox ;24150;423 ;150 ;423 ;Visible=No; ForeColor=65535; SourceExpr=FORMAT("Document Type",0,2); DataSetFieldName=CustLedgEntry1_DocumentType } // End of the lines. } } { PROPERTIES ...Pakeiskite Kliento sąskaitų sąrašo ataskaitos (12117) duomenų elemento Nr. 4 sekcijos kodą (12117) taip:
Esamas kodas 1... SectionWidth=24450; SectionHeight=846; OnPreSection=BEGIN // Delete the following lines. IF (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::Payment) OR (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::" ") THEN // End of the lines. CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); ...Pakeitimo kodas 1
... SectionWidth=24450; SectionHeight=846; OnPreSection=BEGIN // Add the following lines. IF (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::Payment) OR (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::"Credit Memo") OR (CustLedgEntry1."Document Type" = CustLedgEntry1."Document Type"::" ") OR ("Unapplied by Entry No." <> 0) THEN // End of the lines. CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); ...Esamas kodas 2
... CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); // Delete the following lines. IF ("Unapplied by Entry No." <> 0) THEN CurrReport.SHOWOUTPUT(FALSE); // End of the lines. END; } ...Pakeitimo kodas 2
... CurrReport.SHOWOUTPUT(FALSE) ELSE CurrReport.SHOWOUTPUT(TRUE); END; } ...Pakeiskite Kliento sąskaitų sąrašo ataskaitos dokumentų kodą (12117) taip:
Esamas kodas 1... </TableCell> </TableCells> <Visibility> // Delete the following line. <Hidden>=IIF(Fields!Detailed_Cust__Ledg__Entry_Entry_No_.Value=0,TRUE,FALSE)</Hidden> // End of the line. </Visibility> </TableRow> <TableRow> ...Pakeitimo kodas 1
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!Detailed_Cust__Ledg__Entry_Entry_No_.Value=0 OR Fields!CustLedgEntry1_DocumentType.Value="0" OR Fields!CustLedgEntry1_DocumentType.Value="1" OR Fields!CustLedgEntry1_DocumentType.Value="3", TRUE,FALSE)</Hidden> // End of the lines. </Visibility> </TableRow> <TableRow> ...Esamas kodas 2
... </TableCell> </TableCells> <Visibility> // Delete the following lines. <Hidden>=IIF(Fields!CustLedgEntry1__Document_Type_.Value="Invoice" OR Fields!CustLedgEntry1__Document_Type_.Value="Finance Charge Memo" OR Fields!CustLedgEntry1__Document_Type_.Value="Reminder" OR Fields!CustLedgEntry1__Document_Type_.Value="Credit Memo", // End of the lines. FALSE,TRUE)</Hidden> </Visibility> </TableRow> ...Pakeitimo kodas 2
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!CustLedgEntry1_DocumentType.Value="2" OR Fields!CustLedgEntry1_DocumentType.Value="4" OR Fields!CustLedgEntry1_DocumentType.Value="5" OR Fields!CustLedgEntry1_DocumentType.Value="3", // End of the lines. FALSE,TRUE)</Hidden> </Visibility> </TableRow> ...Esamas kodas 3
... </TableCell> </TableCells> <Visibility> // Delete the following lines. <Hidden>=IIF(Fields!CustLedgEntry1__Document_Type_.Value<>"Invoice" AND Fields!CustLedgEntry1__Document_Type_.Value<>"Finance Charge Memo" AND Fields!CustLedgEntry1__Document_Type_.Value<>"Reminder" AND Fields!CustLedgEntry1__Document_Type_.Value<>"Credit Memo" AND // End of the lines. Fields!CustLedgEntry1__Remaining_Amt___LCY__.Value<>0 AND Fields!CustLedgEntry1_CustLedgEntry1__Bank_Receipt_.Value=FALSE, FALSE,TRUE)</Hidden> ...3 pakeitimo kodas
... </TableCell> </TableCells> <Visibility> // Add the following lines. <Hidden>=IIF(Fields!CustLedgEntry1_DocumentType.Value<>"2" AND Fields!CustLedgEntry1_DocumentType.Value<>"4" AND Fields!CustLedgEntry1_DocumentType.Value<>"5" AND Fields!CustLedgEntry1_DocumentType.Value<>"3" AND // End of the lines. Fields!CustLedgEntry1__Remaining_Amt___LCY__.Value<>0 AND Fields!CustLedgEntry1_CustLedgEntry1__Bank_Receipt_.Value=FALSE, FALSE,TRUE)</Hidden> ...Esamas kodas 4
... <Field Name="CustLedgEntry1_CustLedgEntry1__Bank_Receipt_"> <DataField>CustLedgEntry1_CustLedgEntry1__Bank_Receipt_</DataField> </Field> <Field Name="Customer_BalanceCaption"> <DataField>Customer_BalanceCaption</DataField> </Field> ..4 pakeitimo kodas
... <Field Name="CustLedgEntry1_CustLedgEntry1__Bank_Receipt_"> <DataField>CustLedgEntry1_CustLedgEntry1__Bank_Receipt_</DataField> </Field> // Add the following lines. <Field Name="CustLedgEntry1_DocumentType"> <DataField>CustLedgEntry1_DocumentType</DataField> </Field> // End of the lines. <Field Name="Customer_BalanceCaption"> <DataField>Customer_BalanceCaption</DataField> </Field> ...
Būtinosios sąlygos
Norėdami taikyti šią karštąją pataisą, turite įdiegti itališką "„Microsoft“ Dynamics NAV 2009" 1 pakeitimų paketo versiją.
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 .