CallOutProject.java patch to recalculate Price (ver252d)

Whenever bugs are encountered they are quashed and reported. Here you can see their quashings up close.

Moderators: sureshquest, arulmani, trifon

CallOutProject.java patch to recalculate Price (ver252d)

Postby red1 » Tue Apr 18, 2006 11:30 am

Previously whenever u change the Prices in the ProjectLine, it doesnt recalculate the PlannedMargin (PlannedPrice - ListPrice).

Code: Select all
      log.fine("PlannedQty=" + PlannedQty + " * PlannedPrice=" + PlannedPrice + " -> PlannedAmt=" + PlannedAmt + " (Precision=" + StdPrecision+ ")");
      mTab.setValue("PlannedAmt", PlannedAmt);
//red1
      Integer Line_ID = (Integer)mTab.getValue("C_ProjectLine_ID");
      if (Line_ID != null)
      {
         MProjectLine pl = new MProjectLine(ctx, Line_ID.intValue(), null);
         BigDecimal LimitPrice = pl.getLimitPrice();
         BigDecimal PlannedMargin = new BigDecimal(PlannedPrice.floatValue() - LimitPrice.floatValue());
         mTab.setValue("PlannedMarginAmt", PlannedMargin);
      }
      
//red1 end      
      setCalloutActive(false);
      return "";
   }   //   planned

}   //   CalloutProject


Copy in between my //red1 ... //red1 end
at the spot shown by the lines before and after them.[/code]
red1
Site Admin
 
Posts: 2760
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Return to BUGS Galore!

Who is online

Users browsing this forum: No registered users and 1 guest

cron