15

Unable to increase the Line amount Excl Vat on Purchase Invoices, receiving an error message stating:

 

"You have set the line amount to a value that results in a discount that is not valid. Consider increasing the unit cost instead"


This has been possible in previous versions.


Microsoft advice:


The current behavior is due to a system limitation. Any changes to this now would be considered a breaking change, especially given the complexities of working with system rounding. The team is cautious about making alterations that could impact existing workflows.

 

While there is a roadmap for addressing this issue in the future, we unfortunately cannot provide a specific ETA at this time.

 

In the meantime, the recommended workaround is to either increase the Direct Unit Cost or create an external extension to input this event raised by "Purchase Line" table and handle the line amount check in the subscriber code, set IsHandled to true, then compile and publish the extension to the affected BC Online environment.

 [IntegrationEvent(false, false)]

 local procedure OnBeforeCheckLineAmount(var PurchaseLine: Record "Purchase Line"; MaxLineAmount: Decimal; var IsHandled: Boolean; CalledByFieldNo: Integer)

 begin

 end;

Category: Purchasing
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team