2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +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

@ -75,8 +75,8 @@ export default {
},
async openNewDoc() {
const schemaName = this.getTargetSchemaName();
if(!schemaName){
return
if (!schemaName) {
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) {
@ -113,12 +113,12 @@ function getSubmittableStatus(doc: Doc) {
return 'Paid';
}
if(doc.isReturn && doc.isSubmitted && !doc.isCancelled){
return 'Return'
if (doc.isReturn && doc.isSubmitted && !doc.isCancelled) {
return 'Return';
}
if(doc.isItemsReturned && doc.isSubmitted && !doc.isCancelled){
return 'ReturnIssued'
if (doc.isItemsReturned && doc.isSubmitted && !doc.isCancelled) {
return 'ReturnIssued';
}
if (doc.isSubmitted) {