7489-testToMaster #2515
|
@ -26,7 +26,7 @@
|
||||||
"sageWithholding": {
|
"sageWithholding": {
|
||||||
"type": "belongsTo",
|
"type": "belongsTo",
|
||||||
"model": "SageWithholding",
|
"model": "SageWithholding",
|
||||||
"foreignKey": "sageWithholdingFk"
|
"foreignKey": "sageFarmerWithholdingFk"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [{
|
"acls": [{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<vn-crud-model
|
<vn-crud-model
|
||||||
url="InvoiceInConfigs"
|
url="InvoiceInConfigs"
|
||||||
data="$ctrl.config"
|
data="$ctrl.config"
|
||||||
filter="{fields: ['sageWithholdingFk']}"
|
filter="{fields: ['sageFarmerWithholdingFk']}"
|
||||||
id-value="1"
|
id-value="1"
|
||||||
auto-load="true">
|
auto-load="true">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
|
|
|
@ -112,7 +112,7 @@ class Controller extends Descriptor {
|
||||||
}
|
}
|
||||||
|
|
||||||
isAgricultural() {
|
isAgricultural() {
|
||||||
return this.invoiceIn.supplier.sageWithholdingFk == this.config[0].sageWithholdingFk;
|
return this.invoiceIn.supplier.sageWithholdingFk == this.config[0].sageFarmerWithholdingFk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue