invoice assoc function need to be addressed with key value problem where key is the item_id and value should be accumulated