ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Codeunit 22 Allow Negative Consumption

Open kylehardin6 opened this issue 7 years ago • 4 comments

We have a customer that has a requirement to have production orders be able to consume raw materials to negative inventory. Codeunit 22 has two places that prevent that. There are two places we had to modify:

// Post Routing Link with negative output quantity //IF "Output Quantity" >= 0 THEN IF "Output Quantity" <> 0 THEN FlushOperation(ProdOrder,ProdOrderLine);

// Allow posting of negative output without Applies-to Entry MfgItem.GET(ProdOrderLine."Item No."); IF ("Applies-to Entry" <> 0) OR (MfgItem."Costing Method" <> MfgItem."Costing Method"::Standard) THEN BEGIN TESTFIELD("Applies-to Entry"); ItemLedgerEntry.GET("Applies-to Entry"); TESTFIELD("Lot No.",ItemLedgerEntry."Lot No."); TESTFIELD("Serial No.",ItemLedgerEntry."Serial No."); END;

I have attached our modified version of Cod22. I am not actually sure what the event publisher structure should look like. COD22.txt

kylehardin6 avatar Oct 25 '19 14:10 kylehardin6

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Nov 11 '19 12:11 bc-ghost

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Nov 12 '19 10:11 bc-ghost

Any chance this will make the 15.2 list?

kylehardin6 avatar Dec 03 '19 14:12 kylehardin6

Looks like this is included in 15.3 Tasty, tasty new events...

kylehardin6 avatar Feb 26 '20 21:02 kylehardin6