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

prospect is converted to customer when completing a quotation #3667

Closed
metasnw opened this issue Mar 12, 2018 · 3 comments
Closed

prospect is converted to customer when completing a quotation #3667

metasnw opened this issue Mar 12, 2018 · 3 comments

Comments

@metasnw
Copy link
Member

metasnw commented Mar 12, 2018

Is this a bug or feature request?

FR

What is the current behavior?

when you got a partner with isprospect = Y and customer = N
and complete a quotation then automatically its becoming isprospect = N and iscustomer =Y

Which are the steps to reproduce?

What is the expected or desired behavior?

apply that logic only on sales order

@metas-ts
Copy link
Member

The problem happens in /de.metas.swat.base/src/main/java/de/metas/adempiere/modelvalidator/Order.java

@metas-ts
Copy link
Member

🍒 to release

@metas-ts metas-ts changed the title isprospect is converted to iscustomer when completing a quotation prospect is converted to customer when completing a quotation Mar 13, 2018
metas-ts added a commit that referenced this issue Mar 13, 2018
[#3667](#3667) prospect is converted to customer when completing a quotation
@metas-rc metas-rc removed their assignment Mar 13, 2018
@metas-lc metas-lc self-assigned this Mar 14, 2018
@metas-lc
Copy link
Contributor

  1. create a quotation for a bpartner that has isprospect = Y and iscustomer = N
    => isprospect and iscustomer did not change OK
    (isprospect is not displayed, and you cannot create a sales order with a bpartner that has iscustomer = N)
  2. create a prospect for a bpartner that has isprospect = Y and iscustomer = N
    => isprospect and iscustomer did not change OK
  3. create a sales order for a bpartner that has isprospect = Y and iscustomer = N
    => isprospect and iscustomer changed: isprospect = 'N' iscustomer = 'Y' and OK

Regression:

  1. Create a purchase order for a bpartner that has isprospect = Y and iscustomer = N
    => isprospect and iscustomer did not change OK

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

No branches or pull requests

4 participants