mirror of
https://github.com/frappe/books.git
synced 2025-01-11 02:36:14 +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) {
|
switch (key) {
|
||||||
|
case 'Invoice':
|
||||||
|
await this.updateChecks({ invoiceSetup: 1 });
|
||||||
|
break;
|
||||||
case 'General':
|
case 'General':
|
||||||
await this.updateChecks({ companySetup: 1 });
|
await this.updateChecks({ companySetup: 1 });
|
||||||
break;
|
break;
|
||||||
@ -323,11 +326,6 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let printSettings = await frappe.getSingle('PrintSettings');
|
|
||||||
if (printSettings.logo && printSettings.address) {
|
|
||||||
toUpdate.invoiceSetup = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!frappe.GetStarted.itemCreated) {
|
if (!frappe.GetStarted.itemCreated) {
|
||||||
let { count } = (
|
let { count } = (
|
||||||
await frappe.db.knex('Item').count('name as count')
|
await frappe.db.knex('Item').count('name as count')
|
||||||
|
Loading…
Reference in New Issue
Block a user