I want to register a transfer request out of stock. I changed the code from codeunit 22 to not display the error: "no existing stocks." but that's no amount on "transit " location. Why is this ??...
I am watching codeunit 22 and I see that in the "ApplyItemLedgEntry" function didn´t find itemLedgerentry an beacause of this AppliedQty doesn´t modify it´s value.
0
Answers
You shouldn't post something until it actually happens. Why are you trying to do this? What is the business need?
My Blog - nav.education
WITH ItemJnlLine DO BEGIN
IF ItemLedgEntry.Open THEN BEGIN
//***** AADD0030, UOT, 25/03/10 ;trans between locations
//standard
// IF (((ItemLedgEntry."Entry Type" IN
// [ItemLedgEntry."Entry Type"::"Negative Adjmt.",
// ItemLedgEntry."Entry Type"::Consumption]) AND
// ("Source Type" = "Source Type"::Item)) OR
// (ItemLedgEntry."Entry Type" = ItemLedgEntry."Entry Type"::Transfer)) AND
// (ItemLedgEntry.Quantity < 0)
// THEN
//sendindg whit negative inventory
// IF ((ItemLedgEntry."Entry Type" IN
// [ItemLedgEntry."Entry Type"::"Negative Adjmt.",
// ItemLedgEntry."Entry Type"::Consumption]) AND
// ("Source Type" = "Source Type"::Item)) OR
//***** VADD0009, CF, 18/11/09 ;orders to customers
// 21/12/09: sendindg whit negative inventory
// ((ItemLedgEntry."Entry Type"=ItemLedgEntry."Entry Type"::Sale) AND ("Source Type" = "Source Type"::Customer)) OR
//fin***** VADD0009, CF, 18/11/09 ;PEDIDOS A CLIENTES
//***** AADD0030, UOT, 25/03/10 ;TRASPASO ENTRE ALMACENES
// (ItemLedgEntry."Entry Type" = ItemLedgEntry."Entry Type"::Transfer)) AND
//fin***** AADD0030, UOT, 25/03/10 ;TRASPASO ENTRE ALMACENES
// (ItemLedgEntry.Quantity < 0)
// THEN
IF ((ItemLedgEntry."Entry Type" IN
[ItemLedgEntry."Entry Type"::"Negative Adjmt.",
ItemLedgEntry."Entry Type"::Consumption]) AND
("Source Type" = "Source Type"::Item)) AND
(ItemLedgEntry.Quantity < 0)
THEN
Thank you for your advice
Seriously? This is why implementations go bad. Care about finding the root cause, not putting band-aids on the system.
My Blog - nav.education
My Blog - nav.education
As others said don't think about a solution based on changing standard code.
Pargesoft
i´ll try not to touch the standard code jejeje....regards!!!!!