นำไปใช้กับ
Dynamics NAV 2009

อาการ

หลังจากที่คุณติดตั้งKB3009492ใน Microsoft Dynamics NAV 2009 ยอดเงินดอกเบี้ยไม่ถูกต้องสำหรับลูกค้าภายในประเทศบนรายงานจดหมายเตือนชำระเงิน ทำตามขั้นตอนต่าง ๆ ในส่วนของการเปลี่ยนแปลงรหัสเพื่อแก้ไขปัญหานี้ ปัญหานี้เกิดขึ้นในผลิตภัณฑ์ต่อไปนี้:

  • Microsoft Dynamics NAV 2009 R2

  • Microsoft Dynamics NAV 2009 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 ของวัตถุวัตถุ

หมายเหตุ คุณไม่จำเป็นต้องมีสิทธิ์ไปยังร้านค้าข้อมูลยกเว้นว่าคุณจำเป็นต้องซ่อมแซมข้อมูล

การเปลี่ยนแปลงรหัส

หมายเหตุ เสมอทดสอบรหัสแก้ไขในสภาพแวดล้อมการควบคุมก่อนที่คุณนำไปใช้แก้ไขปัญหากับคอมพิวเตอร์ของคุณผลิตเมื่อต้องการแก้ไขปัญหานี้ ให้ทำตามขั้นตอนเหล่านี้:

  1. เปลี่ยนแปลงรหัสนี้ในฟิลด์หมายเลข 1 รายการข้อมูลในรายงานจดหมายเตือนชำระเงิน (117) เป็นดังนี้:รหัสที่มีอยู่

    ...IF ("Interest Amount" <> 0) AND ("VAT Amount" <> 0) THEN BEGIN                               GLAcc.GET(CustPostingGroup."Interest Account");                               VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");                               VATInterest := VATPostingSetup."VAT %";                               Interest:=// Delete the following lines.(ReminderInterestAmount +"VAT Amount" +"Issued Reminder Header"."Additional Fee" - AddFeeInclVAT) / (VATInterest / 100 + 1);// End of the deleted lines.                             END ELSE BEGIN                               Interest:= "Interest Amount";                               VATInterest := 0;                             END;...

    รหัสแทน

    ...IF ("Interest Amount" <> 0) AND ("VAT Amount" <> 0) THEN BEGIN                               GLAcc.GET(CustPostingGroup."Interest Account");                               VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");                               VATInterest := VATPostingSetup."VAT %";                               Interest:=// Add the following lines.Interest Amount" +"VAT Amount" + "Issued Reminder Header"."Additional Fee" - AddFeeInclVAT) / (VATInterest / 100 + 1);// End of the added lines.                             END ELSE BEGIN                               Interest:= "Interest Amount";                               VATInterest := 0;                             END;...
  2. เปลี่ยนรหัสใน 4 หมายเลขสินค้าข้อมูลในรายงานจดหมายเตือนชำระเงิน (117) เป็นดังนี้:รหัสที่มีอยู่

    ...IF ISSERVICETIER THEN BEGIN                               NNC_InterestAmountTotal += ReminderInterestAmount;                               NNC_RemainingAmountTotal += "Remaining Amount";                               NNC_VATAmountTotal += "VAT Amount";// Delete the following lines.NNC_InterestAmount := (NNC_InterestAmountTotal + NNC_VATAmountTotal + "Issued Reminder Header"."Additional Fee" -AddFeeInclVAT) / (VATInterest / 100 + 1);// End of the deleted lines.                               NNC_Total := NNC_RemainingAmountTotal + NNC_InterestAmountTotal + NNC_VATAmountTotal - (NNC_InterestAmountTotal +                               NNC_VATAmountTotal + "Issued Reminder Header"."Additional Fee" - AddFeeInclVAT) / (VATInterest / 100 + 1) * VATInterest / 100 +                                 "Issued Reminder Header"."Additional Fee" - AddFeeInclVAT;                               NNC_VATAmount := (NNC_InterestAmountTotal + NNC_VATAmountTotal + "Issued Reminder Header"."Additional Fee" - AddFeeInclVAT)/                                 (VATInterest / 100 + 1) * (VATInterest / 100) + AddFeeInclVAT - "Issued Reminder Header"."Additional Fee";...

    รหัสแทน

    ...IF ISSERVICETIER THEN BEGIN                               NNC_InterestAmountTotal += ReminderInterestAmount;                               NNC_RemainingAmountTotal += "Remaining Amount";                               NNC_VATAmountTotal += "VAT Amount";// Add the following line.NNC_InterestAmount := Interest;// End of the added line.                               NNC_Total := NNC_RemainingAmountTotal + NNC_InterestAmountTotal + NNC_VATAmountTotal - (NNC_InterestAmountTotal +                               NNC_VATAmountTotal + "Issued Reminder Header"."Additional Fee" - AddFeeInclVAT) / (VATInterest / 100 + 1) * VATInterest / 100 +                                 "Issued Reminder Header"."Additional Fee" - AddFeeInclVAT;                               NNC_VATAmount := (NNC_InterestAmountTotal + NNC_VATAmountTotal + "Issued Reminder Header"."Additional Fee" - AddFeeInclVAT)/                                 (VATInterest / 100 + 1) * (VATInterest / 100) + AddFeeInclVAT - "Issued Reminder Header"."Additional Fee";...
  3. เปลี่ยนแปลงรหัสนี้ในฟิลด์หมายเลข 1 รายการข้อมูลในรายงานจดหมายเตือนชำระเงิน (122) เป็นดังนี้:รหัสที่มีอยู่

    ... IF ("Interest Amount" <> 0) AND ("VAT Amount" <> 0) THEN BEGIN                               GLAcc.GET(CustPostingGroup."Interest Account");                               VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");                               VATInterest := VATPostingSetup."VAT %";                               Interest :=// Delete the following line.(ReminderInterestAmount +// End of the deleted line.                                   "VAT Amount" + "Reminder Header"."Additional Fee" - AddFeeInclVAT) / (VATInterest / 100 + 1);                             END ELSE BEGIN                               Interest := "Interest Amount";                               VATInterest := 0;                             END;...

    รหัสแทน

    ...IF ("Interest Amount" <> 0) AND ("VAT Amount" <> 0) THEN BEGIN                               GLAcc.GET(CustPostingGroup."Interest Account");                               VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");                               VATInterest := VATPostingSetup."VAT %";                               Interest :=// Add the following line.("Interest Amount" +// End of the added line.                                   "VAT Amount" + "Reminder Header"."Additional Fee" - AddFeeInclVAT) / (VATInterest / 100 + 1);                             END ELSE BEGIN                               Interest := "Interest Amount";                               VATInterest := 0;                             END;...
  4. เปลี่ยนแปลงรหัสนี้ใน 5 หมายเลขสินค้าข้อมูลในรายงานจดหมายเตือนชำระเงิน (122) เป็นดังนี้:รหัสที่มีอยู่

    ...NNC_RemAmtTotal += "Remaining Amount";                               NNC_VatAmtTotal += "VAT Amount";                               NNC_ReminderInterestAmt += ReminderInterestAmount;// Delete the following lines.NNC_Interest :=(NNC_ReminderInterestAmt + NNC_VatAmtTotal + "Reminder Header"."Additional Fee" - AddFeeInclVAT) /(VATInterest / 100 + 1);// End of the deleted lines.                               NNC_TotalLCY :=                                 NNC_RemAmtTotal + NNC_ReminderInterestAmt + NNC_VatAmtTotal -                                 (NNC_ReminderInterestAmt + NNC_VatAmtTotal + "Reminder Header"."Additional Fee" - AddFeeInclVAT) /                                 (VATInterest / 100 + 1) * VATInterest / 100 + "Reminder Header"."Additional Fee" - AddFeeInclVAT;...

    รหัสแทน

    ...NNC_RemAmtTotal += "Remaining Amount";                               NNC_VatAmtTotal += "VAT Amount";                               NNC_ReminderInterestAmt += ReminderInterestAmount;// Add the following line.NNC_Interest := Interest;// End of the added line.                               NNC_TotalLCY :=                                 NNC_RemAmtTotal + NNC_ReminderInterestAmt + NNC_VatAmtTotal -                                 (NNC_ReminderInterestAmt + NNC_VatAmtTotal + "Reminder Header"."Additional Fee" - AddFeeInclVAT) /                                 (VATInterest / 100 + 1) * VATInterest / 100 + "Reminder Header"."Additional Fee" - AddFeeInclVAT;...

