รายการที่ลงรายการบัญชีไม่ถูกต้องในตารางรายการการย้อนกลับ (179) เมื่อกลับรายการการชำระเงินที่ยังไม่ได้ใช้ใน Microsoft Dynamics NAV 2009 รุ่นภาษาอิตาลี ปัญหานี้ยังคงเกิดขึ้นหลังจากใช้โปรแกรมแก้ไขด่วน2802054 ทำตามขั้นตอนต่าง ๆ ในส่วนของการเปลี่ยนแปลงรหัสเพื่อแก้ไขปัญหานี้ ปัญหานี้เกิดขึ้นในผลิตภัณฑ์ต่อไปนี้:
-
Microsoft Dynamics NAV 2009 R2 รุ่นภาษาอิตาลี
-
รุ่นภาษาอิตาลีของ Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
การแก้ปัญหา
ข้อมูลโปรแกรมแก้ไขด่วน
โปรแกรมแก้ไขด่วนจะพร้อมใช้งานได้ในขณะนี้จาก Microsoft อย่างไรก็ตาม มีเป้าหมายเพียงเพื่อการแก้ไขปัญหาที่อธิบายไว้ในบทความนี้ นำวิธีนี้ไปใช้กับระบบที่ประสบกับปัญหาที่เฉพาะเจาะจงเท่านั้น โปรแกรมแก้ไขด่วนนี้อาจได้รับการทดสอบเพิ่มเติม ดังนั้น ถ้าคุณจะไม่รุนแรงได้รับผลกระทบจากปัญหานี้ เราขอแนะนำให้ คุณรอ service pack ถัดไปของ Microsoft Dynamics NAV 2009 หรือเวอร์ชันถัดไป Microsoft Dynamics NAV ที่ประกอบด้วยโปรแกรมแก้ไขด่วนนี้หมายเหตุ ในกรณีพิเศษ ค่าธรรมเนียมค่าใช้จ่ายสำหรับการสนับสนุนโทรศัพท์อาจถูกยกเลิกถ้า Technical Support Professional สำหรับ Microsoft Dynamics และผลิตภัณฑ์ที่เกี่ยวข้องตรวจพบว่าการปรับปรุงเฉพาะจะแก้ปัญหาของคุณ ค่าใช้จ่ายในการสนับสนุนตามปกติจะใช้กับคำถามและปัญหาในการสนับสนุนเพิ่มเติมซึ่งไม่สอดคล้องตามเกณฑ์สำหรับโปรแกรมปรับปรุงเฉพาะที่เกี่ยวข้อง
ข้อมูลการติดตั้ง
Microsoft ให้ตัวอย่างการเขียนโปรแกรมไว้สำหรับประกอบการอธิบายเท่านั้นโดยไม่มีการรับประกันไม่ว่าจะโดยชัดแจ้งหรือโดยนัย กรณีนี้รวมถึงแต่มิได้จำกัดเพียงแค่การการรับประกันโดยนัยเกี่ยวกับการจำหน่ายเป็นสินค้าหรือความเหมาะสำหรับวัตถุประสงค์เฉพาะ บทความนี้ตั้งสมมติฐานว่าคุณมีความคุ้นเคยกับภาษาการเขียนโปรแกรมที่กำลังแสดงและคุ้นเคยกับเครื่องมือที่ใช้ใน การสร้างและแก้จุดบกพร่องของขั้นตอนการดำเนินการ วิศวกรฝ่ายสนับสนุนของ Microsoft สามารถช่วยอธิบายเกี่ยวกับหน้าที่การใช้งานของกระบวนการเฉพาะ อย่างไรก็ตาม จะไม่แก้ไขตัวอย่างเหล่านี้เพื่อเพิ่มฟังก์ชัน หรือสร้างขั้นตอนเพื่อตอบสนองความต้องการเฉพาะของคุณหมายเหตุ ก่อนที่คุณติดตั้งโปรแกรมแก้ไขด่วนนี้ โปรดตรวจสอบว่า ผู้ใช้ไคลเอนต์ของ Microsoft Dynamics NAV ทั้งหมดเข้าสู่ระบบออกจากระบบ ข้อมูลนี้รวมถึงบริการ Microsoft Dynamics NAV แอพพลิเคชันเซิร์ฟเวอร์ (NAS) คุณควรไคลเอ็นต์เฉพาะผู้ใช้ที่เข้าสู่ระบบเมื่อคุณใช้โปรแกรมแก้ไขด่วนนี้เมื่อต้องการใช้โปรแกรมแก้ไขด่วนนี้ คุณต้องมีสิทธิ์การใช้งานสำหรับนักพัฒนาเราขอแนะนำว่า บัญชีผู้ใช้ ในหน้าต่างล็อกอินของ Windows หรือ ในหน้าต่างล็อกอินฐานข้อมูลสามารถกำหนดรหัสการเข้าถึงข้อมูล "ขั้นสูง" ถ้าบัญชีผู้ใช้ไม่สามารถกำหนดรหัสการบทบาท "SUPER" คุณต้องตรวจสอบว่า บัญชีผู้ใช้มีสิทธิ์ต่อไปนี้:
-
สิทธิ์การปรับเปลี่ยนสำหรับออปเจ็กต์ที่คุณจะสามารถเปลี่ยน
-
สิทธิ์ในการดำเนินการ สำหรับออบเจ็กต์5210 รหัสวัตถุของระบบและระบบ 9015 ID ของวัตถุวัตถุ
หมายเหตุ คุณไม่จำเป็นต้องมีสิทธิ์ไปยังร้านค้าข้อมูลยกเว้นว่าคุณจำเป็นต้องซ่อมแซมข้อมูล
การเปลี่ยนแปลงรหัส
หมายเหตุ เสมอทดสอบรหัสแก้ไขในสภาพแวดล้อมการควบคุมก่อนที่คุณนำไปใช้แก้ไขปัญหากับคอมพิวเตอร์ของคุณผลิตเมื่อต้องการแก้ไขปัญหานี้ ให้ทำตามขั้นตอนเหล่านี้:
-
เปลี่ยนแปลงรหัสนี้ในตัวแปรส่วนกลางในตารางรายการการย้อนกลับ (179) เป็นดังนี้:รหัสที่มีอยู่
...PostApplied@1029 : Boolean; Text012@1028 : TextConst 'ENU=You cannot reverse register No. %1 because it contains customer or vendor ledger entries that have been posted and applied in the same transaction.\\You must reverse each transaction in register No. %1 separately.;ITA=Impossibile stornare il registro Nr. %1 perch‚ contiene movimenti contabili clienti o fornitori che sono stati registrati e collegati nella stessa transazione.\\Ô necessario stornare separatamente ogni transazione nel registro Nr. %1.'; PROCEDURE ReverseTransaction@8(TransactionNo@1000 : Integer);...
รหัสแทน
...PostApplied@1029 : Boolean; Text012@1028 : TextConst 'ENU=You cannot reverse register No. %1 because it contains customer or vendor ledger entries that have been posted and applied in the same transaction.\\You must reverse each transaction in register No. %1 separately.;ITA=Impossibile stornare il registro Nr. %1 perch‚ contiene movimenti contabili clienti o fornitori che sono stati registrati e collegati nella stessa transazione.\\Ô necessario stornare separatamente ogni transazione nel registro Nr. %1.';// Add the following line. Text013@1039 : TextConst 'ENU=You cannot reverse %1 No. %2 because the entry has an associated Realized Gain/Loss entry.'; PROCEDURE ReverseTransaction@8(TransactionNo@1000 : Integer);...
-
เปลี่ยนแปลงรหัสนี้ในฟังก์ชันInsertReversalEntryในตารางรายการการย้อนกลับ (179) เป็นดังนี้:รหัสที่อยู่ 1
...DtldCustLedgEntry.SETFILTER( DtldCustLedgEntry."Entry Type",'<>%1',DtldCustLedgEntry."Entry Type"::"Initial Entry");// Delete the following lines. IF DtldCustLedgEntry.FIND('-') THEN BEGIN IF RevType = RevType::Register THEN ERROR(Text012,Number); CLEAR(DtldCustLedgEntry); DtldCustLedgEntry.SETCURRENTKEY("Cust. Ledger Entry No."); DtldCustLedgEntry.SETRANGE("Cust. Ledger Entry No.",CustLedgEntry."Entry No."); DtldCustLedgEntry.SETRANGE(Unapplied,TRUE); IF DtldCustLedgEntry.FIND('-') THEN BEGIN REPEAT TempRevertTransactionNo.Number := DtldCustLedgEntry."Transaction No."; IF TempRevertTransactionNo.INSERT THEN; UNTIL DtldCustLedgEntry.NEXT = 0; END; END;// End of the deleted lines. UNTIL CustLedgEntry.NEXT = 0;...
รหัสแทนที่ 1
...DtldCustLedgEntry.SETFILTER( DtldCustLedgEntry."Entry Type",'<>%1',DtldCustLedgEntry."Entry Type"::"Initial Entry");// Add the following lines. IF NOT DtldCustLedgEntry.ISEMPTY THEN IF RevType = RevType::Register THEN ERROR(Text012,Number); CheckDtldCustLedgEntry(CustLedgEntry);// End of the added lines. UNTIL CustLedgEntry.NEXT = 0;...
รหัสที่มีอยู่ 2
...DtldVendLedgEntry.SETFILTER( DtldVendLedgEntry."Entry Type",'<>%1',DtldVendLedgEntry."Entry Type"::"Initial Entry");// Delete the following lines. IF DtldVendLedgEntry.FIND('-') THEN BEGIN IF RevType = RevType::Register THEN ERROR(Text012,Number); CLEAR(DtldVendLedgEntry); DtldVendLedgEntry.SETCURRENTKEY("Vendor Ledger Entry No."); DtldVendLedgEntry.SETRANGE("Vendor Ledger Entry No.",VendLedgEntry."Entry No."); DtldVendLedgEntry.SETRANGE(Unapplied,TRUE); IF DtldVendLedgEntry.FIND('-') THEN BEGIN REPEAT TempRevertTransactionNo.Number := DtldVendLedgEntry."Transaction No."; IF TempRevertTransactionNo.INSERT THEN; UNTIL DtldVendLedgEntry.NEXT = 0; END; END;// End of the deleted lines. UNTIL VendLedgEntry.NEXT = 0;...
รหัสแทนที่ 2
...DtldVendLedgEntry.SETFILTER( DtldVendLedgEntry."Entry Type",'<>%1',DtldVendLedgEntry."Entry Type"::"Initial Entry");// Add the following lines. IF NOT DtldVendLedgEntry.ISEMPTY THEN IF RevType = RevType::Register THEN ERROR(Text012,Number); CheckDtldVendLedgEntry(VendLedgEntry);// End of the added lines. UNTIL VendLedgEntry.NEXT = 0;...
-
เปลี่ยนแปลงรหัสนี้ในฟังก์ชันCheckDtldCustLedgEntryในตารางรายการการย้อนกลับ (179) เป็นดังนี้:รหัสที่มีอยู่
...DtldCustLedgEntry@1001 : Record 379; BEGIN// Delete the following lines. DtldCustLedgEntry.SETCURRENTKEY("Cust. Ledger Entry No."); DtldCustLedgEntry.SETRANGE("Cust. Ledger Entry No.",CustLedgEntry."Entry No."); IF DtldCustLedgEntry.FIND('-') THEN REPEAT IF (DtldCustLedgEntry."Entry Type" <> DtldCustLedgEntry."Entry Type"::"Initial Entry") AND (NOT DtldCustLedgEntry.Unapplied) THEN ERROR( Text000,CustLedgEntry.TABLECAPTION,CustLedgEntry."Entry No."); UNTIL DtldCustLedgEntry.NEXT = 0;// End of the deleted lines. END;...
รหัสแทน
...DtldCustLedgEntry@1001 : Record 379; BEGIN// Add the following lines. DtldCustLedgEntry.SETCURRENTKEY("Cust. Ledger Entry No.","Entry Type"); DtldCustLedgEntry.SETRANGE("Cust. Ledger Entry No.",CustLedgEntry."Entry No."); DtldCustLedgEntry.SETFILTER("Entry Type",'<>%1',DtldCustLedgEntry."Entry Type"::"Initial Entry"); DtldCustLedgEntry.SETRANGE(Unapplied,FALSE); IF NOT DtldCustLedgEntry.ISEMPTY THEN ERROR(Text000,CustLedgEntry.TABLECAPTION,CustLedgEntry."Entry No."); DtldCustLedgEntry.SETRANGE(Unapplied); DtldCustLedgEntry.SETFILTER("Entry Type",'%1|%2', DtldCustLedgEntry."Entry Type"::"Realized Gain",DtldCustLedgEntry."Entry Type"::"Realized Loss"); IF NOT DtldCustLedgEntry.ISEMPTY THEN ERROR(Text013,CustLedgEntry.TABLECAPTION,CustLedgEntry."Entry No.");// End of the added lines. END;...
-
เปลี่ยนแปลงรหัสนี้ในฟังก์ชันCheckDtldVendLedgEntryในตารางรายการการย้อนกลับ (179) เป็นดังนี้:รหัสที่มีอยู่
...DtldVendLedgEntry@1001 : Record 380; BEGIN// Delete the following lines. DtldVendLedgEntry.SETCURRENTKEY("Vendor Ledger Entry No."); DtldVendLedgEntry.SETRANGE("Vendor Ledger Entry No.",VendLedgEntry."Entry No."); IF DtldVendLedgEntry.FIND('-') THEN REPEAT IF (DtldVendLedgEntry."Entry Type" <> DtldVendLedgEntry."Entry Type"::"Initial Entry") AND (NOT DtldVendLedgEntry.Unapplied) THEN ERROR( Text000,VendLedgEntry.TABLECAPTION,VendLedgEntry."Entry No."); UNTIL DtldVendLedgEntry.NEXT = 0;// End of the deleted lines. END;...
รหัสแทน
...DtldVendLedgEntry@1001 : Record 380; BEGIN// Add the following lines. DtldVendLedgEntry.SETCURRENTKEY("Vendor Ledger Entry No.","Entry Type"); DtldVendLedgEntry.SETRANGE("Vendor Ledger Entry No.",VendLedgEntry."Entry No."); DtldVendLedgEntry.SETFILTER("Entry Type",'<>%1',DtldVendLedgEntry."Entry Type"::"Initial Entry"); DtldVendLedgEntry.SETRANGE(Unapplied,FALSE); IF NOT DtldVendLedgEntry.ISEMPTY THEN ERROR(Text000,VendLedgEntry.TABLECAPTION,VendLedgEntry."Entry No."); DtldVendLedgEntry.SETRANGE(Unapplied); DtldVendLedgEntry.SETFILTER("Entry Type",'%1|%2', DtldVendLedgEntry."Entry Type"::"Realized Gain",DtldVendLedgEntry."Entry Type"::"Realized Loss"); IF NOT DtldVendLedgEntry.ISEMPTY THEN ERROR(Text013,VendLedgEntry.TABLECAPTION,VendLedgEntry."Entry No.");// End of the added lines. END;...
ข้อกำหนดเบื้องต้น
คุณต้องมีหนึ่งผลิตภัณฑ์ต่อไปนี้ติดตั้งอยู่เพื่อใช้โปรแกรมแก้ไขด่วนนี้:
-
Microsoft Dynamics NAV 2009 R2 รุ่นภาษาอิตาลี
-
SP1 2009 นำทางของ Dynamics Microsoft รุ่นภาษาอิตาลี
ข้อมูลการเอาออก
คุณไม่สามารถเอาโปรแกรมแก้ไขด่วนนี้
สถานะ
Microsoft ยืนยันว่านี่เป็นปัญหาในผลิตภัณฑ์ของ Microsoft ซึ่งแสดงไว้ในส่วน "นำไปใช้กับ"
หมายเหตุ นี่คือบทความ "เผยแพร่เร็ว" ที่สร้างขึ้นโดยตรงจากภายใน Microsoft สนับสนุนองค์กร ข้อมูลในที่นี้ให้ไว้ตามสภาพ เพื่อตอบสนองกับปัญหาที่เกิดขึ้นใหม่ เป็นผลมาจากความเร็วในการทำให้พร้อมใช้งาน วัสดุอาจรวมถึงข้อผิดพลาดการพิมพ์ผิด และอาจแก้ไขได้ตลอดเวลาโดยไม่ต้องแจ้งให้ทราบ ดูข้อตกลงการใช้สำหรับข้อควรพิจารณาอื่น ๆ