Skip to content
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

Create Sales Order from this Quotation: don't show the action if it does not apply #10203

Merged
merged 3 commits into from Nov 12, 2020

Conversation

BodorAnnamaria
Copy link
Contributor

final boolean isSalesProposalOrQuotation = docTypeBL.isSalesProposalOrQuotation(docTypeId.get());
if (!isSalesProposalOrQuotation)
{
return ProcessPreconditionsResolution.reject();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return ProcessPreconditionsResolution.reject();
return ProcessPreconditionsResolution.rejectWithInternalReason("is not sales proposal or quotation");

}
else
{
ProcessPreconditionsResolution.reject();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ProcessPreconditionsResolution.reject();
return ProcessPreconditionsResolution.rejectWithInternalReason("no C_DocTypeTarget_ID");

@BodorAnnamaria BodorAnnamaria merged commit 088bc79 into master Nov 12, 2020
@BodorAnnamaria BodorAnnamaria deleted the gh396_CreateSalesOrderFomThisQuotation branch November 12, 2020 09:23
metas-ts pushed a commit that referenced this pull request Dec 9, 2020
* #396 Implement process precondition

(cherry picked from commit 088bc79)
@metas-ts metas-ts changed the title #396 Implement process precondition Create Sales Order from this Quotation: don't show the action if it does not apply Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants