Callout Invoice and Order replace price inappropriately.

Description

Hi, all
I am Hideaki Hagiwara.

I found that Callouts Invoice and Order replace price inappropriately.

reproduce
1:Create Order Line and input product. Next, Change PriceEntered and save. Next, Close Order Window.

2:Open Order Window again. And immediately change QtyEntered that Order Line is created from the above.

3:In spite of no DiscountSchema,PriceEntered is changed by CalloutOrder.

Cause
*Context don't have Infomation of DiscountSchema just after open Order window and DiscountSchema Info in context is not refresh in spite of selecting Order changed.

Place
*amt() method of CalloutInvoice and CallouOrder.
through the Check of if( … && !"N".equals(Env.getContext(ctx, WindowNo, "DiscountSchema")at amt() method inappropriately..

Patch
I created patch. please check it.
My patch need to Application Dictionary setting for context refresh

C_Order_ID column of C_Order table -> please set callout field to "org.compiere.model.CalloutOrder.OrderID"
C_Invoice_ID column of C_Invoice table -> please set callout field to "org.compiere.model.CalloutInvoice.invoiceID"

Thank you. 

Environment

None

Assignee

萩原秀明

Reporter

萩原秀明

Labels

Tested By

None

Components

Priority

Major
Configure