modificaciones

This commit is contained in:
nelo 2017-01-18 07:58:52 +01:00
parent b13fdaa25d
commit 8926299caa
3 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,7 @@ export const COMPONENT = {
this.submit = function(){
this.address.client = self.clientId;
this.address.enabled = true;
$http.post('/client/api/Addresses', this.address).then(
json => $state.go('clientCard.addresses')
);

View File

@ -42,7 +42,7 @@ export const COMPONENT = {
this.client.modify = "BasicData";
$http.put('/client/api/Clients', this.client).then(
json => {
this.client = json.data;
copyObject(json.data, this.client);
this.copyClient();
}
);

View File

@ -5,7 +5,7 @@
<vn-title>Datos fiscales y de facturación</vn-title>
<vn-horizontal>
<vn-check vn-one label="Facturar" field="fiscal.client.hasToInvoice"></vn-check>
<vn-check vn-one label="Factura impresa" field="invoiceByEmail"></vn-check>
<vn-check vn-one label="Factura impresa" field="fiscal.client.invoiceByEmail"></vn-check>
</vn-horizontal>
<vn-horizontal>
<vn-textfield vn-two label="Domicilio fiscal" field="fiscal.client.street" focus></vn-textfield>
@ -53,5 +53,5 @@
<vn-button-bar>
<vn-submit label="Guardar"></vn-submit>
</vn-button-bar>
<vn-dialog-confirm object="fiscal.client" object-old="fiscal.clientOld" state="fiscal.state"></vn-dialog-confirm>
</form>
<vn-dialog-confirm object="fiscal.client" object-old="fiscal.clientOld" state="fiscal.state"></vn-dialog-confirm>