fiscal-data

This commit is contained in:
Javi Gallego 2016-11-29 14:50:40 +01:00
parent eafbcb1915
commit 6cddd841c0
6 changed files with 90 additions and 3 deletions

View File

@ -4,3 +4,5 @@ export {NAME as CLIENT_BASIC_DATA_INDEX,
COMPONENT as CLIENT_BASIC_DATA_INDEX_COMPONENT} from './basic-data/index'; COMPONENT as CLIENT_BASIC_DATA_INDEX_COMPONENT} from './basic-data/index';
export {NAME as CLIENT_ADDRESSES, export {NAME as CLIENT_ADDRESSES,
COMPONENT as CLIENT_ADDRESSES_COMPONENT} from './addresses/index'; COMPONENT as CLIENT_ADDRESSES_COMPONENT} from './addresses/index';
export {NAME as CLIENT_FISCAL_DATA_INDEX,
COMPONENT as CLIENT_FISCAL_DATA_INDEX_COMPONENT} from './fiscal-data/index';

View File

@ -0,0 +1,64 @@
<form ng-submit="$ctrl.submit()">
<vn-vertical class="form uppercase">
<vn-horizontal>
<vn-one>
<h3 style="margin-top: 0;">Datos fiscales y de facturación</h3>
<hr/>
</vn-one>
</vn-horizontal>
<vn-horizontal>
<vn-check vn-one label="Cliente Activo" name"active" model="$ctrl.model.active"></vn-check>
<vn-check vn-one label="Facturar" name="invoice" model="$ctrl.model.invoice"></vn-check>
<vn-check vn-one label="Factura Impresa" name="mail" model="$ctrl.model.mail"></vn-check>
</vn-horizontal>
<vn-horizontal>
<vn-textfield vn-two label="Domicilio Fiscal" name"Domicilio" model="$ctrl.model.Domicilio"></vn-textfield>
<vn-textfield vn-one label="Municipio" name"Poblacion" model="$ctrl.model.dischargeDate"></vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-textfield vn-one label="Codigo Postal" name="codpos" model="$ctrl.model.codpos"></vn-textfield>
<vn-combo vn-one label="Provincia" name="province_id" model="$ctrl.model.province_id"></vn-combo>
<vn-combo vn-one label="Pais" name="Id_Pais" model="$ctrl.model.Id_Pais">
<option value="1">Comercial 1</option>
<option value="2">Comercial 2</option>
</vn-combo>
</vn-horizontal>
<vn-horizontal>
<vn-textfield vn-one label="Telefono Fijo" name="Telefono" model="$ctrl.model.Telefono"></vn-textfield>
<vn-textfield vn-one label="Telefono Movil" name="movil" model="$ctrl.model.movil"></vn-textfield>
<vn-textfield vn-one label="Email" name="email" model="$ctrl.model.email"></vn-textfield>
</vn-horizontal>
<hr class="border-dashed-top"/>
<vn-horizontal>
<h5 vn-one style="margin-top: 0;">Información de facturación</h5>
</vn-horizontal>
<vn-horizontal>
<vn-combo vn-two label="Forma de Pago" name="pay_met_id" model="$ctrl.model.pay_met_id"></vn-combo>
<vn-textfield vn-one label="Vencimiento" name="Vencimiento" model="$ctrl.model.Vencimiento"></vn-textfield>
<vn-check vn-three label="Recargo de" name"re" model="$ctrl.model.re"></vn-check>
</vn-horizontal>
<vn-horizontal>
<vn-textfield vn-one label="Credito" name="Credito" model="$ctrl.model.Credito"></vn-textfield>
<vn-textfield vn-one label="Cyc" name="cyc" model="$ctrl.model.cyc"></vn-textfield>
<vn-textfield vn-one label="iae" name"re" model="$ctrl.model.re"></vn-textfield>
<vn-textfield vn-three label="iban" name"iban" model="$ctrl.model.iban"></vn-textfield>
</vn-horizontal>
<hr class="border-dashed-top"/>
<vn-horizontal>
<vn-one>
<h5 style="margin-top: 0;">DOCUMENTACION</h5>
</vn-one>
</vn-horizontal>
<vn-horizontal>
<vn-check vn-two label="Recibido core vnh" name"corevnh" model="$ctrl.model.corevnh"></vn-check>
<vn-check vn-two label="Recibido core vnl" name="corevnl" model="$ctrl.model.corevnl"></vn-check>
<vn-check vn-two label="Recibido B2B vnl" name="sepavnl" model="$ctrl.model.sepavnl"></vn-check>
</vn-horizontal>
<vn-horizontal class="margin-large-top">
<vn-one>
<vn-submit class="colored " text="Guardar"></vn-submit>
</vn-one>
</vn-horizontal>
</vn-vertical>
</form>

View File

@ -0,0 +1,16 @@
import template from './index.html';
import {module} from '../../module';
export const NAME = 'vnClientFiscalData';
export const COMPONENT = {
template: template,
controller: function($http) {
this.submit = function() {
$http.post('/client/api/Clients', this.model).then(
json => console.log(json.statusText),
json => console.error(json.data.error.message)
);
};
}
};
module.component(NAME, COMPONENT);

View File

@ -9,7 +9,7 @@ export const COMPONENT = {
controller: function() { controller: function() {
this.items = [ this.items = [
{text: "Datos básicos", image: "person", href: "#/client/basic-data"}, {text: "Datos básicos", image: "person", href: "#/client/basic-data"},
{text: "Datos facturación", image: "assignment", href: "#/client/invoicing-data"}, {text: "Datos facturación", image: "assignment", href: "#/client/fiscal-data"},
{text: "Acceso web", image: "language", href: "#/client/web-access"}, {text: "Acceso web", image: "language", href: "#/client/web-access"},
{text: "Consignatarios", image: "local_shipping", href: "#/client/addresses"}, {text: "Consignatarios", image: "local_shipping", href: "#/client/addresses"},
{text: "Notas", image: "insert_drive_file", href: "#/client/notes"} {text: "Notas", image: "insert_drive_file", href: "#/client/notes"}

View File

@ -4,7 +4,7 @@
template: '<vn-client-index full-height></vn-client-index>', template: '<vn-client-index full-height></vn-client-index>',
module: 'crud', module: 'crud',
description: '', description: '',
image: '', image: ''
},{ },{
url: '/basic-data', url: '/basic-data',
state: 'client.basicdata', state: 'client.basicdata',
@ -15,6 +15,11 @@
state: 'client.addresses', state: 'client.addresses',
template: '<vn-client-addresses full-height></vn-client-addresses>', template: '<vn-client-addresses full-height></vn-client-addresses>',
module: 'crud' module: 'crud'
},{
url: '/fiscal-data',
state: 'client.fiscaldata',
template: '<vn-client-fiscal-data full-height></vn-client-fiscal-data>',
module: 'crud'
}] }]

View File

@ -1,5 +1,5 @@
export * from './module'; export * from './module';
export * from './client/client' export * from './client/client';
export {NAME as CUSTOMER_INDEX, export {NAME as CUSTOMER_INDEX,
COMPONENT as CUSTOMER_INDEX_COMPONENT} from './customer/index'; COMPONENT as CUSTOMER_INDEX_COMPONENT} from './customer/index';