sales invoice doubt

Hi, I got a small doubt when a sale invoice is created .

My doubt is to which accounts a sale invoice is credited and to which account a sale invoice is debited. Also my doubt is when a sales invoice is posted will that mean that payment has got from the customer if so what are the accounts gets effected

Post an invoice and navigate on it, you will see the sales, debtors, tax etc that have been configured as per the posting groups. So it really depends how you configure the system would be the answer to your question.

The posting of a sales invoice creates a liability for the customer, it does not mean a payment “has got from the customer” although one may of course exist, prepayment or not. Again post a cash receipt journal and see what happens, generally this would be reversing the accounts receivable and putting the money in the bank.