Commit 0b3bf0d0 authored by manohar's avatar manohar

no_art was always set + 1 in certain cases corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93863 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 009c3853
......@@ -498,15 +498,20 @@ public class GenStkHelpAct extends ActionHandlerEJB implements GenStkHelpActLoca
pstmt = null;
if (integralQty > 0 )
{
System.out.println("First inputQty [" + inputQty + "] integralQty [" + integralQty + "] (inputQty % integralQty) [" + (inputQty % integralQty) + "]");
if( (inputQty % integralQty) > 0 )
{
noART = (int) ((inputQty / integralQty) + 1);
System.out.println("noART 1 [" + noART + "]");
}
else
{
noART = (int) ((inputQty / integralQty) + 1);
noART = (int) ((inputQty / integralQty));
System.out.println("noART 2 [" + noART + "]");
}
valueXmlString.append("<no_art>").append(noART).append("</no_art>");
valueXmlString.append("<no_art isSrvCallOnChg='0'>").append(noART).append("</no_art>");
}
else
{
......@@ -565,15 +570,18 @@ public class GenStkHelpAct extends ActionHandlerEJB implements GenStkHelpActLoca
}
if (integralQty > 0)
{
System.out.println("Second inputQty [" + inputQty + "] integralQty [" + integralQty + "] (inputQty % integralQty) [" + (inputQty % integralQty) + "]");
if( (inputQty % integralQty) > 0 )
{
noART = (int) ((inputQty / integralQty) + 1);
System.out.println("noART 3 [" + noART + "]");
}
else
{
noART = (int) ((inputQty / integralQty) + 1);
noART = (int) ((inputQty / integralQty));
System.out.println("noART 4 [" + noART + "]");
}
valueXmlString.append("<no_art>").append(noART).append("</no_art>");
valueXmlString.append("<no_art isSrvCallOnChg='0'>").append(noART).append("</no_art>");
}
// end 03/02/11 manoharan
} // end 18/02/12 manoharan
......
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