ข้ามไปที่เนื้อหาหลัก
การสนับสนุน
ลงชื่อเข้าใช้
ลงชื่อเข้าใช้ด้วย Microsoft
ลงชื่อเข้าใช้หรือสร้างบัญชี
สวัสดี
เลือกบัญชีอื่น
คุณมีหลายบัญชี
เลือกบัญชีที่คุณต้องการลงชื่อเข้าใช้

อาการ

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

  • 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. เปลี่ยนแปลงรหัสนี้ในคุณสมบัติในแบบฟอร์มสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (437) เป็นดังนี้:
    รหัสที่มีอยู่

    ... CALCFIELDS("Interest Amount","VAT Amount");
    ReminderTotal := "Remaining Amount" + "Additional Fee" + "Interest Amount" + "VAT Amount";
    CustPostingGr.GET("Customer Posting Group");
    VATInterest := 0;
    IF ReminderLevel.GET("Reminder Terms Code","Reminder Level") THEN

    // Delete the following lines.
    IF ReminderLevel."Calculate Interest" THEN BEGIN
    GLAcc.GET(CustPostingGr."Interest Account");
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    VATInterest := VATPostingSetup."VAT %";
    END;

    IF GLAcc.GET(CustPostingGr."Additional Fee Account") THEN
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");

    Interest := (ReminderTotal - "Remaining Amount" - "Additional Fee" * (VATPostingSetup."VAT %"/100 + 1))/
    (VATInterest/100 + 1);

    VatAmount := Interest * VATInterest/100 +
    "Additional Fee" * VATPostingSetup."VAT %"/100;

    // End of the deleted lines.

    IF Cust.GET("Customer No.") THEN
    Cust.CALCFIELDS("Balance (LCY)")
    ELSE
    CLEAR(Cust);
    IF Cust."Credit Limit (LCY)" = 0 THEN
    ...

    รหัสแทน

    ... CALCFIELDS("Interest Amount","VAT Amount");
    ReminderTotal := "Remaining Amount" + "Additional Fee" + "Interest Amount" + "VAT Amount";
    CustPostingGr.GET("Customer Posting Group");
    VATInterest := 0;
    IF ReminderLevel.GET("Reminder Terms Code","Reminder Level") THEN

    // Add the following lines.
    IF ReminderLevel."Calculate Interest" AND ("VAT Amount" <> 0) THEN BEGIN
    GLAcc.GET(CustPostingGr."Interest Account");
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    VATInterest := VATPostingSetup."VAT %";
    IF GLAcc.GET(CustPostingGr."Additional Fee Account") THEN
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    Interest :=
    (ReminderTotal -
    "Remaining Amount" - "Additional Fee" * (VATPostingSetup."VAT %"/ 100 + 1)) /(VATInterest / 100 + 1);
    VatAmount := Interest * VATInterest / 100 + "Additional Fee" * VATPostingSetup."VAT %" / 100;
    END ELSE
    Interest := "Interest Amount";
    // End of the added lines.

    IF Cust.GET("Customer No.") THEN
    Cust.CALCFIELDS("Balance (LCY)")
    ELSE
    CLEAR(Cust);
    IF Cust."Credit Limit (LCY)" = 0 THEN
    ...
  2. เปลี่ยนแปลงรหัสนี้ในคุณสมบัติในแบบฟอร์มสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (441) เป็นดังนี้:
    รหัสที่มีอยู่

    ...BEGIN
    SETRANGE("No.");
    CALCFIELDS("Interest Amount","VAT Amount");
    ReminderTotal := "Remaining Amount" + "Additional Fee" + "Interest Amount" + "VAT Amount";
    CustPostingGr.GET("Customer Posting Group");

    // Delete the following lines.
    ReminderLevel.GET("Reminder Terms Code","Reminder Level");
    IF ReminderLevel."Calculate Interest" THEN BEGIN
    GLAcc.GET(CustPostingGr."Interest Account");
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    VATInterest := VATPostingSetup."VAT %";
    END ELSE
    VATInterest := 0;
    IF GLAcc.GET(CustPostingGr."Additional Fee Account") THEN
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");

    Interest := (ReminderTotal - "Remaining Amount" - "Additional Fee" * (VATPostingSetup."VAT %"/100 + 1))/
    (VATInterest/100 + 1);

    VatAmount := Interest * VATInterest/100 +
    "Additional Fee" * VATPostingSetup."VAT %"/100;

    // End of the deleted lines.

    IF Cust.GET("Customer No.") THEN
    Cust.CALCFIELDS("Balance (LCY)")
    ELSE
    CLEAR(Cust);
    IF Cust."Credit Limit (LCY)" = 0 THEN
    ...

    รหัสแทน

    ...BEGIN
    SETRANGE("No.");
    CALCFIELDS("Interest Amount","VAT Amount");
    ReminderTotal := "Remaining Amount" + "Additional Fee" + "Interest Amount" + "VAT Amount";
    CustPostingGr.GET("Customer Posting Group");

    // Add the following lines.
    IF ReminderLevel.GET("Reminder Terms Code","Reminder Level") THEN
    IF ReminderLevel."Calculate Interest" AND ("VAT Amount" <> 0) THEN BEGIN
    GLAcc.GET(CustPostingGr."Interest Account");
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    VATInterest := VATPostingSetup."VAT %";
    IF GLAcc.GET(CustPostingGr."Additional Fee Account") THEN
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    Interest :=
    (ReminderTotal -
    "Remaining Amount" - "Additional Fee" * (VATPostingSetup."VAT %"/ 100 + 1)) /(VATInterest / 100 + 1);
    VatAmount := Interest * VATInterest / 100 + "Additional Fee" * VATPostingSetup."VAT %" / 100;
    END ELSE
    Interest := "Interest Amount";
    // End of the added lines.

    IF Cust.GET("Customer No.") THEN
    Cust.CALCFIELDS("Balance (LCY)")
    ELSE
    CLEAR(Cust);
    IF Cust."Credit Limit (LCY)" = 0 THEN
    ...
  3. เปลี่ยนแปลงรหัสนี้ในฟิลด์หมายเลข 1 รายการข้อมูลในรายงานสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (117) เป็นดังนี้:
    รหัสที่มีอยู่

    ...IF GLAcc.GET(CustPostingGroup."Additional Fee Account") THEN BEGIN
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    AddFeeInclVAT := "Additional Fee" * (1 + VATPostingSetup."VAT %"/100);
    END ELSE
    AddFeeInclVAT := "Additional Fee";

    // Delete the following lines.
    CALCFIELDS("Interest Amount");
    IF "Interest Amount" <> 0 THEN BEGIN
    GLAcc.GET(CustPostingGroup."Interest Account");
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    VATInterest := VATPostingSetup."VAT %";
    END ELSE
    VATInterest := 0;
    // End of the deleted lines.

    IF ISSERVICETIER THEN BEGIN
    NNC_InterestAmountTotal := 0;
    NNC_RemainingAmountTotal := 0;
    NNC_VATAmountTotal := 0;
    ...

    รหัสแทน

    ...  IF GLAcc.GET(CustPostingGroup."Additional Fee Account") THEN BEGIN
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    AddFeeInclVAT := "Additional Fee" * (1 + VATPostingSetup."VAT %"/100);
    END ELSE
    AddFeeInclVAT := "Additional Fee";

    // Add the following lines.
    CALCFIELDS("Interest Amount","VAT Amount");
    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:=
    (ReminderInterestAmount +
    "VAT Amount" +"Issued Reminder Header"."Additional Fee" - AddFeeInclVAT) / (VATInterest / 100 + 1);
    END ELSE BEGIN
    Interest:= "Interest Amount";
    VATInterest := 0;
    END;
    // End of the added lines.

    IF ISSERVICETIER THEN BEGIN
    NNC_InterestAmountTotal := 0;
    NNC_RemainingAmountTotal := 0;
    NNC_VATAmountTotal := 0;
    ...
  4. เปลี่ยนรหัสในส่วนข้อมูลสินค้าหมายเลข 4 ในรายงานสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (117) เป็นดังนี้:
    รหัสที่อยู่ 1

    ...}
    CONTROLS
    {
    { 45 ;TextBox ;10710;0 ;2520 ;423 ;FontSize=9;
    CaptionML=ENU=Interest Amount;

    // Delete the following line.
    SourceExpr=(ReminderInterestAmount + "VAT Amount" +"Issued Reminder Header"."Additional Fee" - AddFeeInclVAT)/(VATInterest/100 +1);
    // End of the deleted line.

    AutoFormatType=1;
    AutoFormatExpr="Issued Reminder Line".GetCurrencyCodeFromHeader;
    DataSetFieldName=ReminderInterestAmount____VAT_Amount____Issued_Reminder_Header___Additional_Fee____AddFeeInclVAT___VATInterest_100__1_ }
    { 47 ;Label ;6090 ;0 ;4200 ;423 ;ParentControl=45;
    FontSize=9;
    ...

    รหัสแทนที่ 1

    ...}
    CONTROLS
    {
    { 45 ;TextBox ;10710;0 ;2520 ;423 ;FontSize=9;
    CaptionML=ENU=Interest Amount;

    // Add the following line.
    SourceExpr=Interest;
    // End of the added line.

    AutoFormatType=1;
    AutoFormatExpr="Issued Reminder Line".GetCurrencyCodeFromHeader;
    DataSetFieldName=ReminderInterestAmount____VAT_Amount____Issued_Reminder_Header___Additional_Fee____AddFeeInclVAT___VATInterest_100__1_ }
    { 47 ;Label ;6090 ;0 ;4200 ;423 ;ParentControl=45;
    FontSize=9;
    ...

    รหัสที่มีอยู่ 2

    ...CONTROLS
    {
    { 44 ;TextBox ;10710;0 ;2520 ;423 ;FontSize=9;
    FontBold=Yes;
    CaptionML=ENU=Total;

    // Delete the following line.
    SourceExpr="Remaining Amount" + ReminderInterestAmount + "VAT Amount"-(ReminderInterestAmount + "VAT Amount" +"Issued Reminder Header"."Additional Fee" - AddFeeInclVAT)/(VATInterest/100+1)*VATInterest/100 + "Issued Reminder Header"."Additional Fee" - AddFeeInclVAT;
    // End of the deleted line.

    AutoFormatType=1;
    AutoFormatExpr="Issued Reminder Line".GetCurrencyCodeFromHeader;
    DataSetFieldName=Remaining_Amount____ReminderInterestAmount____VAT_Amount___ReminderInterestAmount____VAT_Amount____Issued_Reminder_Header___Additional_Fee____AddFeeInclVAT___VATInterest_100_1__VATInterest_100____Issued_Reminder_Header___Additional_Fee____AddFeeInclVAT }
    { 56 ;TextBox ;6090 ;0 ;4200 ;423 ;FontSize=9;
    FontBold=Yes;
    ...

    รหัสแทนที่ 2

    ... CONTROLS
    {
    { 44 ;TextBox ;10710;0 ;2520 ;423 ;FontSize=9;
    FontBold=Yes;
    CaptionML=ENU=Total;

    // Add the following line.
    SourceExpr="Remaining Amount" + ReminderInterestAmount;
    // End of the added line.

    AutoFormatType=1;
    AutoFormatExpr="Issued Reminder Line".GetCurrencyCodeFromHeader;
    DataSetFieldName=Remaining_Amount____ReminderInterestAmount____VAT_Amount___ReminderInterestAmount____VAT_Amount____Issued_Reminder_Header___Additional_Fee____AddFeeInclVAT___VATInterest_100_1__VATInterest_100____Issued_Reminder_Header___Additional_Fee____AddFeeInclVAT }
    { 56 ;TextBox ;6090 ;0 ;4200 ;423 ;FontSize=9;
    FontBold=Yes;
    ...
  5. เปลี่ยนแปลงรหัสนี้ในฟิลด์หมายเลข 1 รายการข้อมูลในรายงานสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (122) เป็นดังนี้:
    รหัสที่มีอยู่

    ...IF GLAcc.GET(CustPostingGroup."Additional Fee Account") THEN BEGIN
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    AddFeeInclVAT := "Additional Fee" * (1 + VATPostingSetup."VAT %"/100);
    END ELSE
    AddFeeInclVAT := "Additional Fee";

    // Delete the following lines.
    CALCFIELDS("Interest Amount");
    IF "Interest Amount" <> 0 THEN BEGIN
    GLAcc.GET(CustPostingGroup."Interest Account");
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    VATInterest := VATPostingSetup."VAT %";
    END ELSE
    VATInterest := 0;

    // End of the deleted lines.

    IF ISSERVICETIER THEN BEGIN
    NNC_Interest := 0;
    NNC_TotalLCY := 0;
    NNC_VATAmount := 0;
    NNC_TotalLCYVATAmount := 0;
    ...

    รหัสแทน

    ...IF GLAcc.GET(CustPostingGroup."Additional Fee Account") THEN BEGIN
    VATPostingSetup.GET("VAT Bus. Posting Group",GLAcc."VAT Prod. Posting Group");
    AddFeeInclVAT := "Additional Fee" * (1 + VATPostingSetup."VAT %"/100);
    END ELSE
    AddFeeInclVAT := "Additional Fee";

    // Add the following lines.
    CALCFIELDS("Interest Amount","VAT Amount");
    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:=
    (ReminderInterestAmount +
    "VAT Amount" +"Reminder Header"."Additional Fee" - AddFeeInclVAT) / (VATInterest / 100 + 1);
    END ELSE BEGIN
    Interest:= "Interest Amount";
    VATInterest := 0;
    END;
    IF VATInterest <> 0 THEN
    // End of the added lines.

    IF ISSERVICETIER THEN BEGIN
    NNC_Interest := 0;
    NNC_TotalLCY := 0;
    NNC_VATAmount := 0;
    NNC_TotalLCYVATAmount := 0;
    ...
  6. เปลี่ยนรหัสใน 2 หมายเลขสินค้าข้อมูลในรายงานสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (122) เป็นดังนี้:
    รหัสที่มีอยู่

    ... }
    { PROPERTIES
    {
    DataItemIndent=1;
    DataItemTable=Table2000000026;

    // Delete the following line.
    DataItemTableView=SORTING(Number) WHERE(Number=CONST(1));
    // End of the deleted line.

    DataItemVarName=PageCounter;
    }
    SECTIONS
    {
    { PROPERTIES
    ...

    รหัสแทน

    ...}
    { PROPERTIES
    {
    DataItemIndent=1;
    DataItemTable=Table2000000026;

    // Add the following lines.
    DataItemTableView=SORTING(Number)
    WHERE(Number=CONST(1));
    // End of the added lines.

    DataItemVarName=PageCounter;
    }
    SECTIONS
    {
    { PROPERTIES
    ...
  7. เปลี่ยนรหัสใน 3 หมายเลขสินค้าข้อมูลในรายงานสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (122) เป็นดังนี้:
    รหัสที่มีอยู่

    ...}
    { PROPERTIES
    {
    DataItemIndent=2;
    DataItemTable=Table2000000026;

    // Delete the following line.
    DataItemTableView=SORTING(Number) WHERE(Number=FILTER(1..));
    // End of the deleted line.

    DataItemVarName=DimensionLoop;
    OnPreDataItem=BEGIN
    IF NOT ShowDim THEN
    CurrReport.BREAK;
    DocDim.SETRANGE("Table ID",DATABASE::"Reminder Header");
    ...

    รหัสแทน

    ...}
    { PROPERTIES
    {
    DataItemIndent=2;
    DataItemTable=Table2000000026;

    // Add the following lines.
    DataItemTableView=SORTING(Number)
    WHERE(Number=FILTER(1..));
    // End of the added lines.

    DataItemVarName=DimensionLoop;
    OnPreDataItem=BEGIN
    IF NOT ShowDim THEN
    CurrReport.BREAK;
    DocDim.SETRANGE("Table ID",DATABASE::"Reminder Header");
    ...
  8. เปลี่ยนแปลงรหัสนี้ใน 5 หมายเลขสินค้าข้อมูลในรายงานสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (122) เป็นดังนี้:
    รหัสที่มีอยู่

    ... }
    { PROPERTIES
    {
    DataItemIndent=2;
    DataItemTable=Table296;

    // Delete the following line.
    DataItemTableView=SORTING(Reminder No.,Line No.) WHERE(Line Type=FILTER(<>Not Due));
    // End of the deleted line.

    OnPreDataItem=BEGIN
    IF ISSERVICETIER THEN
    TotalVATAmount := 0;

    IF FIND('+') THEN BEGIN
    ...

    รหัสแทน

    ...}
    { PROPERTIES
    {
    DataItemIndent=2;
    DataItemTable=Table296;

    // Add the following lines.
    DataItemTableView=SORTING(Reminder No.,Line No.)
    WHERE(Line Type=FILTER(<>Not Due));
    // End of the added lines.

    OnPreDataItem=BEGIN
    IF ISSERVICETIER THEN
    TotalVATAmount := 0;

    IF FIND('+') THEN BEGIN
    ...
  9. เปลี่ยนรหัสในส่วนข้อมูลสินค้าหมายเลข 5 ในรายงานสถิติเกี่ยวกับจดหมายเตือนชำระเงิน (122) เป็นดังนี้:
    รหัสที่อยู่ 1

    ...   }
    CONTROLS
    {
    { 17 ;TextBox ;10710;0 ;2520 ;423 ;FontSize=9;
    CaptionML=ENU=Interest Amount;

    // Delete the following line.
    SourceExpr=(ReminderInterestAmount + "VAT Amount" +"Reminder Header"."Additional Fee" - AddFeeInclVAT)/(VATInterest/100 +1);
    // End of the deleted line.

    AutoFormatType=1;
    AutoFormatExpr="Reminder Line".GetCurrencyCodeFromHeader;
    DataSetFieldName=ReminderInterestAmount____VAT_Amount____Reminder_Header___Additional_Fee____AddFeeInclVAT___VATInterest_100__1_ }
    { 20 ;Label ;6090 ;0 ;4200 ;423 ;ParentControl=17;
    FontSize=9;
    ...

    รหัสแทนที่ 1

    ... }
    CONTROLS
    {
    { 17 ;TextBox ;10710;0 ;2520 ;423 ;FontSize=9;
    CaptionML=ENU=Interest Amount;

    // Add the following line.
    SourceExpr=Interest;
    // End of the added line.

    AutoFormatType=1;
    AutoFormatExpr="Reminder Line".GetCurrencyCodeFromHeader;
    DataSetFieldName=ReminderInterestAmount____VAT_Amount____Reminder_Header___Additional_Fee____AddFeeInclVAT___VATInterest_100__1_ }
    { 20 ;Label ;6090 ;0 ;4200 ;423 ;ParentControl=17;
    FontSize=9;
    ...

    รหัสที่มีอยู่ 2

    ...}
    CONTROLS
    {
    { 29 ;TextBox ;10710;0 ;2520 ;423 ;FontSize=9;
    FontBold=Yes;

    // Delete the following line.
    SourceExpr="Remaining Amount" + ReminderInterestAmount + "VAT Amount"-(ReminderInterestAmount + "VAT Amount" +"Reminder Header"."Additional Fee" - AddFeeInclVAT)/(VATInterest/100+1)*VATInterest/100 + "Reminder Header"."Additional Fee" - AddFeeInclVAT;
    // End of the deleted line.

    AutoFormatType=1;
    AutoFormatExpr="Reminder Line".GetCurrencyCodeFromHeader;
    DataSetFieldName=Remaining_Amount____ReminderInterestAmount____VAT_Amount___ReminderInterestAmount____VAT_Amount____Reminder_Header___Additional_Fee____AddFeeInclVAT___VATInterest_100_1__VATInterest_100____Reminder_Header___Additional_Fee____AddFeeInclVAT }
    { 43 ;TextBox ;6090 ;0 ;4200 ;423 ;FontSize=9;
    FontBold=Yes;
    ...

    รหัสแทนที่ 2

    ...}
    CONTROLS
    {
    { 29 ;TextBox ;10710;0 ;2520 ;423 ;FontSize=9;
    FontBold=Yes;

    // Add the following line.
    SourceExpr="Remaining Amount" + ReminderInterestAmount;
    // End of the added line.

    AutoFormatType=1;
    AutoFormatExpr="Reminder Line".GetCurrencyCodeFromHeader;
    DataSetFieldName=Remaining_Amount____ReminderInterestAmount____VAT_Amount___ReminderInterestAmount____VAT_Amount____Reminder_Header___Additional_Fee____AddFeeInclVAT___VATInterest_100_1__VATInterest_100____Reminder_Header___Additional_Fee____AddFeeInclVAT }
    { 43 ;TextBox ;6090 ;0 ;4200 ;423 ;FontSize=9;
    FontBold=Yes;
    ...

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

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

  • Microsoft Dynamics NAV 2009 R2

  • Microsoft Dynamics NAV 2009 SP1

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

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

สถานะ

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

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

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

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

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

ชุมชนช่วยให้คุณถามและตอบคําถาม ให้คําติชม และรับฟังจากผู้เชี่ยวชาญที่มีความรู้มากมาย

ข้อมูลนี้เป็นประโยชน์หรือไม่

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

ขอบคุณสำหรับคำติชมของคุณ!

×