Hi,
Use different transaction type for sale of Brick and Mortar store and E-commerce sale.
Then create IDocs for both sale transaction type and use some logic such as message function in IDoc to differentiate the sales of Brick and Mortar store and E-commerce sale and create custom implementation in ERP to process these IDocs according to different distribution channel in ERP.
Thanks,
Vikrant.