bug at the time of the payment

if stock=0 and checkAvailableStock=0
Merge pull request #648 from zzuutt/fix-update-stock-with-stock-and-checkAvailableStock-=-0

fix bug at the time of the payment when stock=0 and checkAvailableStock=0