Buy, sell, pay and invoice based on variable weights