Commit 039def63 authored by steurwadkar's avatar steurwadkar

F17ABAS001 source code commit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106673 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 263a2d8e
......@@ -52,7 +52,7 @@ public class CDNRSerializer extends JsonSerializer<CDNR>
json.writeStringField("rsn", cdnDetails.reason);
}
json.writeStringField("p_gst", cdnDetails.isPreGSTInvoice ? "Y" : "N");
if(cdnDetails.taxPayerAction != null)
if(cdnDetails.taxPayerAction != null && cdnDetails.taxPayerAction.length() > 0)
{
json.writeStringField("flag", cdnDetails.taxPayerAction);
}
......@@ -127,7 +127,7 @@ public class CDNRSerializer extends JsonSerializer<CDNR>
}
json.writeEndObject();
if(li.itcType != null && (li.igstInputTax > 0.0 || li.cgstInputTax > 0.0 || li.sgstInputTax > 0.0) || li.cessInputTax > 0.0)
if(li.itcType != null)
{
json.writeFieldName("itc");
json.writeStartObject();
......
......@@ -18,6 +18,8 @@ public class IMPGSerializer extends JsonSerializer<IMPG>
@Override
public void serialize(IMPG impg, JsonGenerator json, SerializerProvider serializerProvider) throws IOException, JsonProcessingException
{
try
{
json.writeStartObject();
......@@ -79,5 +81,12 @@ public class IMPGSerializer extends JsonSerializer<IMPG>
json.writeEndObject();
}
catch(Exception e)
{
System.out.println("IMPGSerializer.serialize()["+e.getMessage()+"]");
e.printStackTrace();
}
}
}
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