fixes error in sale#add_invoice_number