2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

fix(ux): invoice complete on visiting invoice

- earlier complete on setting image and address
- the way to complete wasn't clear and these aren't mandatory
- hence this change
This commit is contained in:
18alantom 2022-01-12 12:28:04 +05:30
parent 80e542f390
commit f128ad6f57

View File

@ -283,6 +283,9 @@ export default {
}
switch (key) {
case 'Invoice':
await this.updateChecks({ invoiceSetup: 1 });
break;
case 'General':
await this.updateChecks({ companySetup: 1 });
break;
@ -323,11 +326,6 @@ export default {
return;
}
let printSettings = await frappe.getSingle('PrintSettings');
if (printSettings.logo && printSettings.address) {
toUpdate.invoiceSetup = 1;
}
if (!frappe.GetStarted.itemCreated) {
let { count } = (
await frappe.db.knex('Item').count('name as count')