I am Hideaki Hagiwara.
I found that Callouts Invoice and Order replace price inappropriately.
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.
*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.
*amt() method of CalloutInvoice and CallouOrder.
through the Check of if( … && !"N".equals(Env.getContext(ctx, WindowNo, "DiscountSchema")at amt() method inappropriately..
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"