[IMP] amount_to_invoice column must be calculed with 'open' and 'done' invoices, add filter for this field