update im_costs after creating invoice, and minor correction regarding invoice_date