Inventory Adjustment problem

Hello Navi 3.6, Average costing per Item, Codeunit 5895 - Inventory Adjustment is posting wrong adjusting enties for tranfers. Normally, when transfer adjustment is nessesery then it is posting two adjustment enries, one for stock outbound entry and second for transit inbound entry and it is correct, sometimes it posts also one record for transit inbound which is double valued qty and double cost amount from correct entry. With this wrong entry the transfer outbound and inbound sum isn’t zero what it must be! This wrong entry is coming for random transfers random times and it havn’t any connection with exact item or tranfer line or etc… I am also trying this procedure with Navi 3.7a CU5895 ver. NAVW13.70.01 and nothing different, still it is posting thoes wrong entries. Example value entries from one transfer shipment document navigation, last entry is the wrong entry: Cost Amount (Actual);Valued Quantity;Invoiced Quantity;Item No.;Location Code;Source Code;Item Ledger Entry No.;Entry No. -317,64;-1;-1;1900-1074;TLN-HULGI;LIIKUMIN;266665;355769 317,64;1;1;1900-1074;TS-ORDI;LIIKUMIN;266666;355770 -513,05;-2;-2;2200-1007;TLN-HULGI;LIIKUMIN;266667;355771 513,05;2;2;2200-1007;TS-ORDI;LIIKUMIN;266668;355772 -217,59;-3;-3;2500-1006;TLN-HULGI;LIIKUMIN;266669;355773 217,59;3;3;2500-1006;TS-ORDI;LIIKUMIN;266670;355774 -18 399,38;-5;-5;4100-1173;TLN-HULGI;LIIKUMIN;266671;355775 18 399,38;5;5;4100-1173;TS-ORDI;LIIKUMIN;266672;355776 1,86;-1;0;1900-1074;TLN-HULGI;ARVETÄPSUS;266665;358609 -1,86;1;0;1900-1074;TS-ORDI;ARVETÄPSUS;266666;358610 -6,7;-5;0;4100-1173;TLN-HULGI;ARVETÄPSUS;266671;358728 6,7;5;0;4100-1173;TS-ORDI;ARVETÄPSUS;266672;358729 13,4;10;0;4100-1173;TS-ORDI;ARVETÄPSUS;266672;358730

Hi, I also faced same problem with ver 3.6. We reported this error to Microsoft,But there is no response.

I think I found, where problem is. When I comment out the red lines then adjustment is working correctly and any more wrong lines not coming. This solution is only prove that those wrong postings are connected with this cycle. As I understand, this cycle must guarantee that if for one Item ledger entry are value entries with defferent doc. no’s then it must post adjusting entry for each doc. no. This can’t work correctly because the variables aren’t initialized before next cycle - this is reason why it is posting the wrong entry with double values. Anyhow i can’t understand why it at all is posting this entry because i have all value entries connected one item entry with same doc. no. and it would not repeat this cycle. Any idea? Codeunit 5895 PROCEDURE AdjustFixedApplications . . PosItemLedgEntry.GET(“Item Ledger Entry No.”); PosValueEntry.SETCURRENTKEY(“Item Ledger Entry No.”,“Expected Cost”,“Document No.”,“Partial Revaluation”,“Entry Type”); PosValueEntry.SETRANGE(“Item Ledger Entry No.”,“Item Ledger Entry No.”); PosValueEntry.SETRANGE(“Entry Type”,PosValueEntry.“Entry Type”::“Direct Cost”); PosValueEntry.SETRANGE(“Item Charge No.”,’’); PosValueEntry.FIND(’+’); //REPEAT //PosValueEntry.SETRANGE(“Document No.”,PosValueEntry.“Document No.”); REPEAT . . UNTIL PosValueEntry.NEXT(-1) = 0; //PosValueEntry.FIND(’-’); //PosValueEntry.SETRANGE(“Document No.”); //UNTIL PosValueEntry.NEXT(-1) = 0; . .