A little while ago, one of our clients, who run 3.70, asked us to put in a negative stock check into their system, which we did. As part of this I put in an exception in, in codeunit 21, so that in the event that the transaction was an adjust costs one, then the check would be over looked.
To get this to work I added an extra Boolean field to the Item Journal table to indicate that this was an adjust costs transaction & put in an extra line of code in the InsertAdjmtEntry function of the ‘Inventory Adjustment’ codeunit to mark this as true.
Another of our clients has asked us for the same feature and I am looking for the relevant function that creates the journal lines to create the adjustment entries in the ‘Inventory Adjustment’ codeunit. However in this case the client runs a 3.10 database and the InsertAdjmtEntry function does not exist there and I do not seem to be able to find a corresponding function that does this.
Please could someone point me in the right direction?