fixed bug in invoice total field