Adjust Cost - Item Entries with Item Filter

tompynationtompynation Member Posts: 398
I was following this solution: viewtopic.php?f=23&t=18943

But it doesnt seem to work, anyone else tried it already?

When i make all code modification mentioned in the post and then run the report with an Item Filter, it is still running for every item?

When i use the debugger and trace code i see following problem:

Report - OnPreReport()
InvtAdjmt.SetupItemFilter(Item);

So for example i set the Filter on Item No. "H305W", then when i put a breakpoint on the line InvtAdjmt.SetupItemFilter(Item);

I copy the Item to the watch and see the following:
0,,,,No,0,0,0,Profit=Price-Cost,0,FIFO,0,0,0,0,No,No,,,,0,0,0,,0,0,,0,0,0,0,,,,0,,0,0,0,No,,No,,, ,,No,,,,Never,,,0,0,,,0,00,0,00,0,No,0,0,0,0,0,,Manual,Purchase,0,,,, ,No,Make-to-Stock,,,No,,,,,,,,,,,,,No,No,No,No,No,0,0,0,0,000,0,0,0,000,0,0,0,000,0,0,0,000,0,0,0,000,0,0,,,,,0,000,0,0,0,000,0,0,,,,,,0,0,0,0,,,0,0,0,0,0,0,0,0,0,None,No,,,,,,No,,,,,,No,No,No,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,No,No,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

So this is a blank item, not the Item "H305W" :?:

So the filter will never work, why is this? Does the solution in that topic doesnt work?

Answers

Sign In or Register to comment.