Why do you need this change?
One of our apps don't write the negative adjustment on the item ledger entries / warehouse entries for the purchase receipts with the project code indicated.
Please see: #28418
Describe the request
On BC26 I would need a new event in function ConsumeWarehouseEntryForJobPurchase in codeunit 7324 "Whse.-Activity-Post", the same as what you did in codeunit 123456 codeunit 5760 Whse.-Post Receipt (see #28418).
The event should be placed at the beginning of the function (for example onBeforeConsumeWarehouseEntryForJobPurchase) and as parameters it should have the same parameter of the procedure and the IsHandled variable
Exited from the event, if IsHandled = true it must exit the function
for example :
onBeforeConsumeWarehouseEntryForJobPurchase(TempWarehouseJournalLine, PostedWhseReceiptLine, IsHandled)
if IsHandled then
exit(false);
Thanks.
Internal work item: AB#610217