2957-ticket_summary_postcode + fetched tags css #649
|
@ -10,7 +10,7 @@ Commission: Comisión
|
||||||
Landed: F. entrega
|
Landed: F. entrega
|
||||||
Reference: Referencia
|
Reference: Referencia
|
||||||
Created: Creado
|
Created: Creado
|
||||||
Booked: Facturado
|
Booked: Contabilizada
|
||||||
Is inventory: Inventario
|
Is inventory: Inventario
|
||||||
Notes: Notas
|
Notes: Notas
|
||||||
Status: Estado
|
Status: Estado
|
||||||
|
|
|
@ -139,6 +139,7 @@ module.exports = Self => {
|
||||||
ii.supplierRef,
|
ii.supplierRef,
|
||||||
ii.docFk AS dmsFk,
|
ii.docFk AS dmsFk,
|
||||||
ii.supplierFk,
|
ii.supplierFk,
|
||||||
|
ii.expenceFkDeductible deductibleExpenseFk,
|
||||||
s.name AS supplierName,
|
s.name AS supplierName,
|
||||||
s.account,
|
s.account,
|
||||||
SUM(iid.amount) AS amount,
|
SUM(iid.amount) AS amount,
|
||||||
|
|
|
@ -39,6 +39,18 @@ module.exports = Self => {
|
||||||
scope: {
|
scope: {
|
||||||
fields: ['withholding']
|
fields: ['withholding']
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
relation: 'expenseDeductible',
|
||||||
|
scope: {
|
||||||
|
fields: ['id', 'name', 'taxTypeFk']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
relation: 'currency',
|
||||||
|
scope: {
|
||||||
|
fields: ['id', 'name']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,9 +33,6 @@
|
||||||
"isBooked": {
|
"isBooked": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"isVatDeductible": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"booked": {
|
"booked": {
|
||||||
"type": "date"
|
"type": "date"
|
||||||
},
|
},
|
||||||
|
@ -50,6 +47,12 @@
|
||||||
"mysql": {
|
"mysql": {
|
||||||
"columnName": "docFk"
|
"columnName": "docFk"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"deductibleExpenseFk": {
|
||||||
|
"type": "number",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "expenceFkDeductible"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
|
@ -63,6 +66,11 @@
|
||||||
"model": "SageWithholding",
|
"model": "SageWithholding",
|
||||||
"foreignKey": "withholdingSageFk"
|
"foreignKey": "withholdingSageFk"
|
||||||
},
|
},
|
||||||
|
"expenseDeductible": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Expense",
|
||||||
|
"foreignKey": "deductibleExpenseFk"
|
||||||
|
},
|
||||||
"company": {
|
"company": {
|
||||||
"type": "belongsTo",
|
"type": "belongsTo",
|
||||||
"model": "Company",
|
"model": "Company",
|
||||||
|
|
|
@ -7,21 +7,6 @@
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
|
||||||
<vn-date-picker
|
|
||||||
vn-one
|
|
||||||
label="Expedition date"
|
|
||||||
ng-model="$ctrl.invoiceIn.issued"
|
|
||||||
vn-focus
|
|
||||||
rule>
|
|
||||||
</vn-date-picker>
|
|
||||||
<vn-date-picker
|
|
||||||
vn-one
|
|
||||||
label="Operation date"
|
|
||||||
ng-model="$ctrl.invoiceIn.operated"
|
|
||||||
rule>
|
|
||||||
</vn-date-picker>
|
|
||||||
</vn-horizontal>
|
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
|
@ -44,6 +29,35 @@
|
||||||
rule>
|
rule>
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-date-picker
|
||||||
|
vn-one
|
||||||
|
label="Expedition date"
|
||||||
|
ng-model="$ctrl.invoiceIn.issued"
|
||||||
|
vn-focus
|
||||||
|
rule>
|
||||||
|
</vn-date-picker>
|
||||||
|
<vn-date-picker
|
||||||
|
vn-one
|
||||||
|
label="Operation date"
|
||||||
|
ng-model="$ctrl.invoiceIn.operated"
|
||||||
|
rule>
|
||||||
|
</vn-date-picker>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-datalist vn-one
|
||||||
|
label="Undeductible VAT"
|
||||||
|
ng-model="$ctrl.invoiceIn.deductibleExpenseFk"
|
||||||
|
value-field="id"
|
||||||
|
order="name"
|
||||||
|
url="Expenses"
|
||||||
|
fields="['id','name']"
|
||||||
|
rule>
|
||||||
|
<tpl-item>
|
||||||
|
{{id}} - {{name}}
|
||||||
|
</tpl-item>
|
||||||
|
</vn-datalist>
|
||||||
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-date-picker
|
<vn-date-picker
|
||||||
vn-one
|
vn-one
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Supplier ref" value="{{$ctrl.summary.supplierRef}}">
|
<vn-label-value label="Supplier ref" value="{{$ctrl.summary.supplierRef}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
|
<vn-label-value label="Currency" value="{{$ctrl.summary.currency.name}}">
|
||||||
|
</vn-label-value>
|
||||||
<vn-label-value label="Doc number" value="{{$ctrl.summary.serial}}/{{$ctrl.summary.serialNumber}}">
|
<vn-label-value label="Doc number" value="{{$ctrl.summary.serial}}/{{$ctrl.summary.serialNumber}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
|
@ -34,11 +36,11 @@
|
||||||
<vn-one>
|
<vn-one>
|
||||||
<vn-label-value label="Sage withholding" value="{{$ctrl.summary.sageWithholding.withholding}}">
|
<vn-label-value label="Sage withholding" value="{{$ctrl.summary.sageWithholding.withholding}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
|
<vn-label-value label="Undeductible VAT" value="{{$ctrl.summary.expenseDeductible.name}}">
|
||||||
|
</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>
|
||||||
<vn-vertical>
|
<vn-vertical>
|
||||||
<vn-check label="Deductible" ng-model="$ctrl.summary.isVatDeductible" disabled="true">
|
|
||||||
</vn-check>
|
|
||||||
<vn-check label="Booked" ng-model="$ctrl.summary.isBooked" disabled="true">
|
<vn-check label="Booked" ng-model="$ctrl.summary.isBooked" disabled="true">
|
||||||
</vn-check>
|
</vn-check>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
|
|
|
@ -7,4 +7,4 @@ Booked date: Fecha contable
|
||||||
Accounted date: Fecha contable
|
Accounted date: Fecha contable
|
||||||
Doc number: Numero documento
|
Doc number: Numero documento
|
||||||
Sage withholding: Retención sage
|
Sage withholding: Retención sage
|
||||||
Deductible: Deducible
|
Undeductible VAT: Iva no deducible
|
|
@ -9,14 +9,17 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"id": true,
|
"id": true,
|
||||||
"type": "Number",
|
"type": "number",
|
||||||
"description": "Identifier"
|
"description": "Identifier"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"isWithheld": {
|
"isWithheld": {
|
||||||
"type": "Number"
|
"type": "number"
|
||||||
|
},
|
||||||
|
"taxTypeFk": {
|
||||||
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
|
|
|
@ -149,11 +149,13 @@
|
||||||
ng-model="ticket.checked">
|
ng-model="ticket.checked">
|
||||||
</vn-check>
|
</vn-check>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number>{{::ticket.id}}</vn-td>
|
|
||||||
<vn-td number>
|
<vn-td number>
|
||||||
<span
|
<span class="link" ng-click="ticketDescriptor.show($event, ticket.id)">
|
||||||
ng-click="::$ctrl.showClientDescriptor($event, ticket.clientFk)"
|
{{::ticket.id}}
|
||||||
class="link">
|
</span>
|
||||||
|
</vn-td>
|
||||||
|
<vn-td number>
|
||||||
|
<span class="link" ng-click="clientDescriptor.show($event, ticket.clientFk)">
|
||||||
{{::ticket.nickname}}
|
{{::ticket.nickname}}
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
|
@ -180,3 +182,9 @@
|
||||||
vn-bind="+"
|
vn-bind="+"
|
||||||
fixed-bottom-right>
|
fixed-bottom-right>
|
||||||
</vn-float-button>
|
</vn-float-button>
|
||||||
|
<vn-ticket-descriptor-popover
|
||||||
|
vn-id="ticket-descriptor">
|
||||||
|
</vn-ticket-descriptor-popover>
|
||||||
|
<vn-client-descriptor-popover
|
||||||
|
vn-id="client-descriptor">
|
||||||
|
</vn-client-descriptor-popover>
|
||||||
|
|
|
@ -8,18 +8,18 @@
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"type": "Number",
|
"type": "number",
|
||||||
"id": true,
|
"id": true,
|
||||||
"description": "Identifier"
|
"description": "Identifier"
|
||||||
},
|
},
|
||||||
"code": {
|
"code": {
|
||||||
"type": "String"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "String"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"ratio": {
|
"ratio": {
|
||||||
"type": "Number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [
|
"acls": [
|
||||||
|
|
Loading…
Reference in New Issue