When I post a Item Reclass. Journal Entry , a error msg is occured-
Item XXX Not in Inventory.Where the Item has sufficient inventory in the from Location.
CAL Code details given below.
Codeunit 22
InsertItemLedgEntry() //Function
WITH ItemJnlLine DO BEGIN
IF ItemLedgEntry.Open THEN BEGIN
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
ERROR(Text005,ItemLedgEntry."Item No.");
(ItemLedgEntry.Quantity is less than Zero, but why sir)
Now or Never
0
Comments
When I have commented the error(//ERROR(Text005,ItemLedgEntry."Item No.");
Cost Amount(Actual) is flowing to the To Location but the quantity does not go to the "To Location".
Is it possible????