refs #5223 added params
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-02-15 13:14:52 +01:00
parent e68afa3169
commit dca5ae0f72
2 changed files with 4 additions and 4 deletions

View File

@ -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'
}
});

View File

@ -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', {