Acest articol se aplică la Microsoft Dynamics NAV pentru regiunea Spania (es).
Simptome
Să presupunem că aveți două facturi pentru un distribuitor în versiunea spaniolă de Microsoft Dynamics NAV. Facturați o plată pentru o factură. În această situație, atunci când rulați raportul Vendor-Overdue Plăți (10748), sumele de plată și sumele de plată deschise pentru furnizor sunt amestecate și se afișează incorect în secțiunea "Plăți în afara limitei legale (LYC)".
Această problemă apare în cazul următoarelor produse:
- Versiunea în spaniolă de Microsoft Dynamics NAV 2009 R2
- Versiunea în spaniolă de Microsoft Dynamics NAV 2009 Service Pack 1
- Versiunea în spaniolă de Microsoft Dynamics NAV 5.0 Service Pack 1
Rezolvare
Informații despre remedierea rapidă
O remediere rapidă acceptată este acum disponibilă de la Microsoft. Însă, scopul său este doar să corecteze problema descrisă în acest articol. Aplicați-o doar sistemelor care se confruntă cu această problemă specifică. Această remediere rapidă poate fi testată suplimentar. De aceea, dacă această problemă nu vă afectează grav, vă recomandăm să așteptați următorul pachet Service Pack Microsoft Dynamics NAV 2009 sau versiunea următoare Microsoft Dynamics NAV care conține această remediere rapidă.
Notă În cazuri speciale, costurile implicate de obicei pentru apelurile de asistență pot fi revocate dacă un specialist în asistență tehnică pentru Microsoft Dynamics și produsele asociate stabilește că o anumită actualizare va rezolva problema. Costurile uzuale de suport se vor aplica pentru întrebări suplimentare de suport și pentru probleme ce nu fac obiectul actualizării în chestiune.
Informații despre instalare
Microsoft oferă exemple de programare numai în scop ilustrativ, fără nicio garanție explicită sau implicită. Aceasta include, dar nu se limitează la, garanțiile implicite de vandabilitate sau adecvare pentru un anumit scop. Acest articol presupune că sunteți familiarizat cu limbajul de programare prezentat și cu instrumentele utilizate pentru a crea și a depana proceduri. Inginerii de asistență Microsoft pot ajuta la explicarea funcționalității unei anumite proceduri, însă nu vor modifica aceste exemple pentru a furniza funcționalitate suplimentară și nu vor construi proceduri pentru a răspunde cerințelor dvs. specifice.
Notă Înainte de a instala această remediere rapidă, verificați dacă toți utilizatorii clientului Microsoft Navision sunt deconectați de la sistem. Printre aceștia se numără utilizatorii clienților Microsoft Navision Application Services (NAS). Ar trebui să fiți singurul utilizator client conectat atunci când implementați această remediere rapidă.
Pentru a implementa această remediere rapidă, trebuie să aveți o licență de dezvoltator.
Recomandăm ca contului de utilizator din fereastra Conectări Windows sau din fereastra Conectări bază de date să primească ID-ul de rol "SUPER". În cazul în care contului de utilizator nu i se poate atribui ID-ul de rol "SUPER", trebuie să verificați dacă acel cont de utilizator are următoarele permisiuni:
- Permisiunea Modificare pentru obiectul pe care îl veți modifica.
- Permisiunea de executare pentru obiectul cu ID obiect de sistem 5210 și pentru obiectul ID obiect de sistem 9015.
Notă: nu trebuie să aveți drepturi asupra depozitelor de date decât dacă trebuie să efectuați repararea datelor.
Modificări de cod
Notă: testați întotdeauna remedierile de cod într-un mediu controlat înainte de a aplica remedierile la computerele de producție.
Pentru a rezolva problema, urmați acești pași:
Modificați codul din elementul de date numărul 1 din raportul Vânzător - Plăți restante (10748), după cum urmează:
Cod existent 1... } { PROPERTIES { SectionType=GroupFooter; SectionWidth=17850; // Delete the following line. SectionHeight=2538; OnPreSection=BEGIN CurrReport.SHOWOUTPUT(VendTotalAmount <> 0); END; } ...Cod de înlocuire 1
... } { PROPERTIES { SectionType=GroupFooter; SectionWidth=17850; // Add the following line. SectionHeight=2961; OnPreSection=BEGIN CurrReport.SHOWOUTPUT(VendTotalAmount <> 0); END; } ...Cod existent 2
... DataSetFieldName=Vend_WeightedExceededAmount } { 1170000000;TextBox;13800;0 ;450 ;423 ;Visible=No; ForeColor=65535; SourceExpr=[VendWeightedExceededAmount ]; DataSetFieldName=WeightedExceededAmount1 } } } { PROPERTIES { SectionType=Footer; ...Codul de înlocuire 2
... DataSetFieldName=Vend_WeightedExceededAmount } { 1170000000;TextBox;13800;0 ;450 ;423 ;Visible=No; ForeColor=65535; SourceExpr=[VendWeightedExceededAmount ]; DataSetFieldName=WeightedExceededAmount1 } // Add the following lines. { 1000000000;Label ;5250 ;2115 ;4950 ;423 ;ParentControl=1000000001; DataSetFieldName=ABS_OpenTotalPaymentOutsideDueDate_Caption } { 1000000001;TextBox;10350;2115 ;1800 ;423 ;CaptionML=[ENU=Open Payments outside the legal limit (LCY); ESP=Pagos fuera del l¡mite legal (DL):]; SourceExpr=ABS(OpenVendPaymentOutsideDueDate); DataSetFieldName=OpenVend_PaymentOutsideDueDate } { 1000000004;TextBox;12600;2115 ;1800 ;423 ;SourceExpr=FormatRatio(OpenVendPaymentOutsideDueDate,VendTotalAmount); DataSetFieldName=OpenVend_PaymentOutsideDueDateRatio } // End of the lines. } } { PROPERTIES { SectionType=Footer; ...Cod existent 3
... } { PROPERTIES { SectionType=Footer; SectionWidth=17850; // Delete the following line. SectionHeight=2115; OnPreSection=BEGIN CurrReport.SHOWOUTPUT(TotalAmount <> 0); END; } ...Codul de înlocuire 3
... } { PROPERTIES { SectionType=Footer; SectionWidth=17850; // Add the following line. SectionHeight=2538; OnPreSection=BEGIN CurrReport.SHOWOUTPUT(TotalAmount <> 0); END; } ...Cod existent 4
... DataSetFieldName=Total_PaymentOutsideDueDateRatio } { 1100057;TextBox ;10350;846 ;1800 ;423 ;CaptionML=[ENU=Weighted average term exceeded:; ESP=Plazo medio ponderado superado:]; SourceExpr=TotalWeightedExceededAmount / ABS(TotalAmount); DataSetFieldName=Total_WeightedExceededAmount } } } } } { PROPERTIES ...Codul de înlocuire 4
... DataSetFieldName=Total_PaymentOutsideDueDateRatio } { 1100057;TextBox ;10350;846 ;1800 ;423 ;CaptionML=[ENU=Weighted average term exceeded:; ESP=Plazo medio ponderado superado:]; SourceExpr=TotalWeightedExceededAmount / ABS(TotalAmount); DataSetFieldName=Total_WeightedExceededAmount } // Add the following lines. { 1000000002;Label ;5250 ;2115 ;4950 ;423 ;ParentControl=1000000003; DataSetFieldName=ABS_OpenTotalPaymentOutsideDueDate__Control1100045Caption } { 1000000003;TextBox;10350;2115 ;1800 ;423 ;CaptionML=[ENU=Open Payments outside the legal limit (LCY); ESP=Pagos fuera del l¡mite legal (DL):]; SourceExpr=ABS(TotalOpenPaymentOutsideDueDate); DataSetFieldName=OpenTotal_PaymentOutsideDueDate } { 1000000005;TextBox;12600;2115 ;1800 ;423 ;SourceExpr=FormatRatio(TotalOpenPaymentOutsideDueDate,TotalAmount); DataSetFieldName=OpenTotal_PaymentOutsideDueDateRatio } // End of the lines. } } } } { PROPERTIES ...Modificați codul din elementul de date numărul 3 din raportul Furnizor - Plăți restante (10748), după cum urmează:
Cod existent 1... IF AppldVendLedgEntryTmp.NEXT = 0 THEN CurrReport.BREAK; IF AppldVendLedgEntryTmp."Posting Date" > AppldVendLedgEntryTmp."Initial Entry Due Date" THEN BEGIN DaysOverdue := AppldVendLedgEntryTmp."Posting Date" - AppldVendLedgEntryTmp."Initial Entry Due Date"; // Delete the following lines. VendPaymentOutsideDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; TotalPaymentOutsideDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; // End of the lines. END ELSE BEGIN DaysOverdue := 0; VendPaymentWithinDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; TotalPaymentWithinDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; END; ...Cod de înlocuire 1
... IF AppldVendLedgEntryTmp.NEXT = 0 THEN CurrReport.BREAK; IF AppldVendLedgEntryTmp."Posting Date" > AppldVendLedgEntryTmp."Initial Entry Due Date" THEN BEGIN DaysOverdue := AppldVendLedgEntryTmp."Posting Date" - AppldVendLedgEntryTmp."Initial Entry Due Date"; // Add the following lines. IF AppldVendLedgEntryTmp."Applied Vend. Ledger Entry No." = 0 THEN BEGIN OpenVendPaymentOutsideDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; TotalOpenPaymentOutsideDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; END ELSE BEGIN VendPaymentOutsideDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; TotalPaymentOutsideDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; END; // End of the lines. END ELSE BEGIN DaysOverdue := 0; VendPaymentWithinDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; TotalPaymentWithinDueDate += AppldVendLedgEntryTmp."Amount (LCY)"; END; ...Cod existent 2
... IF AppldVendLedgEntryTmp."Entry Type" = AppldVendLedgEntryTmp."Entry Type"::"Initial Entry" THEN AppldVendLedgEntryTmp."Posting Date" := 0D; VendDaysOverdue += DaysOverdue; VendWeightedExceededAmount += DaysOverdue * ABS(AppldVendLedgEntryTmp."Amount (LCY)"); // Delete the following lines. VendTotalAmount := VendPaymentOutsideDueDate + VendPaymentWithinDueDate; TotalDaysOverdue += DaysOverdue; TotalWeightedExceededAmount += DaysOverdue * ABS(AppldVendLedgEntryTmp."Amount (LCY)"); TotalAmount := TotalPaymentOutsideDueDate + TotalPaymentWithinDueDate; // End of the lines. END; } SECTIONS { ...Codul de înlocuire 2
... IF AppldVendLedgEntryTmp."Entry Type" = AppldVendLedgEntryTmp."Entry Type"::"Initial Entry" THEN AppldVendLedgEntryTmp."Posting Date" := 0D; VendDaysOverdue += DaysOverdue; VendWeightedExceededAmount += DaysOverdue * ABS(AppldVendLedgEntryTmp."Amount (LCY)"); // Add the following lines. VendTotalAmount := VendPaymentOutsideDueDate + VendPaymentWithinDueDate + OpenVendPaymentOutsideDueDate; TotalDaysOverdue += DaysOverdue; TotalWeightedExceededAmount += DaysOverdue * ABS(AppldVendLedgEntryTmp."Amount (LCY)"); TotalAmount := TotalPaymentOutsideDueDate + TotalPaymentWithinDueDate+TotalOpenPaymentOutsideDueDate; // End of the lines. END; } SECTIONS { ...Modificați codul în Variabilele globale din raportul Furnizor - Plăți întârziate (10748) după cum urmează:
Cod existent... VendPaymentWithinDueDate@1100016 : Decimal; VendDaysOverdue@1100017 : Decimal; TotalDaysOverdue@1100018 : Decimal; TotalWeightedExceededAmount@1100019 : Decimal; ShowPayments@1100012 : 'Overdue,Legally Overdue,All'; LOCAL PROCEDURE FindAppliedPayments@1210013(VendLedgEntryNo@1210000 : Integer); VAR DtldVendLedgEntry@1210001 : Record 380; InvVendLedgEntry@1100000 : Record 25; ...Codul de înlocuire
... VendPaymentWithinDueDate@1100016 : Decimal; VendDaysOverdue@1100017 : Decimal; TotalDaysOverdue@1100018 : Decimal; TotalWeightedExceededAmount@1100019 : Decimal; ShowPayments@1100012 : 'Overdue,Legally Overdue,All'; // Add the following lines. OpenVendPaymentOutsideDueDate@1000000000 : Decimal; TotalOpenPaymentOutsideDueDate@1000000001 : Decimal; // End of the lines. LOCAL PROCEDURE FindAppliedPayments@1210013(VendLedgEntryNo@1210000 : Integer); VAR DtldVendLedgEntry@1210001 : Record 380; InvVendLedgEntry@1100000 : Record 25; ...Modificați codul din funcția ClearVendAmount din raportul Vendor - Overdue Plăți (10748), după cum urmează:
Cod existent... VendTotalAmount := 0; VendDaysOverdue := 0; VendWeightedExceededAmount := 0; VendPaymentOutsideDueDate := 0; VendPaymentWithinDueDate := 0; END; BEGIN END. } ...Codul de înlocuire
... VendTotalAmount := 0; VendDaysOverdue := 0; VendWeightedExceededAmount := 0; VendPaymentOutsideDueDate := 0; VendPaymentWithinDueDate := 0; // Add the following line. OpenVendPaymentOutsideDueDate := 0; END; BEGIN END. } ...
Cerințe preliminare
Trebuie să aveți instalat unul dintre următoarele produse pentru a aplica această remediere rapidă:
- Versiunea în spaniolă de Microsoft Dynamics NAV 2009 R2
- Versiunea în spaniolă de Microsoft Dynamics NAV 2009 Service Pack 1
- Versiunea în spaniolă de Microsoft Dynamics NAV 5.0 Service Pack 1
Eliminarea informațiilor
Nu puteți elimina această remediere rapidă.
Stare
Microsoft a confirmat că aceasta este o problemă în produsele Microsoft care sunt listate în secțiunea „Se aplică la”.
Notă: Acesta este un articol "PUBLICARE RAPIDĂ" creat direct din cadrul organizației de asistență Microsoft. Informațiile din acest document sunt furnizate ca atare ca răspuns la problemele apărute. Ca urmare a vitezei de punere la dispoziție, materialele pot include erori tipografice și pot fi revizuite în orice moment fără preaviz. Consultați Condițiile de utilizare pentru alte considerente.