use quantity for generating invoice when quantityd is null
setup fix