feat(supllier.summary): add two fields
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
5211a0d9d7
commit
76ff6330f9
|
@ -0,0 +1,2 @@
|
|||
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, 'principalId')
|
||||
VALUES('SupplierActivity', '*', '*', 'ALLOW', 'ROLE', 'employee');
|
|
@ -41,7 +41,9 @@ module.exports = Self => {
|
|||
'sageTaxTypeFk',
|
||||
'sageTransactionTypeFk',
|
||||
'sageWithholdingFk',
|
||||
'workerFk'
|
||||
'workerFk',
|
||||
'supplierActivityFk',
|
||||
'healthRegister'
|
||||
],
|
||||
include: [
|
||||
{
|
||||
|
@ -98,6 +100,12 @@ module.exports = Self => {
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
relation: 'supplierActivity',
|
||||
scope: {
|
||||
fields: ['code', 'name']
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
let supplier = await Self.app.models.Supplier.findOne(filter);
|
||||
|
|
|
@ -56,6 +56,14 @@ module.exports = Self => {
|
|||
{
|
||||
arg: 'countryFk',
|
||||
type: 'any'
|
||||
},
|
||||
{
|
||||
arg: 'supplierActivityFk',
|
||||
type: 'string'
|
||||
},
|
||||
{
|
||||
arg: 'healthRegister',
|
||||
type: 'string'
|
||||
}],
|
||||
returns: {
|
||||
arg: 'res',
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
</vn-crud-model>
|
||||
<vn-crud-model
|
||||
auto-load="true"
|
||||
url="SupplierActivity"
|
||||
data="supplierActivity">
|
||||
url="SupplierActivities"
|
||||
data="supplierActivities">
|
||||
</vn-crud-model>
|
||||
<form name="form" vn-http-submit="watcher.submit()" class="vn-w-md">
|
||||
<vn-card class="vn-pa-lg">
|
||||
|
@ -95,8 +95,8 @@
|
|||
<vn-horizontal>
|
||||
<vn-autocomplete vn-one
|
||||
ng-model="$ctrl.supplier.supplierActivityFk"
|
||||
data="supplierActivity"
|
||||
show-field="code"
|
||||
data="supplierActivities"
|
||||
show-field="name"
|
||||
value-field="code"
|
||||
label="Supplier activity"
|
||||
rule>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
Sage tax type: Tipo de impuesto Sage
|
||||
Sage transaction type: Tipo de transacción Sage
|
||||
Sage withholding: Retención Sage
|
||||
Supplier activity: Actividad proveedor
|
||||
Healt register: Pasaporte sanitario
|
||||
|
|
|
@ -118,6 +118,13 @@
|
|||
label="Sage withholding"
|
||||
value="{{::$ctrl.summary.sageWithholding.withholding}}">
|
||||
</vn-label-value>
|
||||
<vn-label-value
|
||||
label="Supplier activity"
|
||||
value="{{::$ctrl.summary.supplierActivity.name}}">
|
||||
</vn-label-value>
|
||||
<vn-label-value
|
||||
label="Healt register"
|
||||
value="{{::$ctrl.summary.healthRegister}}">
|
||||
</vn-one>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
|
|
|
@ -7,4 +7,6 @@ Sage tax type: Tipo de impuesto Sage
|
|||
Sage transaction type: Tipo de transacción Sage
|
||||
Sage withholding: Retencion Sage
|
||||
Go to the supplier: Ir al proveedor
|
||||
Responsible: Responsable
|
||||
Responsible: Responsable
|
||||
Supplier activity: Actividad proveedor
|
||||
Healt register: Pasaporte sanitario
|
Loading…
Reference in New Issue