refs #5639 order
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-05-23 13:23:46 +02:00
parent e2bea16e68
commit 4f5bd95d21
3 changed files with 8 additions and 9 deletions

View File

@ -33,12 +33,12 @@
"country": {
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryFk"
"foreignKey": "country"
},
"payMethod": {
"type": "belongsTo",
"model": "PayMethod",
"foreignKey": "payMethodFk"
"foreignKey": "payMethod"
}
}
}

View File

@ -57,10 +57,10 @@
<th field="salesPersonFk">
<span translate>Comercial</span>
</th>
<th field="countryFk">
<th field="country">
<span translate>Country</span>
</th>
<th field="payMethodFk"
<th field="payMethod"
vn-tooltip="Pay Method">
<span translate>P.Method</span>
</th>

View File

@ -30,10 +30,10 @@ export default class Controller extends Section {
valueField: 'id',
}
}, {
field: 'countryFk',
field: 'country',
autocomplete: {
showField: 'country',
valueField: 'id'
valueField: 'country'
}
}, {
field: 'payMethodFk',
@ -144,7 +144,6 @@ export default class Controller extends Section {
const params = {
defaulters: this.checked,
observation: this.defaulter.observation,
country: this.defaulter.countryFk
};
this.$http.post(`Defaulters/observationEmail`, params);
}
@ -155,8 +154,8 @@ export default class Controller extends Section {
case 'amount':
case 'clientFk':
case 'workerFk':
case 'countryFk':
case 'payMethodFk':
case 'country':
case 'payMethod':
case 'salesPersonFk':
return {[`d.${param}`]: value};
case 'created':