ข้อกำหนดเบื้องต้น

คุณต้องมีหนึ่งผลิตภัณฑ์ต่อไปนี้ติดตั้งอยู่เพื่อใช้โปรแกรมแก้ไขด่วนนี้:

  • Microsoft Dynamics NAV 2009 R2

  • Microsoft Dynamics NAV 2009 SP1

นอกจากนี้ คุณต้องมีการติดตั้งKB3009492

ข้อมูลการเอาออก

คุณไม่สามารถเอาโปรแกรมแก้ไขด่วนนี้

สถานะ

Microsoft ยืนยันว่านี่เป็นปัญหาในผลิตภัณฑ์ของ Microsoft ซึ่งแสดงไว้ในส่วน "นำไปใช้กับ"

หมายเหตุ นี่คือบทความ "เผยแพร่เร็ว" ที่สร้างขึ้นโดยตรงจากภายใน Microsoft สนับสนุนองค์กร ข้อมูลในที่นี้ให้ไว้ตามสภาพ เพื่อตอบสนองกับปัญหาที่เกิดขึ้นใหม่ เป็นผลมาจากความเร็วในการทำให้พร้อมใช้งาน วัสดุอาจรวมถึงข้อผิดพลาดการพิมพ์ผิด และอาจแก้ไขได้ตลอดเวลาโดยไม่ต้องแจ้งให้ทราบ ดูข้อตกลงการใช้สำหรับข้อควรพิจารณาอื่น ๆ

ต้องการความช่วยเหลือเพิ่มเติมหรือไม่

ต้องการตัวเลือกเพิ่มเติมหรือไม่

สํารวจสิทธิประโยชน์ของการสมัครใช้งาน เรียกดูหลักสูตรการฝึกอบรม เรียนรู้วิธีการรักษาความปลอดภัยอุปกรณ์ของคุณ และอื่นๆ