mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix: discount & adjustment sale transactions bugs
This commit is contained in:
@@ -413,7 +413,10 @@ export const formatSmsMessage = (message: string, args) => {
|
||||
const variable = `{${key}}`;
|
||||
const value = _.defaultTo(args[key], '');
|
||||
|
||||
formattedMessage = formattedMessage.replace(variable, value);
|
||||
formattedMessage = formattedMessage.replace(
|
||||
new RegExp(variable, 'g'),
|
||||
value
|
||||
);
|
||||
});
|
||||
return formattedMessage;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user