If we are scanning ASI with manual entry and there are qty change per ASI but there is no difference on total stock, storage updation is skipped.
I realized this some days ago, but I though it was me being clumsy. In my use case, ASI can represent slightly different products that are sold and bought at the same price (like, let's say, t-shirt colors - not the actual case but isomorphic to it). However, the same issue can happen if using ASI for serial/lot control:
You have 2 instances of a product with different ASI. You sell one of them, and ship the other by accident. Then comes the day you do inventory and find the mismatch. You try to correct it with a physical inventory process, with qty diff=0, but the system won't let you. Your only solution is to make two physical inventories, one for -1 to one ASI, one for +1 to the other...
Please find Attached patch for fix.
Added additional validation of if manual line MA are created then diff of qty should match to total of line MA.