Changed format
This commit is contained in:
parent
80248238d2
commit
2f511d1718
modules/client/front/fiscal-data
|
@ -5,8 +5,10 @@ export default class Controller extends Component {
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
const orgData = this.$.watcher.orgData;
|
const orgData = this.$.watcher.orgData;
|
||||||
delete this.client.despiteOfClient;
|
delete this.client.despiteOfClient;
|
||||||
|
|
||||||
const hasContactData = this.client.email || this.client.phone || this.client.mobile;
|
const hasContactData = this.client.email || this.client.phone || this.client.mobile;
|
||||||
if (!orgData.isTaxDataChecked && this.client.isTaxDataChecked && hasContactData)
|
const isDataChecked = !orgData.isTaxDataChecked && this.client.isTaxDataChecked;
|
||||||
|
if (isDataChecked && hasContactData)
|
||||||
this.checkExistingClient();
|
this.checkExistingClient();
|
||||||
else this.save();
|
else this.save();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue