Hi Edwin,
The code changes is minimal.
In MInventoryLine.beforeSave, instead of
if (getQtyInternalUse().signum() != 0)
you can use something like :
if (getParent().getTrxType().equals(MInventory.TRXTYPE_INTERNALUSE))
The other places need to change is in the Window, Tab & Field of window Physical Inventory & Internal Use. You now can use TrxType in SQL Where Clause to filter the data.
Or even better idea (I never done this though), you can add DocSubTypeInventory in C_DocType, something like DocSubTypeSo where you can distinguish between the type of orders.
WDYT?
Regards,
Armen