i want to clear some of my doubt as when we payment to vendor we use Document Type = "Payment "and when we receipt from Customer it is Document Type= “Payment”? why
Depends on your outlook - Payment to a Vendor and a Payment from a Customer - but the main reason if that it is the same field on the General Journal Line table.
This is an option field on the General Journal Line table which is used for both Customer and Vendors so it have the same Option String for both - i.e. it display “Payment” for both Vendors and Customers.