updated model + translations
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-04-15 11:54:40 +02:00
parent 41ab1bbe35
commit 2ebd812a1f
5 changed files with 33 additions and 13 deletions

View File

@ -33,6 +33,12 @@ module.exports = Self => {
scope: { scope: {
fields: ['id', 'name'] fields: ['id', 'name']
} }
},
{
relation: 'sageWithholding',
scope: {
fields: ['withholding']
}
} }
] ]
}; };

View File

@ -33,9 +33,6 @@
"isVatDeductible": { "isVatDeductible": {
"type": "boolean" "type": "boolean"
}, },
"withholdingSageFk": {
"type": "number"
},
"booked": { "booked": {
"type": "date" "type": "date"
}, },
@ -58,6 +55,11 @@
"model": "InvoiceInDueDay", "model": "InvoiceInDueDay",
"foreignKey": "invoiceInFk" "foreignKey": "invoiceInFk"
}, },
"sageWithholding": {
"type": "belongsTo",
"model": "SageWithholding",
"foreignKey": "withholdingSageFk"
},
"company": { "company": {
"type": "belongsTo", "type": "belongsTo",
"model": "Company", "model": "Company",

View File

@ -11,12 +11,15 @@
<vn-date-picker <vn-date-picker
vn-one vn-one
label="Expedition date" label="Expedition date"
ng-model="$ctrl.invoiceIn.issued"> ng-model="$ctrl.invoiceIn.issued"
vn-focus
rule>
</vn-date-picker> </vn-date-picker>
<vn-date-picker <vn-date-picker
vn-one vn-one
label="Operation date" label="Operation date"
ng-model="$ctrl.invoiceIn.operated"> ng-model="$ctrl.invoiceIn.operated"
rule>
</vn-date-picker> </vn-date-picker>
</vn-horizontal> </vn-horizontal>
<vn-horizontal> <vn-horizontal>
@ -29,26 +32,30 @@
value-field="id" value-field="id"
order="nickname" order="nickname"
label="Supplier" label="Supplier"
required="true"> required="true"
rule>
<tpl-item> <tpl-item>
{{::id}} - {{::nickname}} {{::id}} - {{::nickname}}
</tpl-item> </tpl-item>
</vn-autocomplete> </vn-autocomplete>
<vn-textfield <vn-textfield
label="Supplier ref" label="Supplier ref"
ng-model="$ctrl.invoiceIn.supplierRef"> ng-model="$ctrl.invoiceIn.supplierRef"
rule>
</vn-textfield> </vn-textfield>
</vn-horizontal> </vn-horizontal>
<vn-horizontal> <vn-horizontal>
<vn-date-picker <vn-date-picker
vn-one vn-one
label="Entry date" label="Entry date"
ng-model="$ctrl.invoiceIn.bookEntried"> ng-model="$ctrl.invoiceIn.bookEntried"
rule>
</vn-date-picker> </vn-date-picker>
<vn-date-picker <vn-date-picker
vn-one vn-one
label="Accounted date" label="Accounted date"
ng-model="$ctrl.invoiceIn.booked"> ng-model="$ctrl.invoiceIn.booked"
rule>
</vn-date-picker> </vn-date-picker>
</vn-horizontal> </vn-horizontal>
<vn-horizontal> <vn-horizontal>
@ -58,14 +65,16 @@
ng-model="$ctrl.invoiceIn.currencyFk" ng-model="$ctrl.invoiceIn.currencyFk"
url="Currencies" url="Currencies"
show-field="name" show-field="name"
value-field="id"> value-field="id"
rule>
</vn-autocomplete> </vn-autocomplete>
<vn-autocomplete <vn-autocomplete
url="Companies" url="Companies"
label="Company" label="Company"
show-field="code" show-field="code"
value-field="id" value-field="id"
ng-model="$ctrl.invoiceIn.companyFk"> ng-model="$ctrl.invoiceIn.companyFk"
rule>
</vn-autocomplete> </vn-autocomplete>
</vn-horizontal> </vn-horizontal>
</vn-card> </vn-card>

View File

@ -1,2 +1,5 @@
InvoiceIn: Facturas recibidas InvoiceIn: Facturas recibidas
Search invoices in by reference: Buscar facturas recibidas por referencia Search invoices in by reference: Buscar facturas recibidas por referencia
Entries list: Listado de entradas
Invoice list: Listado de entradas
InvoiceIn deleted: Factura eliminada

View File

@ -32,7 +32,7 @@
</vn-label-value> </vn-label-value>
</vn-one> </vn-one>
<vn-one> <vn-one>
<vn-label-value label="Sage withholding" value="{{$ctrl.summary.withholdingSageFk}}"> <vn-label-value label="Sage withholding" value="{{$ctrl.summary.sageWithholding.withholding}}">
</vn-label-value> </vn-label-value>
<vn-label-value label="Company" value="{{$ctrl.summary.company.code}}"> <vn-label-value label="Company" value="{{$ctrl.summary.company.code}}">
</vn-label-value> </vn-label-value>