modificaciones
This commit is contained in:
parent
b13fdaa25d
commit
8926299caa
|
@ -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')
|
||||
);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue