bug at the time of the payment

if stock=0 and checkAvailableStock=0