บทความนี้อธิบายปัญหาเมื่อคุณพิมพ์รายงานรับสินค้าคงคลังไม่ได้ออกใบแจ้งหนี้และจัดส่งสินค้าคงคลังไม่ได้ออกใบแจ้งหนี้ในการแปลสหราชอาณาจักรของ Microsoft Dynamics NAV 2009 ปัญหานี้ยังคงเกิดขึ้นหลังจากใช้ KB 2882942
ทำตามขั้นตอนต่าง ๆ ในส่วนของการเปลี่ยนแปลงรหัสเพื่อแก้ไขปัญหานี้ ปัญหานี้เกิดขึ้นในผลิตภัณฑ์ต่อไปนี้:
-
แปลสหราชอาณาจักรของ 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 ของวัตถุ
วัตถุ
หมายเหตุ คุณไม่จำเป็นต้องมีสิทธิ์ไปยังร้านค้าข้อมูลยกเว้นว่าคุณจำเป็นต้องซ่อมแซมข้อมูล
การเปลี่ยนแปลงรหัส
หมายเหตุ เสมอทดสอบรหัสแก้ไขในสภาพแวดล้อมการควบคุมก่อนที่คุณนำไปใช้แก้ไขปัญหากับคอมพิวเตอร์ของคุณผลิต
เมื่อต้องการแก้ไขปัญหานี้ ให้ทำตามขั้นตอนเหล่านี้:
-
เปลี่ยนรหัสในข้อมูลหมายเลขสินค้า 1 ส่วนในสินค้าคงคลังได้รับไม่ออกใบแจ้งหนี้รายงาน (10540) เป็นดังนี้:
รหัสที่อยู่ 1...VertAlign=Bottom;
FontBold=Yes;
MultiLine=Yes;
DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__Caption }
{ 1040042;Label ;5700 ;0 ;1550 ;846 ;ParentControl=1040040;
VertAlign=Bottom;
...รหัสแทนที่ 1
...VertAlign=Bottom;
FontBold=Yes;
MultiLine=Yes;
// Adding the following line.
CaptionML=ENU=Cost Amount (Expected);
// End of the added line.
DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__Caption }
{ 1040042;Label ;5700 ;0 ;1550 ;846 ;ParentControl=1040040;
VertAlign=Bottom;
...รหัสที่มีอยู่ 2
...SourceExpr="Value Entry"."Invoiced Quantity";
DataSetFieldName=Item_Ledger_Entry___Invoiced_Quantity_ }
{ 1040039;TextBox ;13050;0 ;1800 ;423 ;FontBold=Yes;
// Deleting the following line.
SourceExpr="Item Ledger Entry"."Cost Amount (Expected)";
// End of the deleted line.
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected__ }
{ 1040045;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
SourceExpr=Text1040005 + ' ' + Item."No.";
...รหัสแทนที่ 2
...SourceExpr="Value Entry"."Invoiced Quantity";
DataSetFieldName=Item_Ledger_Entry___Invoiced_Quantity_ }
{ 1040039;TextBox ;13050;0 ;1800 ;423 ;FontBold=Yes;
// Adding the following line.
SourceExpr=ItemCostAmtExpected;
// End of the added line.
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected__ }
{ 1040045;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
SourceExpr=Text1040005 + ' ' + Item."No.";
...รหัสที่มีอยู่ 3
...DataSetFieldName=Value_Entry___Cost_Amount__Actual__ }
{ 1040059;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
CaptionML=ENU=Rec. not invoiced;
// Deleting the following line.
SourceExpr="Item Ledger Entry"."Cost Amount (Expected)" - "Value Entry"."Cost Amount (Actual)";
// End of the deleted line.
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual__ }
{ 1040064;TextBox ;15000;0 ;1500 ;423 ;FontBold=Yes;
SourceExpr="Value Entry"."Invoiced Quantity";
...รหัสแทนที่ 3
...DataSetFieldName=Value_Entry___Cost_Amount__Actual__ }
{ 1040059;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
CaptionML=ENU=Rec. not invoiced;
// Adding the following line.
SourceExpr=ItemCostAmtExpected - ValueCostAmtActual;
// End of the added line.
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual__ }
{ 1040064;TextBox ;15000;0 ;1500 ;423 ;FontBold=Yes;
SourceExpr="Value Entry"."Invoiced Quantity";
...รหัสที่มีอยู่ 4
...DataSetFieldName=Item_Ledger_Entry___Invoiced_Quantity__Control1040067 }
{ 1040068;TextBox ;13050;423 ;1800 ;423 ;FontSize=7;
FontBold=Yes;
// Deleting the following lines.
SourceExpr="Item Ledger Entry"."Cost Amount (Expected)";
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected___Control1040068 }
{ 1040069;TextBox ;7350 ;423 ;1550 ;423 ;FontSize=7;
FontBold=Yes;
CaptionML=ENU=Rec. not invoiced;
SourceExpr="Item Ledger Entry"."Cost Amount (Expected)" - "Value Entry"."Cost Amount (Actual)";
// End of the deleted lines.
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual___Control1040069 }
{ 1040070;TextBox ;15000;423 ;1500 ;423 ;FontSize=7;
FontBold=Yes;
...รหัสแทนที่ 4
...DataSetFieldName=Item_Ledger_Entry___Invoiced_Quantity__Control1040067 }
{ 1040068;TextBox ;13050;423 ;1800 ;423 ;FontSize=7;
FontBold=Yes;
// Adding the following lines.
SourceExpr=ItemCostAmtExpectedTotal }
{ 1040069;TextBox ;7350 ;423 ;1550 ;423 ;FontSize=7;
FontBold=Yes;
CaptionML=ENU=Rec. not invoiced;
SourceExpr=ItemCostAmtExpectedTotal - ValueCostAmtActualTotal;
// End of the added lines.
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual___Control1040069 }
{ 1040070;TextBox ;15000;423 ;1500 ;423 ;FontSize=7;
FontBold=Yes;
...รหัสที่มีอยู่ 5
...ForeColor=65535;
SourceExpr=ItemInvoicedQtyTotal;
DataSetFieldName=ItemInvoicedQtyTotal }
// Delete the following lines.
{ 1040103;TextBox ;300 ;0 ;150 ;423 ;Name=ItemCostAmtExpectedTotal;
Visible=No;
ForeColor=65535;
SourceExpr=ItemCostAmtExpectedTotal;
DataSetFieldName=ItemCostAmtExpectedTotal }
// End of the deleted lines.
{ 1040104;TextBox ;0 ;0 ;150 ;423 ;Name=ItemReceivedQtyTotal;
Visible=No;
ForeColor=65535;
...รหัสแทนที่ 5
...ForeColor=65535;
SourceExpr=ItemInvoicedQtyTotal;
DataSetFieldName=ItemInvoicedQtyTotal }
{ 1040104;TextBox ;0 ;0 ;150 ;423 ;Name=ItemReceivedQtyTotal;
Visible=No;
ForeColor=65535;
... -
เปลี่ยนรหัสในส่วน 2 หมายเลขสินค้าข้อมูลในสินค้าคงคลังได้รับไม่ออกใบแจ้งหนี้รายงาน (10540) เป็นดังนี้:
รหัสที่อยู่ 1...NoOfItems := NoOfItems + 1;
CurrReport.CREATETOTALS(Quantity,"Invoiced Quantity","Cost Amount (Expected)");
CurrReport.CREATETOTALS("Value Entry"."Cost Amount (Actual)","Value Entry"."Invoiced Quantity");
// Delete the following lines.
// GB1004.begin
ItemReceivedQty += Quantity;
ItemInvoicedQty += "Invoiced Quantity";
ItemCostAmtExpected += "Cost Amount (Expected)";
ItemReceivedQtyTotal += Quantity;
ItemInvoicedQtyTotal += "Invoiced Quantity";
ItemCostAmtExpectedTotal += "Cost Amount (Expected)";
// End of the deleted lines.
// GB1004.end
END;
...รหัสแทนที่ 1
...NoOfItems := NoOfItems + 1;
CurrReport.CREATETOTALS(Quantity,"Invoiced Quantity","Cost Amount (Expected)");
CurrReport.CREATETOTALS("Value Entry"."Cost Amount (Actual)","Value Entry"."Invoiced Quantity");
// Add the following lines.
CALCFIELDS("Cost Amount (Actual)");
CALCFIELDS("Cost Amount (Expected)");
// GB1004.begin
ItemReceivedQty += Quantity;
ItemInvoicedQty += "Invoiced Quantity";
ItemCostAmtExpected += "Cost Amount (Expected)" + "Cost Amount (Actual)";
ItemReceivedQtyTotal += Quantity;
ItemInvoicedQtyTotal += "Invoiced Quantity";
ItemCostAmtExpectedTotal += "Cost Amount (Expected)" + "Cost Amount (Actual)";
// End of the added lines.
// GB1004.end
END;
...รหัสที่มีอยู่ 2
...{ 1040047;TextBox ;2100 ;0 ;1500 ;423 ;HorzAlign=Left;
SourceExpr="Source No.";
DataSetFieldName=Item_Ledger_Entry__Source_No__ }
// Delete the following line.
{ 1040030;TextBox ;13050;0 ;1800 ;423 ;SourceExpr="Cost Amount (Expected)";
// End of the deleted line.
DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__ }
}
}
...รหัสแทนที่ 2
...{ 1040047;TextBox ;2100 ;0 ;1500 ;423 ;HorzAlign=Left;
SourceExpr="Source No.";
DataSetFieldName=Item_Ledger_Entry__Source_No__ }
// Add the following line.
{ 1040030;TextBox ;13050;0 ;1800 ;423 ;SourceExpr="Cost Amount (Expected)" + "Cost Amount (Actual)";
// End of the added line.
DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__ }
}
}
...รหัสที่มีอยู่ 3
...SourceExpr="Value Entry"."Invoiced Quantity";
DataSetFieldName=Item_Ledger_Entry__Item_Ledger_Entry___Invoiced_Quantity_ }
{ 1040076;TextBox ;13050;0 ;1800 ;423 ;FontBold=Yes;
// Delete the following line.
SourceExpr="Item Ledger Entry"."Cost Amount (Expected)";
// End of the deleted line.
DataSetFieldName=Item_Ledger_Entry__Item_Ledger_Entry___Cost_Amount__Expected__ }
{ 1040079;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
SourceExpr=Text1040005 + ' ' + Item."No.";
...รหัสแทนที่ 3
...SourceExpr="Value Entry"."Invoiced Quantity";
DataSetFieldName=Item_Ledger_Entry__Item_Ledger_Entry___Invoiced_Quantity_ }
{ 1040076;TextBox ;13050;0 ;1800 ;423 ;FontBold=Yes;
// Add the following line.
SourceExpr=ItemCostAmtExpected;
// End of the added line.
DataSetFieldName=Item_Ledger_Entry__Item_Ledger_Entry___Cost_Amount__Expected__ }
{ 1040079;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
SourceExpr=Text1040005 + ' ' + Item."No.";
...รหัสที่มีอยู่ 4
...DataSetFieldName=Item_Ledger_Entry__Quantity____Item_Ledger_Entry___Invoiced_Quantity__Control1040080 }
{ 1040081;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
CaptionML=ENU=Cost;
// Delete the following line.
SourceExpr="Item Ledger Entry"."Cost Amount (Expected)" - "Value Entry"."Cost Amount (Actual)";
// End of the deleted line.
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual___Control1040081 }
{ 1040078;TextBox ;18000;0 ;150 ;423 ;Name=NoOfItems;
Visible=No;
...รหัสแทนที่ 4
...DataSetFieldName=Item_Ledger_Entry__Quantity____Item_Ledger_Entry___Invoiced_Quantity__Control1040080 }
{ 1040081;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
CaptionML=ENU=Cost;
// Add the following line.
SourceExpr=ItemCostAmtExpected - ValueCostAmtActual;
// End of the added line.
DataSetFieldName=Item_Ledger_Entry___Cost_Amount__Expected______Value_Entry___Cost_Amount__Actual___Control1040081 }
{ 1040078;TextBox ;18000;0 ;150 ;423 ;Name=NoOfItems;
Visible=No;
... -
เปลี่ยนรหัสในข้อมูลหมายเลขสินค้า 3 ส่วนในสินค้าคงคลังได้รับไม่ออกใบแจ้งหนี้รายงาน (10540) เป็นดังนี้:
รหัสที่อยู่ 1...OnPreDataItem=BEGIN
IF EndDate <> 0D THEN
SETRANGE("Posting Date",0D,EndDate);
// Delete the following line.
SETFILTER("Invoiced Quantity",'<>%1',0);
CurrReport.CREATETOTALS("Cost Amount (Actual)","Invoiced Quantity");
// End of the deleted line.
END;
OnAfterGetRecord=BEGIN
...รหัสแทนที่ 1
...OnPreDataItem=BEGIN
IF EndDate <> 0D THEN
SETRANGE("Posting Date",0D,EndDate);
// Add the following lines.
CurrReport.CREATETOTALS("Cost Amount (Actual)","Invoiced Quantity");
LastDocumentNo := '';
// End of the added lines.
END;
OnAfterGetRecord=BEGIN
...รหัสที่มีอยู่ 2
...ValueInvoicedQty += "Invoiced Quantity";
ValueCostAmtActualTotal += "Cost Amount (Actual)";
ValueInvoicedQtyTotal += "Invoiced Quantity";
// GB1004.end
END;
...รหัสแทนที่ 2
...ValueInvoicedQty += "Invoiced Quantity";
ValueCostAmtActualTotal += "Cost Amount (Actual)";
ValueInvoicedQtyTotal += "Invoiced Quantity";
// Add the following line.
CalcSumDocumentNo("Value Entry");
// End of the added line.
// GB1004.end
END;
...รหัสที่มีอยู่ 3
...SectionWidth=18150;
SectionHeight=423;
OnPreSection=BEGIN
// Delete the following line.
CurrReport.SHOWOUTPUT(PrintDetails);
// End of the deleted line.
END;
}
...รหัสแทนที่ 3
...SectionWidth=18150;
SectionHeight=423;
OnPreSection=BEGIN
// Add the following line.
CurrReport.SHOWOUTPUT(PrintDetails AND ("Invoiced Quantity" <> 0));
// End of the added line.
END;
}
... -
เปลี่ยนแปลงรหัสในตัวแปรส่วนกลางในการรับสินค้าคงคลังไม่ออกใบแจ้งหนี้รายงาน (10540) เป็นดังนี้:
รหัสที่มีอยู่...</TableCell>
</TableCells>
<Visibility>
// Delete the following line.
<Hidden>=iif (Fields!PrintDetails.Value and Fields!Value_Entry_Entry_No_.Value > 0,FALSE,TRUE)</Hidden>
// End of the deleted line.
</Visibility>
</TableRow>
</TableRows>
...รหัสแทน
...</TableCell>
</TableCells>
<Visibility>
// Adding the following line.
<Hidden>=iif (Fields!PrintDetails.Value and Fields!Value_Entry_Entry_No_.Value and Fields!Value_Entry__Invoiced_Quantity_.Value <> 0,FALSE,TRUE)</Hidden>
// End of the added line.
</Visibility>
</TableRow>
</TableRows>
... -
เปลี่ยนรหัสในข้อมูลหมายเลขสินค้า 1 ส่วนในการจัดส่งสินค้าคงคลังไม่ออกใบแจ้งหนี้รายงาน (10541) เป็นดังนี้:
รหัสที่อยู่ 1...VertAlign=Bottom;
FontBold=Yes;
MultiLine=Yes;
DataSetFieldName=Value_Entry__Cost_Amount__Actual__Caption }
{ 1040026;Label ;15000;846 ;1500 ;846 ;ParentControl=1040025;
HorzAlign=Right;
...รหัสแทนที่ 1
...VertAlign=Bottom;
FontBold=Yes;
MultiLine=Yes;
// Add the following line.
CaptionML=ENU=Cost Amount (Actual);
// End of the added line.
DataSetFieldName=Value_Entry__Cost_Amount__Actual__Caption }
{ 1040026;Label ;15000;846 ;1500 ;846 ;ParentControl=1040025;
HorzAlign=Right;
...รหัสที่มีอยู่ 2
...VertAlign=Bottom;
FontBold=Yes;
MultiLine=Yes;
DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__Caption }
{ 1040042;Label ;5700 ;0 ;1550 ;846 ;ParentControl=1040040;
VertAlign=Bottom;
...รหัสแทนที่ 2
...VertAlign=Bottom;
FontBold=Yes;
MultiLine=Yes;
// Add the following line.
CaptionML=ENU=Cost Amount (Expected);
// End of the added line.
DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__Caption }
{ 1040042;Label ;5700 ;0 ;1550 ;846 ;ParentControl=1040040;
VertAlign=Bottom;
...รหัสที่มีอยู่ 3
...SourceExpr=Text1040005 + ' ' + Item."No.";
DataSetFieldName=Text1040005_________Item__No__ }
{ 1040054;TextBox ;16650;0 ;1500 ;423 ;FontBold=Yes;
// Delete the following line.
SourceExpr="Value Entry"."Cost Amount (Actual)";
// End of the deleted line.
DataSetFieldName=Value_Entry___Cost_Amount__Actual__ }
{ 1040059;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
CaptionML=ENU=Rec. not invoiced;
...รหัสแทนที่ 3
...SourceExpr=Text1040005 + ' ' + Item."No.";
DataSetFieldName=Text1040005_________Item__No__ }
{ 1040054;TextBox ;16650;0 ;1500 ;423 ;FontBold=Yes;
// Add the following line.
SourceExpr=-"Value Entry"."Cost Amount (Actual)";
// End of the added line.
DataSetFieldName=Value_Entry___Cost_Amount__Actual__ }
{ 1040059;TextBox ;7350 ;0 ;1550 ;423 ;FontBold=Yes;
CaptionML=ENU=Rec. not invoiced;
...รหัสที่มีอยู่ 4
...DataSetFieldName=Value_Entry___Invoiced_Quantity__Control1040070 }
{ 1040071;TextBox ;16650;423 ;1500 ;423 ;FontSize=7;
FontBold=Yes;
// Delete the following line.
SourceExpr="Value Entry"."Cost Amount (Actual)";
// End of the deleted line.
DataSetFieldName=Value_Entry___Cost_Amount__Actual___Control1040071 }
{ 1040072;Label ;0 ;423 ;5550 ;423 ;FontSize=9;
FontBold=Yes;
...รหัสแทนที่ 4
...DataSetFieldName=Value_Entry___Invoiced_Quantity__Control1040070 }
{ 1040071;TextBox ;16650;423 ;1500 ;423 ;FontSize=7;
FontBold=Yes;
// Add the following line.
SourceExpr=-"Value Entry"."Cost Amount (Actual)";
// End of the added line.
DataSetFieldName=Value_Entry___Cost_Amount__Actual___Control1040071 }
{ 1040072;Label ;0 ;423 ;5550 ;423 ;FontSize=9;
FontBold=Yes;
... -
เปลี่ยนรหัสในข้อมูล 2 หมายเลขของสินค้าในสินค้าคงคลังการจัดส่งไม่ออกใบแจ้งหนี้รายงาน (10541) เป็นดังนี้:
รหัสที่อยู่ 1...OnAfterGetRecord=BEGIN
NoOfItems := NoOfItems + 1;
CurrReport.CREATETOTALS("Value Entry"."Cost Amount (Actual)","Value Entry"."Invoiced Quantity");
// Delete the following lines.
ItemCostAmount += "Cost Amount (Expected)";
ItemShippedQty += -Quantity;
ItemInvoicedQty += -"Invoiced Quantity";
ItemCostAmtExpected += "Cost Amount (Expected)";
ItemCostAmountTotal += "Cost Amount (Expected)";
ItemShippedQtyTotal += -Quantity;
ItemInvoicedQtyTotal += -"Invoiced Quantity";
ItemCostAmtExpectedTotal += "Cost Amount (Expected)";
// End of the deleted lines.
END;
DataItemLink=Item No.=FIELD(No.);
...รหัสแทนที่ 1
...OnAfterGetRecord=BEGIN
NoOfItems := NoOfItems + 1;
CurrReport.CREATETOTALS("Value Entry"."Cost Amount (Actual)","Value Entry"."Invoiced Quantity");
// Add the following lines.
CALCFIELDS("Cost Amount (Actual)");
CALCFIELDS("Cost Amount (Expected)");
ItemCostAmount -= ("Cost Amount (Expected)" + "Cost Amount (Actual)");
ItemShippedQty -= Quantity;
ItemInvoicedQty -= "Invoiced Quantity";
ItemCostAmtExpected -= ("Cost Amount (Expected)" + "Cost Amount (Actual)");
ItemCostAmountTotal -= ("Cost Amount (Expected)" + "Cost Amount (Actual)");
ItemShippedQtyTotal -= Quantity;
ItemInvoicedQtyTotal -= "Invoiced Quantity";
ItemCostAmtExpectedTotal -= ("Cost Amount (Expected)" + "Cost Amount (Actual)");
// End of the added lines.
END;
DataItemLink=Item No.=FIELD(No.);
...รหัสที่มีอยู่ 2
...{ 1040047;TextBox ;2100 ;0 ;1500 ;423 ;HorzAlign=Left;
SourceExpr="Source No.";
DataSetFieldName=Item_Ledger_Entry__Source_No__ }
// Delete the following line.
{ 1040030;TextBox ;13050;0 ;1800 ;423 ;SourceExpr="Cost Amount (Expected)";
// End of the deleted line.
DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__ }
{ 1040082;TextBox ;18000;0 ;150 ;423 ;Name="Entry No.";
Visible=No;
...รหัสแทนที่ 2
...{ 1040047;TextBox ;2100 ;0 ;1500 ;423 ;HorzAlign=Left;
SourceExpr="Source No.";
DataSetFieldName=Item_Ledger_Entry__Source_No__ }
// Add the following line.
{ 1040030;TextBox ;13050;0 ;1800 ;423 ;SourceExpr=-("Cost Amount (Expected)" + "Cost Amount (Actual)");
// End of the added line.
DataSetFieldName=Item_Ledger_Entry__Cost_Amount__Expected__ }
{ 1040082;TextBox ;18000;0 ;150 ;423 ;Name="Entry No.";
Visible=No;
... -
เปลี่ยนรหัสในข้อมูล 3 หมายเลขของสินค้าในสินค้าคงคลังการจัดส่งไม่ออกใบแจ้งหนี้รายงาน (10541) เป็นดังนี้:
รหัสที่อยู่ 1...OnPreDataItem=BEGIN
IF EndDate <> 0D THEN
SETRANGE("Posting Date",0D,EndDate);
// Delete the following lines.
SETFILTER("Invoiced Quantity",'<>%1',0);
CurrReport.CREATETOTALS("Cost Amount (Actual)","Invoiced Quantity");
END;
OnAfterGetRecord=BEGIN
ValueInvoicedQty += -"Invoiced Quantity";
ValueCostAmtActual += "Cost Amount (Actual)";
ValueInvoicedQtyTotal += -"Invoiced Quantity";
ValueCostAmtActualTotal += "Cost Amount (Actual)";
// End of the deleted lines.
END;
DataItemLink=Item Ledger Entry No.=FIELD(Entry No.);
...รหัสแทนที่ 1
...OnPreDataItem=BEGIN
IF EndDate <> 0D THEN
SETRANGE("Posting Date",0D,EndDate);
// Add the following lines.
CurrReport.CREATETOTALS("Cost Amount (Actual)","Invoiced Quantity");
LastDocumentNo := '';
END;
OnAfterGetRecord=BEGIN
ValueInvoicedQty -= "Invoiced Quantity";
ValueCostAmtActual -= "Cost Amount (Actual)";
ValueInvoicedQtyTotal -= "Invoiced Quantity";
ValueCostAmtActualTotal -= "Cost Amount (Actual)";
CalcSumDocumentNo("Value Entry");
// End of the added lines.
END;
DataItemLink=Item Ledger Entry No.=FIELD(Entry No.);
...รหัสที่มีอยู่ 3
...SectionWidth=18150;
SectionHeight=423;
OnPreSection=BEGIN
// Delete the following line.
CurrReport.SHOWOUTPUT(PrintDetails);
// End of the deleted line.
END;
}
...รหัสแทนที่ 3
...SectionWidth=18150;
SectionHeight=423;
OnPreSection=BEGIN
// Add the following line.
CurrReport.SHOWOUTPUT(PrintDetails AND ("Invoiced Quantity" <> 0));
// End of the added line.
END;
}
...รหัสที่มีอยู่ 4
...{ 1040025;TextBox ;15000;0 ;1500 ;423 ;CaptionML=ENU=Invoiced Quantity;
SourceExpr=-"Invoiced Quantity";
DataSetFieldName=Value_Entry__Invoiced_Quantity_ }
// Delete the following line.
{ 1040027;TextBox ;16650;0 ;1500 ;423 ;SourceExpr="Cost Amount (Actual)";
// End of the deleted line.
DataSetFieldName=Value_Entry__Cost_Amount__Actual__ }
}
}
...รหัสแทนที่ 4
...{ 1040025;TextBox ;15000;0 ;1500 ;423 ;CaptionML=ENU=Invoiced Quantity;
SourceExpr=-"Invoiced Quantity";
DataSetFieldName=Value_Entry__Invoiced_Quantity_ }
// Add the following line.
{ 1040027;TextBox ;16650;0 ;1500 ;423 ;SourceExpr=-"Cost Amount (Actual)";
// End of the added line.
DataSetFieldName=Value_Entry__Cost_Amount__Actual__ }
}
}
... -
เปลี่ยนรหัสในข้อมูล 4 จำนวนของสินค้าในสินค้าคงคลังการจัดส่งไม่ออกใบแจ้งหนี้รายงาน (10541) เป็นดังนี้:
รหัสที่มีอยู่...SourceExpr=-"Value Entry"."Invoiced Quantity";
DataSetFieldName=Value_Entry___Invoiced_Quantity__Control1040036 }
{ 1040044;TextBox ;16650;0 ;1500 ;423 ;FontBold=Yes;
// Delete the following line.
SourceExpr="Value Entry"."Cost Amount (Actual)";
// End of the deleted line.
DataSetFieldName=Value_Entry___Cost_Amount__Actual___Control1040044 }
{ 1040029;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
SourceExpr=Text1040005 + ' ' + Item."No.";
...รหัสแทน
...SourceExpr=-"Value Entry"."Invoiced Quantity";
DataSetFieldName=Value_Entry___Invoiced_Quantity__Control1040036 }
{ 1040044;TextBox ;16650;0 ;1500 ;423 ;FontBold=Yes;
// Add the following line.
SourceExpr=-"Value Entry"."Cost Amount (Actual)";
// End of the added line.
DataSetFieldName=Value_Entry___Cost_Amount__Actual___Control1040044 }
{ 1040029;TextBox ;0 ;0 ;5400 ;423 ;FontBold=Yes;
SourceExpr=Text1040005 + ' ' + Item."No.";
... -
เปลี่ยนแปลงรหัสในตัวแปรส่วนกลางในการจัดส่งสินค้าคงคลังไม่ออกใบแจ้งหนี้รายงาน (10541) เป็นดังนี้:
รหัสที่อยู่ 1...ItemCostAmtExpectedTotal@1040016 : Decimal;
ValueInvoicedQtyTotal@1040019 : Decimal;
ValueCostAmtActualTotal@1040020 : Decimal;
BEGIN
{
...รหัสแทนที่ 1
...ItemCostAmtExpectedTotal@1040016 : Decimal;
ValueInvoicedQtyTotal@1040019 : Decimal;
ValueCostAmtActualTotal@1040020 : Decimal;
// Add the following lines.
LastDocumentNo@1040023 : Code[20];
LOCAL PROCEDURE CalcSumDocumentNo@1040000(VAR ValueEntry@1040000 : Record 5802);
VAR
ValueEntry1@1040001 : Record 5802;
ValueCostAmtActualPer@1040002 : Decimal;
ValueIncoicedQtyPer@1040003 : Decimal;
BEGIN
IF LastDocumentNo = ValueEntry."Document No." THEN BEGIN
ValueEntry."Cost Amount (Actual)" := 0;
ValueEntry."Invoiced Quantity" := 0;
END ELSE BEGIN
WITH ValueEntry1 DO BEGIN
COPYFILTERS(ValueEntry);
SETRANGE("Document No.",ValueEntry."Document No.");
IF FINDSET THEN
REPEAT
ValueCostAmtActualPer += "Cost Amount (Actual)";
ValueIncoicedQtyPer += "Invoiced Quantity";
UNTIL NEXT = 0;
END;
ValueEntry."Cost Amount (Actual)" := ValueCostAmtActualPer;
ValueEntry."Invoiced Quantity" := ValueIncoicedQtyPer;
LastDocumentNo := ValueEntry."Document No.";
END;
END;
// End of the added lines.
BEGIN
{
...รหัสที่มีอยู่ 2
...</TableCell>
</TableCells>
<Visibility>
// Delete the following line.
<Hidden>=IIF(First(Fields!PrintDetails.Value) And (Fields!Value_Entry__Document_No__.Value<>""),False,True)</Hidden>
// End of the deleted line.
</Visibility>
</TableRow>
</TableRows>
...รหัสแทนที่ 2
...</TableCell>
</TableCells>
<Visibility>
// Add the following line.
<Hidden>=IIF(First(Fields!PrintDetails.Value) And (Fields!Value_Entry__Document_No__.Value<>"") And (Fields!Value_Entry__Invoiced_Quantity_.Value <>0),False,True)</Hidden>
// End of the added line.
</Visibility>
</TableRow>
</TableRows>
...
ข้อกำหนดเบื้องต้น
คุณต้องมีการแปลภาษาอังกฤษของ Microsoft Dynamics NAV 2009 R2 หรือ SP1 ติดตั้งอยู่เพื่อใช้โปรแกรมแก้ไขด่วนนี้
ข้อมูลการเอาออก
คุณไม่สามารถเอาโปรแกรมแก้ไขด่วนนี้
สถานะ
Microsoft ยืนยันว่านี่เป็นปัญหาในผลิตภัณฑ์ของ Microsoft ซึ่งแสดงไว้ในส่วน "นำไปใช้กับ"
หมายเหตุ นี่คือบทความ "เผยแพร่เร็ว" ที่สร้างขึ้นโดยตรงจากภายใน Microsoft สนับสนุนองค์กร ข้อมูลในที่นี้ให้ไว้ตามสภาพ เพื่อตอบสนองกับปัญหาที่เกิดขึ้นใหม่ เป็นผลมาจากความเร็วในการทำให้พร้อมใช้งาน วัสดุอาจรวมถึงข้อผิดพลาดการพิมพ์ผิด และอาจแก้ไขได้ตลอดเวลาโดยไม่ต้องแจ้งให้ทราบ ดูข้อตกลงการใช้สำหรับข้อควรพิจารณาอื่น ๆ