3
ISSUE
Any document posting (sales, Purchase and Service ) must fill the Invoice Posting Buffer table. But the primary key is fixed and we can't modify this when we develop an extension.

ONE SOLUTION
I propose to modify this key in order to calculate the break according to fields that we can add in our developpment.

To do that, you just must create a unique key that defines the combination that references a set of fields.

For this, we can use a primary key based on the calculation of a cheksum of a string type. Since this checksum is unique for a given combination, it will suffice to add, to the string, our fields we want to add to define a new combination to the primary key.

This code can call before inserting data into this table and you can publish an event to allow us to add fields in the combination calculation

RISK
The potential risks would be related to the validation order of this table in the document validation codeunit if the execution order is really important.
Category: Sales
STATUS DETAILS
Planned
2022 Release Wave 1
Ideas Administrator

Thank you for your feedback. This is a great suggestion! We are adding it to our roadmap.


Your help is greatly appreciated,
Business Central Team