S c e n a r i o
First i would like to mention that it was just working fine until we restarted the integration framework.
The issue with any Invoice created in the CCO with a BOM sales item, it should add the correct Warehouse of the main item to the components but it adds the default warehouse.
B1if Version 1.22.36
sap.CustomerCheckout 4.0.41
sap.CCO.Extension 3.2.3
SAP Business One 10.0 version 10.00.160
A c t u a l r e s u l t
The invoice is coming with the default warehouse
E x p e c t e d r e s u l t
The invoice should come to SAP B1 with the correct warehouse not the default warehouse