Can i retract the objects from accumulate function<br>rule &quot;Brand base free Item &quot;<br>salience 10<br>when<br>&nbsp;&nbsp;&nbsp; brand_total:Number(doubleValue &gt;=1500)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; from accumulate ( sa:SLS_SALES_DTLS( <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PK!=null,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PK.ITEM_ID.BRAND_CD.BRAND_CD==&quot;N00&quot;<br>&nbsp;&nbsp;&nbsp; ) ,&nbsp;&nbsp;&nbsp; init ( double single_total=0; ),<br>&nbsp;&nbsp;&nbsp; action (single_total=single_total+(sa.getTRN_QTY()*<br>&nbsp;&nbsp;&nbsp; sa.getPK().getITEM_ID().getSALES_TO_BASE_CONV()<br>// I want to retract the sa over here<br>
<br>);<br>&nbsp;&nbsp;&nbsp; ),<br>&nbsp;&nbsp;&nbsp; result (single_total&nbsp; ) );<br>then<br>double item_discounted=brand_total.doubleValue()/&nbsp;&nbsp;&nbsp; 1500;<br>System.out.println(&quot;The discount given qty &quot;+item_discounted+&quot; multiplied slot 10&quot;);<br>
double item_left=brand_total.doubleValue()%1500;<br>if(item_left&gt;=1)<br>{<br>doit(item_left,&quot;N00&quot;);<br>}<br>end<br>