How you record a credit sales?

credit your stock for stocks going out of the account debit the debtors for stock going into his account