{{$t('Reception')}} administracion@verdnatura.es
diff --git a/print/templates/reports/balance-compensation/locale/es.yml b/print/templates/reports/balance-compensation/locale/es.yml
index 546e55f06..1c76274ae 100644
--- a/print/templates/reports/balance-compensation/locale/es.yml
+++ b/print/templates/reports/balance-compensation/locale/es.yml
@@ -4,13 +4,13 @@ Compensation: Compensación de saldos deudores y acreedores
In one hand: De una parte
CIF: con CIF
NIF: con NIF
-Home: y domicilio sito en
+Home: y domicilio sito en
In other hand: De la otra
Sr: Don/Doña
Agree: Acuerdan
Date: En fecha de
-Compensate: se ha compensado el saldo de
+Compensate: se ha compensado el saldo de
From client: del cliente/proveedor
-To client: con el cliente/proveedor
+Against the balance of: contra el saldo de
Reception: Por favor, rogamos confirmen la recepción de esta compensación al email
-Greetings: Saludos cordiales,
\ No newline at end of file
+Greetings: Saludos cordiales,
diff --git a/print/templates/reports/balance-compensation/sql/client.sql b/print/templates/reports/balance-compensation/sql/client.sql
index b4463be23..c3679b68a 100644
--- a/print/templates/reports/balance-compensation/sql/client.sql
+++ b/print/templates/reports/balance-compensation/sql/client.sql
@@ -4,6 +4,7 @@ SELECT
c.street,
c.fi,
c.city,
+ r.invoiceFk,
r.amountPaid,
r.payed
FROM client c
From e68afa316925d34e17e0e04f220604343a33638d Mon Sep 17 00:00:00 2001
From: alexandre
Date: Wed, 15 Feb 2023 12:59:19 +0100
Subject: [PATCH 2/3] refs #5223 moved sql
---
db/changes/{230402 => 230403}/00-clienteCompensado.sql | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename db/changes/{230402 => 230403}/00-clienteCompensado.sql (100%)
diff --git a/db/changes/230402/00-clienteCompensado.sql b/db/changes/230403/00-clienteCompensado.sql
similarity index 100%
rename from db/changes/230402/00-clienteCompensado.sql
rename to db/changes/230403/00-clienteCompensado.sql
From dca5ae0f72e61720d491515ccf3f3e80894ded78 Mon Sep 17 00:00:00 2001
From: alexandre
Date: Wed, 15 Feb 2023 13:14:52 +0100
Subject: [PATCH 3/3] refs #5223 added params
---
.../back/methods/client/getClientOrSupplierReference.js | 5 ++---
modules/client/front/balance/create/index.js | 3 ++-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/client/back/methods/client/getClientOrSupplierReference.js b/modules/client/back/methods/client/getClientOrSupplierReference.js
index afb427315..4c7201ee3 100644
--- a/modules/client/back/methods/client/getClientOrSupplierReference.js
+++ b/modules/client/back/methods/client/getClientOrSupplierReference.js
@@ -8,15 +8,14 @@ module.exports = Self => {
arg: 'bankAccount',
type: 'number',
required: true,
- description: 'The bank account of a client or a supplier',
- http: {source: 'path'}
+ description: 'The bank account of a client or a supplier'
},
returns: {
type: 'string',
root: true
},
http: {
- path: `/:bankAccount/getClientOrSupplierReference`,
+ path: `/getClientOrSupplierReference`,
verb: 'GET'
}
});
diff --git a/modules/client/front/balance/create/index.js b/modules/client/front/balance/create/index.js
index b22d15936..6d6e99e29 100644
--- a/modules/client/front/balance/create/index.js
+++ b/modules/client/front/balance/create/index.js
@@ -116,7 +116,8 @@ class Controller extends Dialog {
accountShortToStandard(value) {
if (value) {
this.receipt.compensationAccount = value.replace('.', '0'.repeat(11 - value.length));
- this.$http.get(`Clients/${this.receipt.compensationAccount}/getClientOrSupplierReference`)
+ const params = {bankAccount: this.receipt.compensationAccount};
+ this.$http.get(`Clients/getClientOrSupplierReference`, {params})
.then(res => {
if (res.data.clientId) {
this.receipt.description = this.$t('Client Compensation Reference', {