How to save a Purchase voucher if the following error ‘Supplier mismatch! ‘ occurs? OK

Cause:
While doing manual Purchase voucher, System will not allow to add or edit and save the Purchase voucher record, if the advance payable has different sundry code then the supplier code in header. System will show the following error ‘Supplier mismatch!’ or ‘The supplier specified in the voucher header is not matching with the sundry code the advance being adjusted’.
Remedies:
While entering a manual Purchase payable voucher for advance adjustment, Users should ensure that the supplier code selected in the header screen and the sundry code of Purchase receipt reference number should be the same.