POS rounded total for only certain mode of payment

Is there a way to choose rounding only for cash and disable rounding for other method of payments such as credit card, etc… in the POS of erpnext?