Add ID in typeTransaction on client and supplier #496
|
@ -200,7 +200,7 @@ describe('Client Edit fiscalData path', () => {
|
||||||
it('should confirm the sageTransaction have been edited', async() => {
|
it('should confirm the sageTransaction have been edited', async() => {
|
||||||
const result = await page.waitToGetProperty(selectors.clientFiscalData.sageTransaction, 'value');
|
const result = await page.waitToGetProperty(selectors.clientFiscalData.sageTransaction, 'value');
|
||||||
|
|
||||||
expect(result).toEqual('Regularización de inversiones');
|
expect(result).toEqual('36: Regularización de inversiones');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should confirm the transferor have been edited', async() => {
|
it('should confirm the transferor have been edited', async() => {
|
||||||
|
|
|
@ -24,12 +24,6 @@
|
||||||
data="sageTaxTypes"
|
data="sageTaxTypes"
|
||||||
order="vat">
|
order="vat">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-crud-model
|
|
||||||
auto-load="true"
|
|
||||||
url="SageTransactionTypes"
|
|
||||||
data="sageTransactionTypes"
|
|
||||||
order="transaction">
|
|
||||||
</vn-crud-model>
|
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -69,12 +63,15 @@
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
ng-model="$ctrl.client.sageTransactionTypeFk"
|
ng-model="$ctrl.client.sageTransactionTypeFk"
|
||||||
data="sageTransactionTypes"
|
url="SageTransactionTypes"
|
||||||
show-field="transaction"
|
show-field="transaction"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Sage transaction type"
|
label="Sage transaction type"
|
||||||
|
search-function="{or: [{id: $search}, {transaction: {like: '%'+ $search +'%'}}]}"
|
||||||
vn-acl="salesAssistant"
|
vn-acl="salesAssistant"
|
||||||
|
order="transaction"
|
||||||
rule>
|
rule>
|
||||||
|
<tpl-item>{{id}}: {{transaction}}</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
ng-model="$ctrl.client.transferorFk"
|
ng-model="$ctrl.client.transferorFk"
|
||||||
|
|
|
@ -24,12 +24,6 @@
|
||||||
data="sageTaxTypes"
|
data="sageTaxTypes"
|
||||||
order="vat">
|
order="vat">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-crud-model
|
|
||||||
auto-load="true"
|
|
||||||
url="SageTransactionTypes"
|
|
||||||
data="sageTransactionTypes"
|
|
||||||
order="transaction">
|
|
||||||
</vn-crud-model>
|
|
||||||
<vn-crud-model
|
<vn-crud-model
|
||||||
auto-load="true"
|
auto-load="true"
|
||||||
url="SageWithholdings"
|
url="SageWithholdings"
|
||||||
|
@ -83,11 +77,14 @@
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
ng-model="$ctrl.supplier.sageTransactionTypeFk"
|
ng-model="$ctrl.supplier.sageTransactionTypeFk"
|
||||||
data="sageTransactionTypes"
|
url="SageTransactionTypes"
|
||||||
show-field="transaction"
|
show-field="transaction"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Sage transaction type"
|
label="Sage transaction type"
|
||||||
|
search-function="{or: [{id: $search}, {transaction: {like: '%'+ $search +'%'}}]}"
|
||||||
|
order="transaction"
|
||||||
rule>
|
rule>
|
||||||
|
<tpl-item>{{id}}: {{transaction}}</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
|
Loading…
Reference in New Issue