How to default values set in child table using js or py

in pos profile doctype ,i want payment method are default like cash or creditcard and if any person create pos file he has not any changed in payment method