On com_sales, made sure to use the config option use_commission before running the add_commission function in a return .