Fixed validation for empty quantity/price when adding/editing a BasicEntity