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:
parent
3577a8fab0
commit
6e3068dd60
@ -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]);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user