The issue I’m having is that, when we move stock from an ‘M’ bin (e.g. “M100”) to a non ‘M’ bin (“B100”), it is still printing to Printer_A when it should be printing to Printer_B.
I investigated the transactions, which have Transaction type ‘STK-STK’. I see in the Part Tran table that ‘STK-STK’ creates two transactions:
A minus qty transaction in the original M location (M100)
A plus qty transaction in the new location (B100). (My conditions should exclude the minus transaction).
I then tested moving the stock back from the B100 bin to the M100 bin. Again, it still prints to Printer_A. So both scenarios are validating condition 1 as ‘true’.
Would be grateful for any guidance on where my logic is going wrong.
I believe you are using a different field based on your requirement.
There are 4 fields: PartTran.WarehouseCode and PartTran.BinNum work as “From Warehouse” and “From Bin”
And PartTran.Warehouse2 and PartTran.BinNum2 work as “To Warehouse” and “To Bin”.
Probably, change your field under Condition1 to Bin2 and check, that should help.
I tested this but the problem is that it doesn’t seem to matter which way round the ‘To’ and ‘From’ bins are.
I tested two move transactions:
Bin ‘From’ = M101 and Bin ‘To’ = B101
Bin ‘From’ = B101 and Bin ‘To’ = M101
In both cases, it is validating ‘Condition 1’ as true.
I think it has something to do with the fact that, during a single stock move action, two transactions are created in the PartTran table (positive and negative qty) like so:
ZanebK,
Did you have any luck with fixing this? I’m running into the exact same issue. I have not found a way to filter out the negative quantity record to prevent the label from coming out twice. Thanks.