2018-10-23 09:25:51 +00:00
< mg-ajax path = "/client/api/Clients/{{patch.params.id}}/updateFiscalData" options = "vnPatch" > < / mg-ajax >
2017-02-21 15:21:55 +00:00
< vn-watcher
vn-id="watcher"
2017-06-03 11:01:47 +00:00
data="$ctrl.client"
2017-02-21 15:21:55 +00:00
form="form"
2017-06-03 11:01:47 +00:00
save="patch">
2017-02-21 15:21:55 +00:00
< / vn-watcher >
2019-06-13 11:08:11 +00:00
< form name = "form" ng-submit = "$ctrl.onSubmit()" compact >
2018-03-01 22:38:14 +00:00
< vn-card pad-large >
< vn-horizontal >
< vn-textfield
vn-two
vn-focus
label="Social name"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.socialName">
2018-03-01 22:38:14 +00:00
< / vn-textfield >
< vn-textfield
vn-one
label="Tax number"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.fi">
2018-03-01 22:38:14 +00:00
< / vn-textfield >
< / vn-horizontal >
< vn-horizontal >
< vn-textfield
vn-two
label="Street"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.street">
2018-03-01 22:38:14 +00:00
< / vn-textfield >
< / vn-horizontal >
< vn-horizontal >
2019-06-13 11:08:11 +00:00
< vn-autocomplete vn-id = "postcode" vn-one
field="$ctrl.client.postcode"
on-change="$ctrl.setLocation()"
search-function="{code: $search}"
url="/api/Postcodes/location"
fields="['code', 'townFk']"
show-field="code"
value-field="code"
label="Postcode">
< tpl-item >
{{code}}, {{town.name}} - {{town.province.name}}
({{town.province.country.country}})
< / tpl-item >
< / vn-autocomplete >
< vn-autocomplete vn-one
2018-05-31 11:34:48 +00:00
label="City"
2019-06-13 11:08:11 +00:00
url="/api/Towns"
show-field="name"
value-field="name"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.city">
2019-06-13 11:08:11 +00:00
< / vn-autocomplete >
2018-05-31 11:34:48 +00:00
< / vn-horizontal >
< vn-horizontal >
2019-06-13 11:08:11 +00:00
< vn-autocomplete vn-one
disabled="true"
2018-05-31 11:34:48 +00:00
field="$ctrl.client.provinceFk"
2019-06-13 11:08:11 +00:00
url="/api/Provinces"
2018-05-31 11:34:48 +00:00
show-field="name"
value-field="id"
2018-10-23 09:25:51 +00:00
label="Province">
2018-05-31 11:34:48 +00:00
< / vn-autocomplete >
2019-06-13 11:08:11 +00:00
< vn-autocomplete vn-one
disabled="true"
field="$ctrl.client.countryFk"
url="/api/Countries"
show-field="country"
value-field="id"
label="Country">
< / vn-autocomplete >
2018-03-01 22:38:14 +00:00
< / vn-horizontal >
2018-05-31 11:45:51 +00:00
< vn-horizontal pad-small-v >
2018-03-01 22:38:14 +00:00
< vn-check
vn-one
label="Active"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.isActive">
2018-03-01 22:38:14 +00:00
< / vn-check >
< vn-check
vn-one
2018-03-19 16:46:28 +00:00
label="Frozen"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.isFreezed">
2018-03-19 16:46:28 +00:00
< / vn-check >
2018-05-31 11:34:48 +00:00
< / vn-horizontal >
2018-05-31 11:45:51 +00:00
< vn-horizontal pad-small-v >
2018-03-19 16:46:28 +00:00
< vn-check
2018-05-31 11:34:48 +00:00
vn-one
label="Has to invoice"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.hasToInvoice">
2018-03-01 22:38:14 +00:00
< / vn-check >
< vn-check
2018-05-31 11:34:48 +00:00
vn-one
label="Vies"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.isVies">
2018-03-01 22:38:14 +00:00
< / vn-check >
< / vn-horizontal >
2018-05-31 11:45:51 +00:00
< vn-horizontal pad-small-v >
2018-03-01 22:38:14 +00:00
< vn-check
vn-one
2018-05-31 11:34:48 +00:00
label="Invoice by mail"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.isToBeMailed">
2018-03-01 22:38:14 +00:00
< / vn-check >
< vn-check
vn-one
2018-05-31 11:34:48 +00:00
label="Invoice by address"
2018-10-23 09:25:51 +00:00
field="$ctrl.client.hasToInvoiceByAddress">
2018-03-01 22:38:14 +00:00
< / vn-check >
2018-05-31 11:34:48 +00:00
< / vn-horizontal >
2018-05-31 11:45:51 +00:00
< vn-horizontal pad-small-v >
2018-03-01 22:38:14 +00:00
< vn-check
vn-one
2018-05-31 11:34:48 +00:00
label="Is equalizated"
2018-12-11 12:16:33 +00:00
field="$ctrl.client.isEqualizated"
info="In order to invoice, this field is not consulted, but the consignee's ET. When modifying this field if the invoice by address option is not checked, the change will be automatically propagated to all addresses, otherwise the user will be asked if he wants to propagate it or not.">
2018-03-01 22:38:14 +00:00
< / vn-check >
2018-05-31 11:34:48 +00:00
< vn-check
vn-one
label="Verified data"
field="$ctrl.client.isTaxDataChecked"
2018-11-27 07:48:01 +00:00
vn-acl="salesAssistant">
2018-05-31 11:34:48 +00:00
< / vn-check >
2018-03-01 22:38:14 +00:00
< / vn-horizontal >
2017-01-31 13:13:06 +00:00
< / vn-card >
< vn-button-bar >
2018-10-23 09:25:51 +00:00
< vn-submit label = "Save" >
2018-03-01 22:38:14 +00:00
< / vn-submit >
2017-01-31 13:13:06 +00:00
< / vn-button-bar >
< / form >
2018-02-12 12:16:49 +00:00
< vn-confirm
2017-11-22 07:59:21 +00:00
vn-id="propagate-isEqualizated"
2018-02-12 12:16:49 +00:00
question="You changed the equalization tax"
message="Do you want to spread the change?"
2018-01-29 11:37:54 +00:00
on-response="$ctrl.returnDialogEt(response)">
2018-02-12 12:16:49 +00:00
< / vn-confirm >