fix bugs

when editing sales detail, stock record isn't available in combo stock's
store (because behavior of remote combo) so it will fail on save