fix total calculation
add generated invoice number