when create order line with a product has attribute set instance.
current status is: if product has properties isStocked. program check quantity in hand > 0 before save.
add flag IsSOValidateOnHand to M_AttributeSet to delay inventory check to shipment time.
I have added logic delayCheckQtyOnHand into beforSave of orderLine
I will test this and continue fix if has any problem.
I want to add the patch at here to you can review when you have time.
logic of my fix:
+ add flash isDelayCheckQtyOnHand into attributeUse
+ when save order, check if has any attribute has instanceAttribute = true and isDelayCheckQtyOnHand = false and is inputed value then not delayCheckQtyOnHand other delayCheckQtyOnHand
fix logic get current select asi
+ update migration script
+ add code to copy attribute set install from order line to production line
+ fix some error after test
This was solved in