Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jas1rk
Copy link

@Jas1rk Jas1rk commented May 6, 2025

No description provided.

Copy link
Collaborator

@ableksaju ableksaju left a 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

Comment on lines 43 to +47
if (this.doc instanceof SalesQuote && this.doc.isSubmitted) {
return '';
}
Copy link
Collaborator

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

Comment on lines 59 to 62
ReturnIssued: this.t`Return Issued`,
'': '',
}[this.status];
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

' ': ' ', is unnecessary — remove

Comment on lines 80 to 82
ReturnIssued: 'green',
'': 'gray',
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'': 'gray', is unnecessary — remove

Comment on lines 84 to 87
function getStatus(doc: Doc) {
if (doc.notInserted) {
if (doc.schemaName !== ModelNameEnum.SalesQuote && doc.notInserted) {
return 'Draft';
}
Copy link
Collaborator

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.

Comment on lines 108 to +112
if (doc.schemaName === ModelNameEnum.SalesQuote) {
return doc.isSubmitted ? '' : 'NotSubmitted';
}
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants