-
Notifications
You must be signed in to change notification settings - Fork 789
fix: removed status draft and unpaid in sales quotes #1202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the highlighted sections as requested
if (this.doc instanceof SalesQuote && this.doc.isSubmitted) { | ||
return ''; | ||
} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary check — can be removed
ReturnIssued: this.t`Return Issued`, | ||
'': '', | ||
}[this.status]; | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
' ': ' ',
is unnecessary — remove
ReturnIssued: 'green', | ||
'': 'gray', | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'': 'gray',
is unnecessary — remove
function getStatus(doc: Doc) { | ||
if (doc.notInserted) { | ||
if (doc.schemaName !== ModelNameEnum.SalesQuote && doc.notInserted) { | ||
return 'Draft'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the update — revert to original notInserted
check.
if (doc.schemaName === ModelNameEnum.SalesQuote) { | ||
return doc.isSubmitted ? '' : 'NotSubmitted'; | ||
} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary check — can be removed
No description provided.