Fixed stock quantity checks to block transactions which would result in negative inventory status (if not allowed).
http://devel.frontaccounting.com/git/?p=fa-stable.git;a=commit;h=ec51d9a922df61d39de8444cd0a3aaf51ebcbf2b