So, for instance, if your plumber did some work for you and sends you an invoice afterwards then that debt is discharged if you offer to settle it using a 'legal tender'.
However, shopping in a store is usually not the same because payments do not settle an existing debt.
Again, I'm not sure exactly what El Salvador's new law entails.