refs #5760 update getChanges, traduccion
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
dd72ac9107
commit
bdffc0401f
|
@ -1,6 +1,6 @@
|
|||
extends: [eslint:recommended, google, plugin:jasmine/recommended]
|
||||
parserOptions:
|
||||
ecmaVersion: 2018
|
||||
ecmaVersion: 2020
|
||||
sourceType: "module"
|
||||
plugins:
|
||||
- jasmine
|
||||
|
@ -35,4 +35,4 @@ rules:
|
|||
space-in-parens: ["error", "never"]
|
||||
jasmine/no-focused-tests: 0
|
||||
jasmine/prefer-toHaveBeenCalledWith: 0
|
||||
arrow-spacing: ["error", { "before": true, "after": true }]
|
||||
arrow-spacing: ["error", { "before": true, "after": true }]
|
||||
|
|
|
@ -61,15 +61,15 @@ module.exports = Self => {
|
|||
const oldQuantity = log.oldInstance.quantity;
|
||||
const newQuantity = log.newInstance?.quantity || 0;
|
||||
|
||||
if (oldQuantity || newQuantity) {
|
||||
const changeMessage = $t('Change quantity', {
|
||||
concept: log.changedModelValue,
|
||||
oldQuantity: oldQuantity || 0,
|
||||
newQuantity: newQuantity || 0,
|
||||
});
|
||||
changes.push(changeMessage);
|
||||
if (oldQuantity > newQuantity) {
|
||||
const changeMessage = $t('Change quantity', {
|
||||
concept: log.changedModelValue,
|
||||
oldQuantity: oldQuantity || 0,
|
||||
newQuantity: newQuantity || 0,
|
||||
});
|
||||
changes.push(changeMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return changes.join('\n');
|
||||
};
|
||||
|
|
|
@ -23,4 +23,4 @@ Restore ticket: Restaurar ticket
|
|||
You are going to restore this ticket: Vas a restaurar este ticket
|
||||
Are you sure you want to restore this ticket?: ¿Seguro que quieres restaurar el ticket?
|
||||
Are you sure you want to refund all?: ¿Seguro que quieres abonar todo?
|
||||
Send changes: "Verdnatura le recuerda:\rPedido {{ticketId}} día {{created | date: 'dd/MM/yyyy'}}\r{{changes}}"
|
||||
Send changes: "Verdnatura:\rPedido {{ticketId}}\r{{changes}}"
|
||||
|
|
Loading…
Reference in New Issue