Fixed bank search expression
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-08-27 11:58:28 +02:00
parent f14b484faf
commit 914407012a
2 changed files with 4 additions and 9 deletions

View File

@ -1,7 +1,7 @@
import selectors from '../../helpers/selectors';
import getBrowser from '../../helpers/puppeteer';
describe('Client balance path', () => {
fdescribe('Client balance path', () => {
let browser;
let page;
beforeAll(async() => {

View File

@ -2,13 +2,6 @@
New payment
</tpl-title>
<tpl-body>
<vn-crud-model
url="Banks"
include="{relation: 'accountingType'}"
data="banks"
order="id"
auto-load="true">
</vn-crud-model>
<vn-horizontal>
<vn-date-picker
label="Date"
@ -25,9 +18,11 @@
<vn-horizontal>
<vn-autocomplete
label="Bank"
data="banks"
url="Banks"
show-field="bank"
value-field="id"
fields="['accountingTypeFk']"
include="{relation: 'accountingType'}"
order="id"
ng-model="$ctrl.receipt.bankFk"
search-function="{or: [{id: $search}, {bank: {like: '%'+ $search +'%'}}]}"