mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +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:
parent
80e542f390
commit
f128ad6f57
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user