Commit 3cb933e3 authored by pgole's avatar pgole

Updated ejb component


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104377 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8a0d6df1
...@@ -1481,7 +1481,7 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo ...@@ -1481,7 +1481,7 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
} }
else else
{ {
xmlBuffDet.append("<amount><![CDATA["+ (grossAmount - discountAmt) +"]]></amount>"); xmlBuffDet.append("<amount><![CDATA["+ grossAmount+"]]></amount>");
//xmlBuffDet.append("<net_amt><![CDATA["+ drcrAmt +"]]></net_amt>"); //xmlBuffDet.append("<net_amt><![CDATA["+ drcrAmt +"]]></net_amt>");
//xmlBuffDet.append("<tax_amt><![CDATA["+ taxAmt +"]]></tax_amt>"); //xmlBuffDet.append("<tax_amt><![CDATA["+ taxAmt +"]]></tax_amt>");
} }
......
...@@ -1014,7 +1014,7 @@ public class CustStock extends ValidatorEJB //implements SessionBean ...@@ -1014,7 +1014,7 @@ public class CustStock extends ValidatorEJB //implements SessionBean
String invStat = ""; String invStat = "";
String itemCode = "", purcRcp = null, purcRet = null, prdCode, transitFlg = null; String itemCode = "", purcRcp = null, purcRet = null, prdCode, transitFlg = null;
double retQty = 0, replQty = 0, quantity = 0, transitQty = 0 ,creditLmt = 0,osAmt = 0 ,custDeposit = 0 ,custRate = 0 ,custDiscount = 0 ,netSales = 0 , double retQty = 0, replQty = 0, quantity = 0, transitQty = 0 ,creditLmt = 0,osAmt = 0 ,custDeposit = 0 ,custRate = 0 ,custDiscount = 0 ,netSales = 0 ,
purcReturn = 0 ,purcRcpDob = 0 ,salesRet = 0; purcReturn = 0 ,purcRcpDob = 0 ,salesRet = 0 ,replValue = 0 ,rate = 0;
//Changed by Dayanand on 01/01/08 [Declare transQty] //Changed by Dayanand on 01/01/08 [Declare transQty]
String transQty ="", purcQty = null; String transQty ="", purcQty = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
...@@ -2621,6 +2621,8 @@ public class CustStock extends ValidatorEJB //implements SessionBean ...@@ -2621,6 +2621,8 @@ public class CustStock extends ValidatorEJB //implements SessionBean
} }
sales = genericUtility.getColumnValue("sales", dom,formNo); sales = genericUtility.getColumnValue("sales", dom,formNo);
clStks = genericUtility.getColumnValue("cl_stock", dom,formNo); clStks = genericUtility.getColumnValue("cl_stock", dom,formNo);
String rate1 = genericUtility.getColumnValue("rate", dom,formNo);
String discount = genericUtility.getColumnValue("discount", dom,formNo);
System.out.println( "opStock BEFORE [" + opStock + "]" ); System.out.println( "opStock BEFORE [" + opStock + "]" );
System.out.println( "clStks [" + clStks + "]" ); System.out.println( "clStks [" + clStks + "]" );
...@@ -2628,6 +2630,17 @@ public class CustStock extends ValidatorEJB //implements SessionBean ...@@ -2628,6 +2630,17 @@ public class CustStock extends ValidatorEJB //implements SessionBean
System.out.println( "adjQty ["+adjQty+ "]" ); System.out.println( "adjQty ["+adjQty+ "]" );
System.out.println( "purReceipt ["+purReceipt+ "]" ); System.out.println( "purReceipt ["+purReceipt+ "]" );
System.out.println( "purReturn ["+purReturn+ "]" ); System.out.println( "purReturn ["+purReturn+ "]" );
System.out.println( "rate1 ["+rate1+ "]" );
if(rate1 != null && rate1.trim().length() > 0)
{
rate = Double.parseDouble(rate1);
}
if(discount != null && discount.trim().length() > 0)
{
custDiscount = Double.parseDouble(discount);
}
System.out.println( "rate:::: ["+rate+ "]" );
if (opStock == null || opStock == "null" || opStock.trim().length() == 0 ) if (opStock == null || opStock == "null" || opStock.trim().length() == 0 )
{ {
...@@ -2851,8 +2864,23 @@ public class CustStock extends ValidatorEJB //implements SessionBean ...@@ -2851,8 +2864,23 @@ public class CustStock extends ValidatorEJB //implements SessionBean
netSales = msales * mvarValueDb; netSales = msales * mvarValueDb;
System.out.println("netSales::::::["+netSales +"]"); System.out.println("netSales::::::["+netSales +"]");
valueXmlString.append("<net_sales>").append(Math.round(netSales)).append("</net_sales>\r\n"); //Added by Poonam on 09-12-2016 for discount, latest rate and net amount :End[D16HVHB005] replValue = netSales * rate ;
System.out.println("replValue::::::["+replValue +"]");
if(netSales > 0)
{
valueXmlString.append("<net_sales>").append(Math.round(netSales)).append("</net_sales>\r\n"); //Added by Poonam on 09-12-2016 for discount, latest rate and net amount :End[D16HVHB005]
}
else
{
valueXmlString.append("<net_sales>").append(0).append("</net_sales>\r\n");
}
valueXmlString.append("<repl_value>").append(Math.round(replValue)).append("</repl_value>\r\n"); //Added by Poonam on 09-12-2016 for discount, latest rate and net amount :End[D16HVHB005]
valueXmlString.append("<rate>").append(rate).append("</rate>\r\n");
valueXmlString.append("<discount>").append(custDiscount).append("</discount>\r\n");
valueXmlString.append("<op_value>").append(opValue).append("</op_value>\r\n"); valueXmlString.append("<op_value>").append(opValue).append("</op_value>\r\n");
valueXmlString.append("<cl_value>").append(clValue).append("</cl_value>\r\n"); valueXmlString.append("<cl_value>").append(clValue).append("</cl_value>\r\n");
valueXmlString.append("<sales_value>").append(salesValue).append("</sales_value>\r\n"); valueXmlString.append("<sales_value>").append(salesValue).append("</sales_value>\r\n");
......
...@@ -788,7 +788,7 @@ public class AssociateAct extends ActionHandlerEJB implements AssociateActLocal, ...@@ -788,7 +788,7 @@ public class AssociateAct extends ActionHandlerEJB implements AssociateActLocal,
valueXmlString.append("<tran_id isSrvCallOnChg='0'>").append("<![CDATA[").append(tranId).append("]]>").append("</tran_id>\r\n"); valueXmlString.append("<tran_id isSrvCallOnChg='0'>").append("<![CDATA[").append(tranId).append("]]>").append("</tran_id>\r\n");
} }
//valueXmlString.append("<rate isSrvCallOnChg='0'>").append("<![CDATA[").append(rs1.getString(6) == null ? "":rs1.getString(6)).append("]]>").append("</rate>\r\n"); //valueXmlString.append("<rate isSrvCallOnChg='0'>").append("<![CDATA[").append(rs1.getString(6) == null ? "":rs1.getString(6)).append("]]>").append("</rate>\r\n");
valueXmlString.append("<rate isSrvCallOnChg='0'>").append("<![CDATA[").append(rsCP.getString(6) == null ? "":rsCP.getString(6)).append("]]>").append("</rate>\r\n"); valueXmlString.append("<rate>").append("<![CDATA[").append(rsCP.getString(6) == null ? "":rsCP.getString(6)).append("]]>").append("</rate>\r\n");
valueXmlString.append("</Detail>\r\n"); valueXmlString.append("</Detail>\r\n");
System.out.println("valueXmlString generated>>>>>>>>>>>>>>>>>>> " + valueXmlString); System.out.println("valueXmlString generated>>>>>>>>>>>>>>>>>>> " + valueXmlString);
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
<type size="10">char</type> <type size="10">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>tran_id</name> <name>tran_id</name>
<dbname>cust_stock.tran_id</dbname> <dbname>cust_stock.tran_id</dbname>
</table_column> </table_column>
...@@ -165,10 +164,7 @@ ...@@ -165,10 +164,7 @@
<name>deposit</name> <name>deposit</name>
<dbname>deposit</dbname> <dbname>deposit</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;cust_stock&quot; ) TABLE(NAME=&quot;customer&quot; ) COLUMN(NAME=&quot;cust_stock.tran_id&quot;) COLUMN(NAME=&quot;cust_stock.tran_date&quot;) COLUMN(NAME=&quot;cust_stock.cust_code&quot;) COLUMN(NAME=&quot;cust_stock.site_code&quot;) COLUMN(NAME=&quot;cust_stock.remarks&quot;) COLUMN(NAME=&quot;cust_stock.tran_id__last&quot;) COLUMN(NAME=&quot;cust_stock.from_date&quot;) COLUMN(NAME=&quot;cust_stock.to_date&quot;) COLUMN(NAME=&quot;customer.channel_partner&quot;) COLUMN(NAME=&quot;cust_stock.status&quot;) COLUMN(NAME=&quot;cust_stock.item_ser&quot;) COLUMN(NAME=&quot;cust_stock.confirmed&quot;) COLUMN(NAME=&quot;cust_stock.conf_date&quot;) COLUMN(NAME=&quot;customer.credit_lmt&quot;) COMPUTE(NAME=&quot;fn_get_custos(cust_stock.cust_code,cust_stock.site_code,&apos;T&apos;) os_amt&quot;) COMPUTE(NAME=&quot;fn_get_cust_deposit(cust_stock.site_code,cust_stock.cust_code) deposit&quot;) JOIN (LEFT=&quot;cust_stock.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer.cust_code&quot; )WHERE( EXP1 =&quot;cust_stock.tran_date&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:fr_date&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;cust_stock.tran_date&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:to_date&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;( case when customer.channel_partner is null then &apos;N&apos; else customer.channel_partner end )&quot; OP =&quot;=&quot; EXP2 =&quot;&apos;N&apos;&quot; ) ) ARG(NAME = &quot;fr_date&quot; TYPE = datetime) ARG(NAME = &quot;to_date&quot; TYPE = datetime) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;cust_stock&quot; ) TABLE(NAME=&quot;customer&quot; ) COLUMN(NAME=&quot;cust_stock.tran_id&quot;) COLUMN(NAME=&quot;cust_stock.tran_date&quot;) COLUMN(NAME=&quot;cust_stock.cust_code&quot;) COLUMN(NAME=&quot;cust_stock.site_code&quot;) COLUMN(NAME=&quot;cust_stock.remarks&quot;) COLUMN(NAME=&quot;cust_stock.tran_id__last&quot;) COLUMN(NAME=&quot;cust_stock.from_date&quot;) COLUMN(NAME=&quot;cust_stock.to_date&quot;) COLUMN(NAME=&quot;customer.channel_partner&quot;) COLUMN(NAME=&quot;cust_stock.status&quot;) COLUMN(NAME=&quot;cust_stock.item_ser&quot;) COLUMN(NAME=&quot;cust_stock.confirmed&quot;) COLUMN(NAME=&quot;cust_stock.conf_date&quot;) COLUMN(NAME=&quot;customer.credit_lmt&quot;) COMPUTE(NAME=&quot;fn_get_custos(cust_stock.cust_code,cust_stock.site_code,&apos;T&apos;) os_amt&quot;) COMPUTE(NAME=&quot;fn_get_cust_deposit(cust_stock.site_code,cust_stock.cust_code) deposit&quot;) JOIN (LEFT=&quot;cust_stock.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer.cust_code&quot; )WHERE( EXP1 =&quot;cust_stock.tran_date&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:fr_date&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;cust_stock.tran_date&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:to_date&quot; ) ) ARG(NAME = &quot;fr_date&quot; TYPE = datetime) ARG(NAME = &quot;to_date&quot; TYPE = datetime) </retrieve>
<update>CUST_STOCK</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument> <argument>
<name>fr_date</name> <name>fr_date</name>
<type>datetime</type> <type>datetime</type>
...@@ -514,6 +510,118 @@ ...@@ -514,6 +510,118 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Ser</text>
<border>6</border>
<color>0</color>
<x>1390</x>
<y>2</y>
<height>16</height>
<width>107</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Customer Credit Lmt</text>
<border>6</border>
<color>33554432</color>
<x>1499</x>
<y>2</y>
<height>16</height>
<width>133</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>customer_credit_lmt_t</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Os Amt</text>
<border>6</border>
<color>33554432</color>
<x>1634</x>
<y>2</y>
<height>16</height>
<width>77</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>os_amt_t</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Deposit</text>
<border>6</border>
<color>33554432</color>
<x>1713</x>
<y>2</y>
<height>16</height>
<width>65</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>deposit_t</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -968,118 +1076,6 @@ ...@@ -968,118 +1076,6 @@
<color>16777215</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Ser</text>
<border>6</border>
<color>0</color>
<x>1390</x>
<y>2</y>
<height>16</height>
<width>107</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>item_ser_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Customer Credit Lmt</text>
<border>6</border>
<color>33554432</color>
<x>1499</x>
<y>2</y>
<height>16</height>
<width>134</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>customer_credit_lmt_t</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Os Amt</text>
<border>6</border>
<color>33554432</color>
<x>1635</x>
<y>2</y>
<height>16</height>
<width>78</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>os_amt_t</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Deposit</text>
<border>6</border>
<color>33554432</color>
<x>1715</x>
<y>2</y>
<height>16</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>deposit_t</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>11</id> <id>11</id>
...@@ -1125,10 +1121,11 @@ ...@@ -1125,10 +1121,11 @@
<tabsequence>140</tabsequence> <tabsequence>140</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1500</x> <x>1499</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>133</width> <width>133</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
...@@ -1161,10 +1158,11 @@ ...@@ -1161,10 +1158,11 @@
<tabsequence>150</tabsequence> <tabsequence>150</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1636</x> <x>1634</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>77</width> <width>77</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
...@@ -1197,10 +1195,11 @@ ...@@ -1197,10 +1195,11 @@
<tabsequence>160</tabsequence> <tabsequence>160</tabsequence>
<border>5</border> <border>5</border>
<color>0</color> <color>0</color>
<x>1716</x> <x>1713</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>65</width> <width>65</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<dbname>cust_stock_det.item_code</dbname> <dbname>cust_stock_det.item_code</dbname>
</table_column> </table_column>
<table_column> <table_column>
<type size="130">char</type> <type size="120">char</type>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>item_descr</name> <name>item_descr</name>
<dbname>item.descr</dbname> <dbname>item.descr</dbname>
...@@ -277,7 +277,13 @@ ...@@ -277,7 +277,13 @@
<name>net_sales</name> <name>net_sales</name>
<dbname>net_sales</dbname> <dbname>net_sales</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;cust_stock&quot; ) TABLE(NAME=&quot;cust_stock_det&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;cust_stock_det.tran_id&quot;) COLUMN(NAME=&quot;cust_stock_det.line_no&quot;) COLUMN(NAME=&quot;cust_stock_det.item_code&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;cust_stock_det.unit&quot;) COLUMN(NAME=&quot;cust_stock_det.op_stock&quot;) COLUMN(NAME=&quot;cust_stock_det.sales&quot;) COLUMN(NAME=&quot;cust_stock_det.purc_rcp&quot;) COLUMN(NAME=&quot;cust_stock_det.transit_qty&quot;) COLUMN(NAME=&quot;cust_stock_det.adj_qty&quot;) COLUMN(NAME=&quot;cust_stock_det.cl_stock&quot;) COLUMN(NAME=&quot;cust_stock_det.purc_ret&quot;) COLUMN(NAME=&quot;cust_stock_det.chg_user&quot;) COLUMN(NAME=&quot;cust_stock_det.chg_term&quot;) COLUMN(NAME=&quot;cust_stock_det.chg_date&quot;) COLUMN(NAME=&quot;cust_stock_det.sale_order&quot;) COLUMN(NAME=&quot;cust_stock_det.item_ser&quot;) COLUMN(NAME=&quot;cust_stock_det.loc_type&quot;) COLUMN(NAME=&quot;cust_stock_det.op_value&quot;) COLUMN(NAME=&quot;cust_stock_det.pur_value&quot;) COLUMN(NAME=&quot;cust_stock_det.sales_value&quot;) COLUMN(NAME=&quot;cust_stock_det.cl_value&quot;) COLUMN(NAME=&quot;cust_stock_det.match_opstk&quot;) COLUMN(NAME=&quot;cust_stock_det.match_clstk&quot;) COLUMN(NAME=&quot;cust_stock_det.remarks&quot;) COLUMN(NAME=&quot;cust_stock_det.rate&quot;) COLUMN(NAME=&quot;cust_stock_det.demand_qty&quot;) COLUMN(NAME=&quot;cust_stock_det.adhoc_repl_qty&quot;) COLUMN(NAME=&quot;cust_stock_det.cust_item__ref&quot;) COLUMN(NAME=&quot;cust_stock_det.cust_purc_rcp&quot;) COMPUTE(NAME=&quot;FN_CUSTITEM_DSCR(cust_stock.cust_code,cust_stock_det.item_code,cust_stock_det.cust_item__ref) cust_item_ref_descr&quot;) COMPUTE(NAME=&quot;&apos; &apos; as discount&quot;) COMPUTE(NAME=&quot;FN_GET_CUST_SORDER_QTY(cust_stock.cust_code,cust_stock_det.item_code,cust_stock_det.sales,cust_stock_det.cl_stock,cust_stock_det.transit_qty) as net_sales&quot;) JOIN (LEFT=&quot;cust_stock.tran_id&quot; OP =&quot;=&quot;RIGHT=&quot;cust_stock_det.tran_id&quot; ) JOIN (LEFT=&quot;item.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;cust_stock_det.item_code&quot; )WHERE( EXP1 =&quot;~&quot;CUST_STOCK~&quot;.~&quot;TRAN_ID~&quot;&quot; OP =&quot;=&quot; EXP2 =&quot;:mtran_id&quot; ) ) ARG(NAME = &quot;mtran_id&quot; TYPE = string) </retrieve> <table_column>
<type>number</type>
<updatewhereclause>yes</updatewhereclause>
<name>repl_value</name>
<dbname>repl_value</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;cust_stock&quot; ) TABLE(NAME=&quot;cust_stock_det&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;cust_stock_det.tran_id&quot;) COLUMN(NAME=&quot;cust_stock_det.line_no&quot;) COLUMN(NAME=&quot;cust_stock_det.item_code&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;cust_stock_det.unit&quot;) COLUMN(NAME=&quot;cust_stock_det.op_stock&quot;) COLUMN(NAME=&quot;cust_stock_det.sales&quot;) COLUMN(NAME=&quot;cust_stock_det.purc_rcp&quot;) COLUMN(NAME=&quot;cust_stock_det.transit_qty&quot;) COLUMN(NAME=&quot;cust_stock_det.adj_qty&quot;) COLUMN(NAME=&quot;cust_stock_det.cl_stock&quot;) COLUMN(NAME=&quot;cust_stock_det.purc_ret&quot;) COLUMN(NAME=&quot;cust_stock_det.chg_user&quot;) COLUMN(NAME=&quot;cust_stock_det.chg_term&quot;) COLUMN(NAME=&quot;cust_stock_det.chg_date&quot;) COLUMN(NAME=&quot;cust_stock_det.sale_order&quot;) COLUMN(NAME=&quot;cust_stock_det.item_ser&quot;) COLUMN(NAME=&quot;cust_stock_det.loc_type&quot;) COLUMN(NAME=&quot;cust_stock_det.op_value&quot;) COLUMN(NAME=&quot;cust_stock_det.pur_value&quot;) COLUMN(NAME=&quot;cust_stock_det.sales_value&quot;) COLUMN(NAME=&quot;cust_stock_det.cl_value&quot;) COLUMN(NAME=&quot;cust_stock_det.match_opstk&quot;) COLUMN(NAME=&quot;cust_stock_det.match_clstk&quot;) COLUMN(NAME=&quot;cust_stock_det.remarks&quot;) COLUMN(NAME=&quot;cust_stock_det.rate&quot;) COLUMN(NAME=&quot;cust_stock_det.demand_qty&quot;) COLUMN(NAME=&quot;cust_stock_det.adhoc_repl_qty&quot;) COLUMN(NAME=&quot;cust_stock_det.cust_item__ref&quot;) COLUMN(NAME=&quot;cust_stock_det.cust_purc_rcp&quot;) COMPUTE(NAME=&quot;FN_CUSTITEM_DSCR(cust_stock.cust_code,cust_stock_det.item_code,cust_stock_det.cust_item__ref) cust_item_ref_descr&quot;) COMPUTE(NAME=&quot;&apos; &apos; as discount&quot;) COMPUTE(NAME=&quot;FN_GET_CUST_SORDER_QTY(cust_stock.cust_code,cust_stock_det.item_code,cust_stock_det.sales,cust_stock_det.cl_stock,cust_stock_det.transit_qty) as net_sales&quot;) COMPUTE(NAME=&quot;FN_GET_CUST_SORDER_VAL(cust_stock.cust_code,cust_stock_det.item_code,cust_stock_det.sales,cust_stock_det.cl_stock,cust_stock_det.transit_qty,cust_stock_det.rate) as repl_value&quot;) JOIN (LEFT=&quot;cust_stock.tran_id&quot; OP =&quot;=&quot;RIGHT=&quot;cust_stock_det.tran_id&quot; ) JOIN (LEFT=&quot;item.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;cust_stock_det.item_code&quot; )WHERE( EXP1 =&quot;~&quot;CUST_STOCK~&quot;.~&quot;TRAN_ID~&quot;&quot; OP =&quot;=&quot; EXP2 =&quot;:mtran_id&quot; ) ) ARG(NAME = &quot;mtran_id&quot; TYPE = string) </retrieve>
<update>CUST_STOCK_DET</update> <update>CUST_STOCK_DET</update>
<updatewhere>0</updatewhere> <updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
...@@ -1154,6 +1160,34 @@ ...@@ -1154,6 +1160,34 @@
<color>67108864</color> <color>67108864</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Discount</text>
<border>2</border>
<color>33554432</color>
<x>3072</x>
<y>2</y>
<height>15</height>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>discount_t</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -2386,13 +2420,14 @@ ...@@ -2386,13 +2420,14 @@
<band>Detail</band> <band>Detail</band>
<id>33</id> <id>33</id>
<alignment>0</alignment> <alignment>0</alignment>
<tabsequence>0</tabsequence> <tabsequence>32766</tabsequence>
<border>5</border> <border>5</border>
<color>33554432</color> <color>33554432</color>
<x>3159</x> <x>3158</x>
<y>2</y> <y>2</y>
<height>15</height> <height>15</height>
<width>80</width> <width>123</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
...@@ -2418,20 +2453,56 @@ ...@@ -2418,20 +2453,56 @@
<color>1073741824</color> <color>1073741824</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>34</id>
<alignment>0</alignment>
<tabsequence>0</tabsequence>
<border>5</border>
<color>33554432</color>
<x>3284</x>
<y>1</y>
<height>15</height>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>repl_value</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>0</alignment> <alignment>0</alignment>
<text>Discount</text> <text>Replenishment Qty</text>
<border>2</border> <border>2</border>
<color>33554432</color> <color>33554432</color>
<x>3072</x> <x>3158</x>
<y>2</y> <y>2</y>
<height>15</height> <height>17</height>
<width>84</width> <width>123</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>discount_t</name> <name>net_sales_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Liberation Sans</face> <face>Liberation Sans</face>
...@@ -2449,17 +2520,17 @@ ...@@ -2449,17 +2520,17 @@
<TextObject> <TextObject>
<band>Header</band> <band>Header</band>
<alignment>0</alignment> <alignment>0</alignment>
<text>Net Sales</text> <text>Replenishment Value</text>
<border>2</border> <border>2</border>
<color>33554432</color> <color>134217735</color>
<x>3158</x> <x>3283</x>
<y>2</y> <y>2</y>
<height>17</height> <height>17</height>
<width>81</width> <width>80</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>net_sales_t</name> <name>repl_value_t</name>
<visible>1</visible> <visible>1</visible>
<font> <font>
<face>Liberation Sans</face> <face>Liberation Sans</face>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment