changed int() to float() to avoid crash with sale.order in