Just before insert to invoice to db