The current codebase is actually pretty good at handling this case. If a vendor invoice is issued and there are non-allocated sales invoice items, those get allocated and COGS gets moved. Same regarding the inverse. Best Wishes, Chris Travers