You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
procedure UpdateEntryDescriptionFromSalesLine in codeunit 815 "Sales Post Invoice" is not using SalesLine.GetSalesHeader() to retreive the salesheader.
procedure UpdateEntryDescriptionFromPurchaseLine in codeunit 816 "Purch. Post Invoice" is not using PurchaseLine.GetPurchHeader() to retreive the purchaseheader.
Pieterheinevdm
changed the title
[Bug]:
[Bug]: Using SalesLine.GetSalesHeader() in UpdateEntryDescriptionFromSalesLine
Nov 5, 2024
Pieterheinevdm
changed the title
[Bug]: Using SalesLine.GetSalesHeader() in UpdateEntryDescriptionFromSalesLine
[Bug]: Not Using SalesLine.GetSalesHeader() in UpdateEntryDescriptionFromSalesLine
Nov 5, 2024
Describe the issue
procedure UpdateEntryDescriptionFromSalesLine in codeunit 815 "Sales Post Invoice" is not using SalesLine.GetSalesHeader() to retreive the salesheader.
procedure UpdateEntryDescriptionFromPurchaseLine in codeunit 816 "Purch. Post Invoice" is not using PurchaseLine.GetPurchHeader() to retreive the purchaseheader.
Expected behavior
old:
SalesSetup.Get();
SalesHeader.get(SalesLine."Document Type", SalesLine."Document No.");
new:
SalesSetup.GetRecordOnce();
SalesHeader := SalesLine.GetSalesHeader();
old:
PurchSetup.Get();
PurchaseHeader.get(PurchaseLine."Document Type", PurchaseLine."Document No.");
new:
PurchSetup.GetRecordOnce();
PurchaseHeader := PurchaseLine.GetPurchHeader();
Steps to reproduce
post a sales and purchase document
Additional context
No response
I will provide a fix for a bug
The text was updated successfully, but these errors were encountered: