Merge pull request 'FIX Filter isWorker in DefaulterView' (!3066) from fix_isWorker_defaulter into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #3066 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
d21c31988b
|
@ -54,7 +54,7 @@
|
||||||
<th field="clientFk">
|
<th field="clientFk">
|
||||||
<span translate>Client</span>
|
<span translate>Client</span>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th field="isWorker">
|
||||||
<span translate>Es trabajador</span>
|
<span translate>Es trabajador</span>
|
||||||
</th>
|
</th>
|
||||||
<th field="salesPersonFk">
|
<th field="salesPersonFk">
|
||||||
|
|
|
@ -57,6 +57,11 @@ export default class Controller extends Section {
|
||||||
field: 'observation',
|
field: 'observation',
|
||||||
searchable: false
|
searchable: false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'isWorker',
|
||||||
|
checkbox: true,
|
||||||
|
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'created',
|
field: 'created',
|
||||||
datepicker: true
|
datepicker: true
|
||||||
|
@ -73,9 +78,6 @@ export default class Controller extends Section {
|
||||||
|
|
||||||
set defaulters(value) {
|
set defaulters(value) {
|
||||||
if (!value || !value.length) return;
|
if (!value || !value.length) return;
|
||||||
for (let defaulter of value)
|
|
||||||
defaulter.isWorker = defaulter.businessTypeFk === 'worker';
|
|
||||||
|
|
||||||
this._defaulters = value;
|
this._defaulters = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,6 +166,8 @@ export default class Controller extends Section {
|
||||||
|
|
||||||
exprBuilder(param, value) {
|
exprBuilder(param, value) {
|
||||||
switch (param) {
|
switch (param) {
|
||||||
|
case 'isWorker':
|
||||||
|
return {isWorker: value};
|
||||||
case 'creditInsurance':
|
case 'creditInsurance':
|
||||||
case 'amount':
|
case 'amount':
|
||||||
case 'clientFk':
|
case 'clientFk':
|
||||||
|
|
Loading…
Reference in New Issue