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

chore: fix linting

This commit is contained in:
akshayitzme 2023-07-01 14:17:06 +05:30
parent 3577a8fab0
commit 6e3068dd60
2 changed files with 8 additions and 8 deletions

View File

@ -76,7 +76,7 @@ export default {
async openNewDoc() {
const schemaName = this.getTargetSchemaName();
if (!schemaName) {
return
return;
}
const name =
this.linkValue || fyo.doc.getTemporaryName(fyo.schemaMap[schemaName]);

View File

@ -44,7 +44,7 @@ export default defineComponent({
Saved: this.t`Saved`,
Submitted: this.t`Submitted`,
Return: this.t`Return`,
ReturnIssued: this.t`Return Issued`
ReturnIssued: this.t`Return Issued`,
}[this.status];
},
color(): UIColors {
@ -64,7 +64,7 @@ const statusColorMap: Record<Status, UIColors> = {
Saved: 'blue',
Submitted: 'blue',
Return: 'orange',
ReturnIssued: 'gray'
ReturnIssued: 'gray',
};
function getStatus(doc: Doc) {
@ -114,11 +114,11 @@ function getSubmittableStatus(doc: Doc) {
}
if (doc.isReturn && doc.isSubmitted && !doc.isCancelled) {
return 'Return'
return 'Return';
}
if (doc.isItemsReturned && doc.isSubmitted && !doc.isCancelled) {
return 'ReturnIssued'
return 'ReturnIssued';
}
if (doc.isSubmitted) {