Commit d59fe9f1 authored by rtiwari's avatar rtiwari

Proof Of Delivery new Changes as per the CCF, Added By Sanket Girme.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98485 ce508802-f39f-4f6c-b175-0d175dae99d5
parent efae67d4
......@@ -766,11 +766,12 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
.get("exch_rate").toString());
// END OF IF DB AMT CONDTION START
invstatus = checkDebitAmt(invoiceId, conn);
/*invstatus = checkDebitAmt(invoiceId, conn);
System.out.println("For Invoce ID = > " + invoiceId
+ "invstatus =>" + invstatus);
if (invstatus) {
+ " Invoice status =>" + invstatus);
if (detail3AmtT>=100) {*/
errString = podC.genDebitNote("PRC", invoiceId,
custCode, siteCode, xtraParams,
currCode, ExchRate, detail2xmlString,
......@@ -841,11 +842,12 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
invoiceId);
return errString;
}
} else {
/*} else {
System.out
.println("The debit Note Not generated for the Invoice Id=> "
+ invoiceId+" Due to total debil amt below then 100!");
}
+ invoiceId+" Due to total debit amount below then 100!");
}*/
} else {// end detail3AmtT > 0 condition
errCode = "VTNGAMTE"; // negative amount
......@@ -1010,9 +1012,7 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
podNotConfListL.add("Error");
e.printStackTrace();
}
return podNotConfListL;
}
private int updatePodTraceSuccess(Connection conn, String success,
......@@ -1040,14 +1040,14 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
}
// Created By Sanket Girme to Check the debit note amount is greater than
// [31-JUL-2015]Created By Sanket Girme to Check the debit note amount is greater than
// 100 or not
public boolean checkDebitAmt(String InvId, Connection conn) {
PreparedStatement pstmt2 = null;
ResultSet rs2 = null;
int sumDebitNote = 0;
boolean errFlag = false;
String sql2 = "SELECT SUM(D.DEBIT_NOTE_AMT) from spl_sales_por_hdr h,spl_sales_por_det d WHERE H.TRAN_ID = D.TRAN_ID AND H.INVOICE_ID =?";
String sql2 = "SELECT NVL(SUM(D.DEBIT_NOTE_AMT),0) from spl_sales_por_hdr h,spl_sales_por_det d WHERE H.TRAN_ID = D.TRAN_ID AND H.INVOICE_ID =?";
try {
pstmt2 = conn.prepareStatement(sql2);
pstmt2.setString(1, InvId);
......@@ -1055,12 +1055,11 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
if (rs2.next()) {
System.out
.println(" **** Inside checkDebitAmt While loop **** ");
.println("**** Inside checkDebitAmt If loop ****");
sumDebitNote = rs2.getInt(1);
System.out.println(" FOr invoice ID => " + InvId
+ "sumDebitNote is ==> " + sumDebitNote);
System.out.println("For invoice ID ==> " + InvId);
System.out.println("Debit Note Amount is ==> " + sumDebitNote);
if (sumDebitNote >= 100) {
errFlag = true;
}
}
......@@ -1085,7 +1084,7 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
}
catch(Exception e)
{
System.out.println("Exception to close the resultset!");
System.out.println("Exception to close the resultset! in checkDebitAmt Method..!!!");
}
}
return errFlag;
......
//OLD
package ibase.webitm.ejb.dis;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ProcessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.fin.MiscDrCrRcpConf;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.ValidatorEJB;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import javax.ejb.Stateless;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
//import com.sun.jmx.snmp.Timestamp;
@Stateless
public class PODRejectionRemark extends ProcessEJB implements PODRejectionRemarkLocal,
PODRejectionRemarkRemote {
String siteCodeG = "", invTypeG = "", xtraParamsG = "", schemeCodeG = "",
multipleScheme = "";
Map<String, Double> partialInvoiceMapG = new HashMap<String, Double>();
Map<String, Double> partialInvMap = new HashMap<String, Double>();
int invdoneCnt = 0;
// Process Window Created by Sanket Girme [10-Aug-2015]
public String process(String xmlString, String xmlString2,
String windowName, String xtraParams) throws RemoteException,
ITMException {
System.out.println("enter in process(212....................");
String retStr = "";
Document detailDom = null;
Document headerDom = null;
GenericUtility genericUtility = GenericUtility.getInstance();
try {
if (xmlString != null && xmlString.trim().length() != 0) {
headerDom = genericUtility.parseString(xmlString);
System.out.println("xmlString--->>" + xmlString);
}
if (xmlString2 != null && xmlString2.trim().length() != 0) {
detailDom = genericUtility.parseString(xmlString2);
System.out.println("xmlString2 --->>" + xmlString2);
}
xtraParamsG = xtraParams;
retStr = process(headerDom, detailDom, windowName, xtraParams);
} catch (Exception e) {
System.out
.println("Exception :PODProcess :process(String xmlString, String xmlString2, String windowName, String xtraParams):"
+ e.getMessage() + ":");
e.printStackTrace();
retStr = e.getMessage();
}
return retStr;
}
public String process() throws RemoteException, ITMException {
return "";
}
public String process(Document dom, Document dom2, String windowName,
String xtraParams) throws RemoteException, ITMException {
System.out.println("enter in process(dom) ");
ArrayList<String> inv45dayList = new ArrayList<String>();
ArrayList<String> podProcessInvIDList = new ArrayList<String>();
ArrayList<String> podNotConfList = new ArrayList<String>();
ArrayList<String> podTraceInvList = new ArrayList<String>();
ArrayList<String> miscDrCrInvList = new ArrayList<String>();
ArrayList<String> PodHdrInvList = new ArrayList<String>();
Connection conn = null;
ConnDriver connDriver = null;
GenericUtility genericUtility = null;
ProofOfDelivery podObject = null;
ITMDBAccessEJB itmdbAccess = null;
ValidatorEJB vdt = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
String rsStatus="", resConfirmed="";
int cnt = 0,updateRows=0;
ProofOfDeliveryReject rjct;
double ExchRate = 0;
String statusOfTran = "", CurrRemark = "", custCodeTo = "", invType = "", errorString = "", errCode = "", tranId = "", custCode = "";
String sql = "", invoiceId = "", priceList = "", currCode = "";
try {
genericUtility = GenericUtility.getInstance();
itmdbAccess = new ITMDBAccessEJB();
podObject = ProofOfDelivery.getInstance();
vdt = new ValidatorEJB();
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
String succ="";
//tranId = vdt.getValueFromXTRA_PARAMS(xmlString, "tran_id");
tranId = genericUtility.getColumnValue("tran_id", dom);
statusOfTran = genericUtility.getColumnValue("wf_status", dom);
CurrRemark = genericUtility.getColumnValue("rej_remark", dom);
statusOfTran = statusOfTran == null ? "" : statusOfTran.trim();
CurrRemark = CurrRemark == null ? "" : CurrRemark.trim();
custCodeTo = custCodeTo == null ? "" : custCodeTo.trim();
invType = invType == null ? "" : invType.trim();
System.out.println("dom-->>[" + dom + "]");
System.out.println("dom2->>[" + dom2 + "]");
System.out.println("windowName--->>[" + windowName + "]");
System.out.println("xtraParams--->>[" + xtraParams + "]");
System.out.println("Tran id ==================> "+tranId);
System.out.println("Status of the Transaction=> "+statusOfTran);
System.out.println("Cusrrent Remark ==========> "+CurrRemark);
sql = "SELECT WF_STATUS, CONFIRMED FROM SPL_SALES_POR_HDR WHERE TRAN_ID= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while(rs.next()){
rsStatus= rs.getString(1);
resConfirmed = rs.getString(2);
}
if(rsStatus== null) {
//status cannnot be null
System.out.println("Status is NUll for tran_id =>"+tranId);
errCode = "VTSTANUL";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}else if (rsStatus.equalsIgnoreCase("O")) {
//status cannnot be O
System.out.println("Status is 'O' for tran_id =>"+tranId+" is Not allowed, for Rejection..!" );
errCode = "VTOPTCRJ";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}else if ( rsStatus.equalsIgnoreCase("R")){
//status cannnot be R
System.out.println("Status is 'R' for tran_id =>"+tranId+" is Not allowed, for Rejection..!" );
errCode = "VTALREJ";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}else if (resConfirmed.equalsIgnoreCase("Y")){
//Transaction should not be Confirmed
System.out.println("Status is 'R' for tran_id =>"+tranId+" is Not allowed, for Rejection..!" );
errCode = "VTCONFCRJ";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}
if(tranId==null || tranId.isEmpty()){
System.out.println("Transaction Id is empty or getting null");
errCode = "VTTRANUL";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}if(statusOfTran==null || statusOfTran.isEmpty() || statusOfTran.length()<=0){
System.out.println("Status is empty or getting null");
errCode = "VTSTANUL";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}if(CurrRemark==null || CurrRemark.isEmpty() || CurrRemark.length()<=0){
System.out.println("Remark is empty or getting null");
errCode = "VTREJNOTAC";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}
if(CurrRemark!=null && statusOfTran.equalsIgnoreCase("S") && resConfirmed.equalsIgnoreCase("N") ){
System.out.println("Updating the remark status of the tran_id =>"+tranId);
sql = "UPDATE SPL_SALES_POR_HDR SET REMARKS = ? WHERE TRAN_ID= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, CurrRemark);
pstmt.setString(2, tranId);
updateRows = pstmt.executeUpdate();
if(updateRows>=0){
conn.commit();
rjct = new ProofOfDeliveryReject();
// call to Reject EJB of the ProofOfDeliveryReject.
succ = rjct.actionHandler(tranId,xtraParams,xtraParams) ;
if(!succ.isEmpty()){
System.out.println("Remark Updated Successfully! Of Tran_id => "+tranId);
errCode = "VTREJSUCF";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}else{
}
}else{
conn.rollback();
System.out.println("Remark Not Updated!!! \n Somthing went wrong!!");
errCode = "VTALREJ";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}
}else{
System.out.println("Remark Not Updated, Because the Status is =>"+statusOfTran+"<= of the tran_id =>"+tranId);
errCode = "VTALREJ";
errorString = itmdbAccess.getErrorString("", errCode, "",
"", conn);
return errorString;
}
}// end try
catch (Exception e) {
System.out.println("Exception in PODProcess Class---------");
e.printStackTrace();
}
finally {
try {
if (conn != null) {
conn.close();
}
if (rs != null) {
rs.close();
rs = null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
} catch (Exception e) {
e.printStackTrace();
}
}
return errorString;
}
private String newErrorMessage(String errString, String invid) {
System.out.println("In newErrorMessage method--->>[" + errString + "]");
String trace = "", message = "", desc = "", redirect = "", domID = "";
Node parentNode = null;
Node childNode = null;
NodeList childNodeList = null;
StringBuffer newStr = new StringBuffer();
try {
DocumentBuilderFactory dbFactory = DocumentBuilderFactory
.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document doc = new ValidatorEJB().parseString(errString);
doc.getDocumentElement().normalize();
System.out.println("Root element :"
+ doc.getDocumentElement().getNodeName());
NodeList parentNodeList = doc.getElementsByTagName("error");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
String demo = GenericUtility.getInstance().serializeDom(doc);
System.out.println("childNodeList length----------------"
+ parentNodeList.getLength());
for (int i = 0; i < childNodeList.getLength(); i++) {
childNode = childNodeList.item(i);
if (childNode == null) {
System.out.println("child Node is null..............");
}
// System.out.println("ChildNode
// Name--->>"+childNode.getFirstChild().getTextContent());
if ("message".equalsIgnoreCase(childNode.getNodeName())) {
message = childNode.getFirstChild() == null ? ""
: childNode.getFirstChild().getNodeValue();
} else if ("description".equalsIgnoreCase(childNode
.getNodeName())) {
desc = childNode.getFirstChild() == null ? "" : childNode
.getFirstChild().getNodeValue();
} else if ("trace".equalsIgnoreCase(childNode.getNodeName())) {
trace = childNode.getFirstChild() == null ? "" : childNode
.getFirstChild().getNodeValue();
} else if ("redirect".equalsIgnoreCase(childNode.getNodeName())) {
redirect = childNode.getFirstChild() == null ? ""
: childNode.getFirstChild().getNodeValue();
} else if ("detailDomId".equalsIgnoreCase(childNode
.getNodeName())) {
domID = childNode.getFirstChild() == null ? "" : childNode
.getFirstChild().getNodeValue();
}
}
trace = trace + " Invoice Id : " + invid;
newStr.append(errString.substring(0,
errString.indexOf("message") - 1));
newStr.append("<message><![CDATA[" + message + "]]></message>"
+ "<description><![CDATA[" + desc + "]]></description>");
newStr.append("<trace><![CDATA[" + trace + "]]></trace>");
newStr.append("<redirect><![CDATA[" + redirect + "]]></redirect>");
newStr.append("<detailDomId><![CDATA[" + domID
+ "]]></detailDomId>");
newStr.append("</error></Errors>");
if (errString.contains("Root")) {
newStr.append("</Root>");
}
System.out.println("Final xml in newErrorMessage--->>[["
+ newStr.toString() + "]]");
} catch (Exception e) {
e.printStackTrace();
}
return newStr.toString();
}
}
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
import javax.ejb.Local;
import org.w3c.dom.Document;
@Local
public interface PODRejectionRemarkLocal extends ProcessLocal
{
public String process() throws RemoteException,ITMException;
public String process(Document dom, Document dom2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
import javax.ejb.Remote;
import org.w3c.dom.Document;
@Remote
public interface PODRejectionRemarkRemote extends ProcessRemote
{
public String process() throws RemoteException,ITMException;
public String process(Document dom, Document dom2, String windowName, String xtraParams) throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
}
......@@ -294,28 +294,21 @@ public class ProofOfDelivery extends ValidatorEJB implements
}
}
if (childNodeName.equalsIgnoreCase("cust_code__solto")) {
String custCodeSolTo = "", invId = "", custCodeInv = "";
int count = 0;
custCodeSolTo = genericUtility.getColumnValue(
"cust_code__solto", dom);
custCodeSolTo = custCodeSolTo == null ? ""
: custCodeSolTo.trim();
invId = invId == null ? "" : invId.trim();
if (custCodeSolTo.length() == 0) {
errCode = "VTCUSTCNE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
} else {
count = getDBRowCount(conn, "customer",
"cust_code", custCodeSolTo);
if (count == 0) {
errCode = "VTCUSTNEX";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
/*
* if (childNodeName.equalsIgnoreCase("cust_code__solto")) {
* String custCodeSolTo = "", invId = "", custCodeInv = "";
* int count = 0; custCodeSolTo =
* genericUtility.getColumnValue( "cust_code__solto", dom);
* custCodeSolTo = custCodeSolTo == null ? "" :
* custCodeSolTo.trim(); invId = invId == null ? "" :
* invId.trim(); if (custCodeSolTo.length() == 0) { errCode =
* "VTCUSTCNE"; errList.add(errCode);
* errFields.add(childNodeName.toLowerCase()); } else {
* count = getDBRowCount(conn, "customer", "cust_code",
* custCodeSolTo); if (count == 0) { errCode = "VTCUSTNEX";
* errList.add(errCode);
* errFields.add(childNodeName.toLowerCase()); } } }
*/
if (childNodeName.equalsIgnoreCase("wf_status")) {
......@@ -357,9 +350,7 @@ public class ProofOfDelivery extends ValidatorEJB implements
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
} // end for loop
break;
case 2:
......@@ -406,9 +397,11 @@ public class ProofOfDelivery extends ValidatorEJB implements
.println("qtyInv---->>" + qtyInv
+ " qtyResaled after parsing :"
+ qtyResalD);
System.out.println("pndQtyVal----->>"+pndQtyVal);
/*
* [17-JUL-15] qtyResalD <= 0 Added By Sanket Girme
* [CCF#CQ15/CS1019] Point #8
*/
if (qtyResale == null
......@@ -1043,15 +1036,13 @@ public class ProofOfDelivery extends ValidatorEJB implements
sql = " select count(1) from spl_sales_por_hdr h, spl_sales_por_det d "
+ " where h.tran_id = d.tran_id and d.bill_no = ? "
+ " and d.bil_date BETWEEN ? AND ? "
+ " and d.tran_id <> ? and h.wf_status <> 'R' "
+ " and h.cust_code = ? "; //added by cpatil on 30/07/15 for checking bill no repeate for same cust code
+ " and d.tran_id <> ? and h.wf_status <> 'R' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, billNoL);
pstmt.setTimestamp(2, frDate);
pstmt.setTimestamp(3, toDate);
pstmt.setString(4, currTranIdL);
pstmt.setString(5, currCustCode);
rs = pstmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt(1);
......@@ -1224,7 +1215,7 @@ public class ProofOfDelivery extends ValidatorEJB implements
String id1 = "";
String invoiceID = "", siteCode = "", custCode = "", sql = "", siteDescr = "", custName = "";
String confirm = "N", wfStatus = "O", loginSite = "", siteDescr1 = "";
String custName1 = "";
String custName1 = "", custName2 = "", custCodeSoledTo = "", invRemarks = "";
String stkBillDate = "", invoiceDate = "", despLineNo = "";
Timestamp invDateT = null;
int diffDays = 0;
......@@ -1266,6 +1257,30 @@ public class ProofOfDelivery extends ValidatorEJB implements
"<![CDATA[" + wfStatus + "]]>").append(
"</wf_status>");
// [START] Added by Sanket Girme
String chgUser = this.genericUtility
.getValueFromXTRA_PARAMS(xtraParams, "chgUser");
String chgTerm = this.genericUtility
.getValueFromXTRA_PARAMS(xtraParams, "termId");
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility
.getApplDateFormat());
String sysDate = sdf.format(new Date());
System.out.println("SYstem Date :: ===>" + sysDate);
valueXmlString.append("<chg_user>").append(
"<![CDATA[" + chgUser + "]]>")
.append("</chg_user>");
valueXmlString.append("<chg_term>").append(
"<![CDATA[" + chgTerm + "]]>")
.append("</chg_term>");
valueXmlString.append("<chg_date>").append(
"<![CDATA[" + sysDate + "]]>")
.append("</chg_date>");
// [END] ADDED bY SANKET GIRME
loginSite = getValueFromXTRA_PARAMS(xtraParams,
"loginSiteCode");
loginSite = loginSite == null ? "" : loginSite.trim();
......@@ -1328,9 +1343,14 @@ public class ProofOfDelivery extends ValidatorEJB implements
+ custCode);
}
// [START] Added by Sanket Girme to get the Invoice
// date [13-JUL-15]
// [START] Added by Sanket Girme
// To get the Invoice date [13-JUL-15]
inDateFrmt = (Date) invDetailsMap.get("tran_date");
custCodeSoledTo = (String) invDetailsMap
.get("cust_code");
invRemarks = (String) invDetailsMap.get("remarks");
invRemarks = invRemarks == null ? "" : invRemarks;
invRemarks = invRemarks == "null" ? "" : invRemarks;
// [END] Added by Sanket Girme to get the Invoice
// date [13-JUL-15]
......@@ -1381,6 +1401,9 @@ public class ProofOfDelivery extends ValidatorEJB implements
valueXmlString.append("<cust_name>").append(
"<![CDATA[" + custName + "]]>").append(
"</cust_name>");
// [START] Added By Sanket Girme [30-JUL-2015]
// Invoice Date
valueXmlString.append("<invoice_tran_date>")
.append(
"<![CDATA["
......@@ -1388,6 +1411,29 @@ public class ProofOfDelivery extends ValidatorEJB implements
+ "]]>").append(
"</invoice_tran_date>");
// Sold to Customer Code
valueXmlString.append("<invoice_cust_code>")
.append(
"<![CDATA[" + custCodeSoledTo
+ "]]>").append(
"</invoice_cust_code>");
if (custCodeSoledTo.length() > 0) {
custName2 = getNameOrDescrForCode(conn,
"customer", "cust_name", "cust_code",
custCodeSoledTo);
}
valueXmlString.append("<cust_name_1>").append(
"<![CDATA[" + custName2 + "]]>").append(
"</cust_name_1>");
// Invoice Remark
valueXmlString.append("<invoice_remarks>").append(
"<![CDATA[" + invRemarks + "]]>").append(
"</invoice_remarks>");
// [END] Added By Sanket Girme [30-JUL-2015]
valueXmlString.append("<prd_code>").append(
"<![CDATA["
+ checkNull(invDetailsMap
......@@ -1437,22 +1483,6 @@ public class ProofOfDelivery extends ValidatorEJB implements
valueXmlString.append("<cust_name>").append(
"<![CDATA[" + custName1 + "]]>").append(
"</cust_name>");
} else if (currentColumn.trim().equalsIgnoreCase(
"cust_code__solto")) {
String customeCustCode = genericUtility.getColumnValue(
"cust_code__solto", dom);
String custName2 = "";
customeCustCode = customeCustCode == null ? ""
: customeCustCode.trim();
System.out.println("customeCustCode ----->>["
+ customeCustCode + "]");
if (customeCustCode.length() > 0) {
custName2 = getNameOrDescrForCode(conn, "customer",
"cust_name", "cust_code", customeCustCode);
}
valueXmlString.append("<customer_cust_name>").append(
"<![CDATA[" + custName2 + "]]>").append(
"</customer_cust_name>");
}
valueXmlString.append("</Detail1>");
break;
......@@ -1971,7 +2001,7 @@ public class ProofOfDelivery extends ValidatorEJB implements
PreparedStatement pstmt = null;
String sql = "";
try {
sql = "select site_code,cust_code__bil,net_amt,curr_code,exch_rate,prd_code,tran_date from invoice where invoice_id = ?";
sql = "select site_code,cust_code__bil,net_amt,curr_code,exch_rate,prd_code,tran_date,cust_code,remarks from invoice where invoice_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, invoiceId);
rs = pstmt.executeQuery();
......@@ -1984,6 +2014,8 @@ public class ProofOfDelivery extends ValidatorEJB implements
.put("exch_rate", Double.toString(rs.getDouble(5)));
invDetailsMap.put("prd_code", rs.getString(6));
invDetailsMap.put("tran_date", rs.getDate(7));
invDetailsMap.put("cust_code", rs.getString(8));
invDetailsMap.put("remarks", rs.getString(9));
}
rs.close();
rs = null;
......
......@@ -25,31 +25,30 @@ import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
@Stateless
public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeliveryConfLocal,ProofOfDeliveryConfRemote
{
String debitNoteTranID="",xmlStringAll="";
public class ProofOfDeliveryConf extends ActionHandlerEJB implements
ProofOfDeliveryConfLocal, ProofOfDeliveryConfRemote {
String debitNoteTranID = "", xmlStringAll = "";
boolean isRegPriceNotFound=false;
boolean isRegPriceNotFound = false;
boolean isError = false;
public static ProofOfDeliveryConf getInstance()
{
public static ProofOfDeliveryConf getInstance() {
return new ProofOfDeliveryConf();
}
public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
System.out.println("--------------confirm method of ProofOfDeliveryConf ------------- : ");
public String confirm(String tranId, String xtraParams, String forcedFlag)
throws RemoteException, ITMException {
System.out
.println("--------------confirm method of ProofOfDeliveryConf ------------- : ");
String retString = "";
try
{
try {
retString = confirmPOD(tranId,xtraParams,forcedFlag);
retString = confirmPOD(tranId, xtraParams, forcedFlag);
}
catch(Exception e)
{
System.out.println("Exception :ProofOfDeliveryConf :confirm():" + e.getMessage() + ":");
} catch (Exception e) {
System.out.println("Exception :ProofOfDeliveryConf :confirm():"
+ e.getMessage() + ":");
retString = GenericUtility.getInstance().createErrorString(e);
e.printStackTrace();
}
......@@ -57,423 +56,477 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
return retString;
}
private String confirmPOD(String tranId,String xtraParams,String forcedFlag)
{
System.out.println("---------Class : ProofOfDeliveryConf-->> confirm method called-----------");
isError=false;
tranId=tranId==null ? "" :tranId.trim();
ResultSet rs=null;
Connection conn=null;
private String confirmPOD(String tranId, String xtraParams,
String forcedFlag) {
System.out
.println("---------Class : ProofOfDeliveryConf-->> confirm method called-----------");
isError = false;
tranId = tranId == null ? "" : tranId.trim();
ResultSet rs = null;
Connection conn = null;
ConnDriver ConnDriver = new ConnDriver();
PreparedStatement pstmt=null;
String errString="",sql="",loginSite="",wfStatus="",itemCode="",regulatedPrice="",itemActive="";
String itmCodeDt2="",lotNo="",lotSl="", detail2xmlString="",invoiceID="";
double aprvRate=0.0,PODrate=0.0,PODqty=0.0,allowedAmt=0.0,stockistAmt=0.0,debitNoteAmtDetail=0.0;
double debitNoteAmtHdr=0;
int updCnt=0,lineNo=0,lineNotrace=0;
ITMDBAccessEJB itmdbAccess=new ITMDBAccessEJB();
ProofOfDelivery podObj=null;
HashMap<Integer,Double> mapDebitNoteAmt=new HashMap<Integer,Double>();
try
{
PreparedStatement pstmt = null;
String errString = "", sql = "", loginSite = "", wfStatus = "", itemCode = "", regulatedPrice = "", itemActive = "";
String itmCodeDt2 = "", lotNo = "", lotSl = "", detail2xmlString = "", invoiceID = "";
double aprvRate = 0.0, PODrate = 0.0, PODqty = 0.0, allowedAmt = 0.0, stockistAmt = 0.0, debitNoteAmtDetail = 0.0;
double debitNoteAmtHdr = 0;
int updCnt = 0, lineNo = 0, lineNotrace = 0;
ITMDBAccessEJB itmdbAccess = new ITMDBAccessEJB();
ProofOfDelivery podObj = null;
HashMap<Integer, Double> mapDebitNoteAmt = new HashMap<Integer, Double>();
try {
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator");
conn.setAutoCommit(false);
String confirmed="";
String confirmed = "";
sql = "select confirmed,wf_status,invoice_id from spl_sales_por_hdr WHERE tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
confirmed =rs.getString(1)==null ? "N":rs.getString(1);
wfStatus=rs.getString(2)==null ? "O" : rs.getString(2);
invoiceID=rs.getString(3);
}
if( pstmt != null )
{
if (rs.next()) {
confirmed = rs.getString(1) == null ? "N" : rs.getString(1);
wfStatus = rs.getString(2) == null ? "O" : rs.getString(2);
invoiceID = rs.getString(3);
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
if (rs != null) {
rs.close();
rs = null;
}
if( wfStatus != null && wfStatus.equalsIgnoreCase("O") )
{
//Opened transaction can not confirm
errString = itmdbAccess.getErrorString("", "VTOPCCONF", "", "", conn);
if (wfStatus != null && wfStatus.equalsIgnoreCase("O")) {
// Opened transaction can not confirm
errString = itmdbAccess.getErrorString("", "VTOPCCONF", "", "",
conn);
return errString;
}
if( wfStatus != null && wfStatus.equalsIgnoreCase("R") )
{
//Rejected transaction can not confirm
errString = itmdbAccess.getErrorString("", "VTRJCCONF", "", "", conn);
if (wfStatus != null && wfStatus.equalsIgnoreCase("R")) {
// Rejected transaction can not confirm
errString = itmdbAccess.getErrorString("", "VTRJCCONF", "", "",
conn);
return errString;
}
if( confirmed != null && confirmed.equalsIgnoreCase("Y") )
{
//if already confirm then show error
errString = itmdbAccess.getErrorString("", "VTALCONF", "", "", conn);
if (confirmed != null && confirmed.equalsIgnoreCase("Y")) {
// if already confirm then show error
errString = itmdbAccess.getErrorString("", "VTALCONF", "", "",
conn);
return errString;
}
//check in misc_drcr_rcp POD already received or not
podObj=new ProofOfDelivery();
if(podObj.isRecordPresentInMiscDrCrRcp(conn, invoiceID))
{
errString = itmdbAccess.getErrorString("", "VTPODARI", "", "", conn);
// check in misc_drcr_rcp POD already received or not
podObj = new ProofOfDelivery();
if (podObj.isRecordPresentInMiscDrCrRcp(conn, invoiceID)) {
errString = itmdbAccess.getErrorString("", "VTPODARI", "", "",
conn);
return errString;
}
System.out.println("-------wfStatus before confirm -------"+wfStatus);
//Only submitted transaction allowed to confirm
if(wfStatus.trim().equalsIgnoreCase("S"))
{
String invoiceId="",custCode="",siteCode="",currCode="",loginCode="";
double ExchRate=0.0,actualDBamount=0.0,rateInv=0,qtyInv=0,detail3Amt=0,detail3AmtT=0;
loginCode=GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
System.out.println("Login Code ------->> "+loginCode);
sql="";
sql="select invoice_id,cust_code,site_code,curr_code,exch_rate from spl_sales_por_hdr where tran_id = ?";
pstmt=conn.prepareStatement(sql);
System.out.println("-------wfStatus before confirm -------"
+ wfStatus);
// Only submitted transaction allowed to confirm
if (wfStatus.trim().equalsIgnoreCase("S")) {
String invoiceId = "", custCode = "", siteCode = "", currCode = "", loginCode = "";
double ExchRate = 0.0, actualDBamount = 0.0, rateInv = 0, qtyInv = 0, detail3Amt = 0, detail3AmtT = 0;
loginCode = GenericUtility.getInstance()
.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
System.out.println("Login Code ------->> " + loginCode);
sql = "";
sql = "select invoice_id,cust_code,site_code,curr_code,exch_rate from spl_sales_por_hdr where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if( rs.next() )
{
invoiceId=rs.getString(1);
custCode=rs.getString(2)==null ? "" : rs.getString(2);
siteCode=rs.getString(3)==null ? "" : rs.getString(3);
currCode=rs.getString(4)==null ? "" : rs.getString(4);
ExchRate=rs.getDouble(5);
}
if(rs != null)
{
if (rs.next()) {
invoiceId = rs.getString(1);
custCode = rs.getString(2) == null ? "" : rs.getString(2);
siteCode = rs.getString(3) == null ? "" : rs.getString(3);
currCode = rs.getString(4) == null ? "" : rs.getString(4);
ExchRate = rs.getDouble(5);
}
if (rs != null) {
rs.close();
rs=null;
rs = null;
}
if(pstmt != null)
{
if (pstmt != null) {
pstmt.close();
pstmt=null;
pstmt = null;
}
sql="";
sql="select item_code,rate__resale,quantity__resale,aprv_rate,line_no,lot_no,lot_sl,rate__inv,quantity__inv,line_no__trace " +
"from spl_sales_por_det where tran_id = ? order by line_no";
pstmt=conn.prepareStatement(sql);
sql = "";
sql = "select item_code,rate__resale,quantity__resale,aprv_rate,line_no,lot_no,lot_sl,rate__inv,quantity__inv,line_no__trace "
+ "from spl_sales_por_det where tran_id = ? order by line_no";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs=pstmt.executeQuery();
while(rs.next())
{
itemCode=rs.getString(1);
PODrate=rs.getDouble(2);
PODqty=rs.getDouble(3);
aprvRate=rs.getDouble(4);
lineNo=rs.getInt(5);
lotNo=rs.getString(6);
lotSl=rs.getString(7);
rateInv=rs.getDouble(8);
qtyInv=rs.getDouble(9);
lineNotrace=rs.getInt(10);
itemCode=itemCode==null ? "" :itemCode.trim();
lotNo=lotNo==null ? "" :lotNo.trim();
lotSl=lotSl==null ? "" :lotSl.trim();
//debitNoteAmtDetail=getDebitNoteAmount(conn, tranId, lineNo,aprvRate,PODrate,PODqty);
debitNoteAmtDetail=getDebitNoteAmount(rateInv,qtyInv);
debitNoteAmtHdr=debitNoteAmtHdr+debitNoteAmtDetail;
detail3Amt=(PODrate - aprvRate) * PODqty;
if(detail3Amt < 0){
detail3Amt=0;
}
if(detail3Amt < 0){
System.out.println("debit note amount less than 0--------");
detail3Amt=0;
}
detail3AmtT=detail3AmtT + detail3Amt;
rs = pstmt.executeQuery();
while (rs.next()) {
itemCode = rs.getString(1);
PODrate = rs.getDouble(2);
PODqty = rs.getDouble(3);
aprvRate = rs.getDouble(4);
lineNo = rs.getInt(5);
lotNo = rs.getString(6);
lotSl = rs.getString(7);
rateInv = rs.getDouble(8);
qtyInv = rs.getDouble(9);
lineNotrace = rs.getInt(10);
itemCode = itemCode == null ? "" : itemCode.trim();
lotNo = lotNo == null ? "" : lotNo.trim();
lotSl = lotSl == null ? "" : lotSl.trim();
// debitNoteAmtDetail=getDebitNoteAmount(conn, tranId,
// lineNo,aprvRate,PODrate,PODqty);
debitNoteAmtDetail = getDebitNoteAmount(rateInv, qtyInv);
debitNoteAmtHdr = debitNoteAmtHdr + debitNoteAmtDetail;
detail3Amt = (PODrate - aprvRate) * PODqty;
if (detail3Amt < 0) {
detail3Amt = 0;
}
if (detail3Amt < 0) {
System.out
.println("debit note amount less than 0--------");
detail3Amt = 0;
}
detail3AmtT = detail3AmtT + detail3Amt;
mapDebitNoteAmt.put(lineNo, detail3Amt);
//detail2xmlString=getDetailsXmlString(conn, xtraParams, invoiceId, aprvRate, debitNoteAmtDetail);
detail2xmlString=detail2xmlString + getDetailsXmlString(conn,invoiceId,lineNotrace,lineNo,aprvRate,PODqty,lotNo,lotSl,itemCode, detail3Amt);
} //end while
System.out.println("detail2xmlString---->>[["+detail2xmlString+"]]");
System.out.println("Final detail3AmtT in debit note---------->> : "+detail3AmtT);
//Debit note amount cannot less than zero.
if(detail3AmtT > 0){
errString=genDebitNote("POD",invoiceId,custCode,siteCode,xtraParams,currCode,ExchRate,detail2xmlString,detail3AmtT,conn);
System.out.println("------Error string after DN save--->>["+errString+"]");
if (errString.indexOf("Success") > -1)
{
System.out.println("Confirmation of Debit note----------");
MiscDrCrRcpConf confDebitNote=new MiscDrCrRcpConf();
errString=confDebitNote.confirm(debitNoteTranID,xtraParams,"",conn);
//errString = confirmDebitNote("drcrrcp_dr",debitNoteTranID,xtraParams,"",conn);
System.out.println("Error String on DB Confirmation: "+errString);
if((errString != null ) && errString.indexOf("CONFSUCCES") > -1)
{
updCnt=updatePodHeader(conn,tranId,loginCode);
System.out.println("return count from updateDebitNoteAmounts--->["+updCnt+"]");
if(updCnt > 0){
// detail2xmlString=getDetailsXmlString(conn, xtraParams,
// invoiceId, aprvRate, debitNoteAmtDetail);
detail2xmlString = detail2xmlString
+ getDetailsXmlString(conn, invoiceId, lineNotrace,
lineNo, aprvRate, PODqty, lotNo, lotSl,
itemCode, detail3Amt);
} // end while
System.out.println("detail2xmlString---->>[["
+ detail2xmlString + "]]");
System.out
.println("Final detail3AmtT in debit note---------->> : "
+ detail3AmtT);
// Debit note amount cannot less than hundred.
// [31-JUL-2015] Sanket Girme
if (detail3AmtT >= 100) {
errString = genDebitNote("POD", invoiceId, custCode,
siteCode, xtraParams, currCode, ExchRate,
detail2xmlString, detail3AmtT, conn);
System.out.println("------Error string after DN save--->>["
+ errString + "]");
if (errString.indexOf("Success") > -1) {
System.out
.println("Confirmation of Debit note----------");
MiscDrCrRcpConf confDebitNote = new MiscDrCrRcpConf();
errString = confDebitNote.confirm(debitNoteTranID,
xtraParams, "", conn);
// errString =
// confirmDebitNote("drcrrcp_dr",debitNoteTranID,xtraParams,"",conn);
System.out.println("Error String on DB Confirmation: "
+ errString);
if ((errString != null)
&& errString.indexOf("CONFSUCCES") > -1) {
updCnt = updatePodHeader(conn, tranId, loginCode);
System.out
.println("return count from updateDebitNoteAmounts--->["
+ updCnt + "]");
if (updCnt > 0) {
conn.commit();
errString = itmdbAccess.getErrorString("", "VTCONSUCF", "", "", conn);
System.out.println("------@@@Debit Note Generated successfully for amount : "+actualDBamount);
System.out.println("Confirmation of Debit note done successfully----------");
}else{
errString = itmdbAccess.getErrorString("", "VTNCONFT", "", "", conn);
errString = itmdbAccess.getErrorString("",
"VTCONSUCF", "", "", conn);
System.out
.println("------@@@Debit Note Generated successfully for amount : "
+ actualDBamount);
System.out
.println("Confirmation of Debit note done successfully----------");
} else {
errString = itmdbAccess.getErrorString("",
"VTNCONFT", "", "", conn);
conn.rollback();
System.out.println("transaction not confirmed----------");
System.out
.println("transaction not confirmed----------");
}
}else{
errString = itmdbAccess.getErrorString("", "VTNCONFT", "", "", conn);
} else {
errString = itmdbAccess.getErrorString("",
"VTNCONFT", "", "", conn);
conn.rollback();
}
}else{
//errString = itmdbAccess.getErrorString("", "VTNCONFT", "", "", conn);
} else {
// errString = itmdbAccess.getErrorString("",
// "VTNCONFT", "", "", conn);
conn.rollback();
return errString;
}
}else{
errString = itmdbAccess.getErrorString("", "VTCOSUCFT", "", "", conn);
System.out.println("Debit note generated zero for invoice ID-->>["+invoiceId+"]");
debitNoteTranID="";
updCnt=updatePodHeader(conn,tranId,loginCode);
if(updCnt > 0)
} else {
errString = itmdbAccess.getErrorString("", "VTCOSUCFT", "",
"", conn);
System.out
.println("Debit note generated zero for invoice ID-->>["
+ invoiceId + "]");
debitNoteTranID = "";
updCnt = updatePodHeader(conn, tranId, loginCode);
if (updCnt > 0)
conn.commit();
}
} // end condition for wfstatus ='S'
else
{
else {
conn.rollback();
errString = itmdbAccess.getErrorString("", "VTNSUBCON", "", "", conn);
errString = itmdbAccess.getErrorString("", "VTNSUBCON", "", "",
conn);
}
} // end try
catch(SQLException se)
{
catch (SQLException se) {
System.out.println("SQLException : class ProofOfDeliveryConf : ");
se.printStackTrace();
try
{
isError=true;
try {
isError = true;
conn.rollback();
} catch (Exception e) {
System.out
.println("Exception : Occure during rollback........");
e.printStackTrace();
}
catch(Exception e){
System.out.println("Exception : Occure during rollback........");e.printStackTrace();
}
}
catch(Exception e)
{
try
{
isError=true;
} catch (Exception e) {
try {
isError = true;
conn.rollback();
}
catch (Exception e1)
{
} catch (Exception e1) {
e.printStackTrace();
System.out.println("Exception Class [ProofOfDeliveryConf]::"+e.getMessage());
System.out.println("Exception Class [ProofOfDeliveryConf]::"
+ e.getMessage());
}
}
finally
{
try
{
if(pstmt != null)
{
} finally {
try {
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (conn!=null)
{
if (conn != null) {
conn.close();
conn=null;
conn = null;
}
if(isError)
{
errString = itmdbAccess.getErrorString("", "VTNCONFT", "", "", conn);
if (isError) {
errString = itmdbAccess.getErrorString("", "VTNCONFT", "",
"", conn);
}
}
catch(Exception e)
{
} catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
}
}
System.out.println("[ProofOfDeliveryConf]errstring :"+errString);
System.out.println("[ProofOfDeliveryConf]errstring :" + errString);
return errString;
}
public java.sql.Timestamp getInvoiceDate(Connection conn,String invID)
{
ResultSet rs=null;
PreparedStatement pstmt=null;
String sql="";
public java.sql.Timestamp getInvoiceDate(Connection conn, String invID) {
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = "";
java.sql.Timestamp invDate = null;
try{
sql="select conf_date from invoice where invoice_id= ? ";
pstmt=conn.prepareStatement(sql);
try {
sql = "select conf_date from invoice where invoice_id= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, invID);
rs=pstmt.executeQuery();
if(rs.next()){
invDate=rs.getTimestamp(1);
rs = pstmt.executeQuery();
if (rs.next()) {
invDate = rs.getTimestamp(1);
}
}
catch(Exception e)
{
} catch (Exception e) {
System.out.println("Exception in getInvoiceDate-------");
e.printStackTrace();
}
return invDate;
}
protected String genDebitNote(String process,String invoiceId,String custCode,String siteCode ,String xtraParams,String currencyCode,double exchRate,String detail2xmlString,double detail3AmtT, Connection conn) throws ITMException
{
protected String genDebitNote(String process, String invoiceId,
String custCode, String siteCode, String xtraParams,
String currencyCode, double exchRate, String detail2xmlString,
double detail3AmtT, Connection conn) throws ITMException {
System.out.println("<--------Inside genDebitNote----------->");
StringBuffer xmlBuffer = new StringBuffer();
String xmlString = "", sql="", refNo="", remarks="";
String retString="";
GenericUtility genutility=null;
SimpleDateFormat sdf=null;
String currAppdate ="",invoiceDate="";
String xmlString = "", sql = "", refNo = "", remarks = "";
String retString = "";
GenericUtility genutility = null;
SimpleDateFormat sdf = null;
String currAppdate = "", invoiceDate = "";
java.sql.Timestamp currDate = null;
String itemSer="";
String finEntity="",acctCode="",cctrCode="",acctCodetotAR="",cctrCodetotAR="",dbTranID="";
String crTerm="";
PreparedStatement pstmt=null;
ResultSet rs=null;
int count=0;
try
{
genutility=GenericUtility.getInstance();
sdf=new SimpleDateFormat(genutility.getApplDateFormat());
currDate = new java.sql.Timestamp(System.currentTimeMillis()) ;
String itemSer = "";
String finEntity = "", acctCode = "", cctrCode = "", acctCodetotAR = "", cctrCodetotAR = "", dbTranID = "";
String crTerm = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
int count = 0;
try {
genutility = GenericUtility.getInstance();
sdf = new SimpleDateFormat(genutility.getApplDateFormat());
currDate = new java.sql.Timestamp(System.currentTimeMillis());
currAppdate = sdf.format(currDate);
java.sql.Timestamp invDate =getInvoiceDate(conn,invoiceId);
if(invDate !=null){
invoiceDate=sdf.format(invDate);
}
System.out.println("Process------>>["+process+"]");
if(process.equalsIgnoreCase("PRC"))
remarks="Auto Gen. Debit Note-POD Process-Invoice ID - "+invoiceId;
java.sql.Timestamp invDate = getInvoiceDate(conn, invoiceId);
if (invDate != null) {
invoiceDate = sdf.format(invDate);
}
System.out.println("Process------>>[" + process + "]");
if (process.equalsIgnoreCase("PRC"))
remarks = "Auto Gen. Debit Note-POD Process-Invoice ID - "
+ invoiceId;
else
remarks="Auto Generated Debit Note - POD-Invoice ID - "+invoiceId;
itemSer =getColumnDescr(conn, "item_ser","invoice","invoice_id", invoiceId);
finEntity = getColumnDescr(conn, "fin_entity","site","site_code", siteCode);
acctCode = getColumnDescr(conn,"acct_code__ar", "customer", "cust_code", custCode);
cctrCode = getColumnDescr(conn,"cctr_code__ar", "customer", "cust_code", custCode);
//acctCodetotAR=getColumnDescr(conn,"ACCT_CODE__TOT_AR", "item_acct_detr", "item_ser", itemSer);
//cctrCodetotAR=getColumnDescr(conn,"CCTR_CODE__TOT_AR", "item_acct_detr", "item_ser", itemSer);
cctrCodetotAR = cctrCodetotAR== null ? " " :cctrCodetotAR;
remarks = "Auto Generated Debit Note - POD-Invoice ID - "
+ invoiceId;
itemSer = getColumnDescr(conn, "item_ser", "invoice", "invoice_id",
invoiceId);
finEntity = getColumnDescr(conn, "fin_entity", "site", "site_code",
siteCode);
acctCode = getColumnDescr(conn, "acct_code__ar", "customer",
"cust_code", custCode);
cctrCode = getColumnDescr(conn, "cctr_code__ar", "customer",
"cust_code", custCode);
// acctCodetotAR=getColumnDescr(conn,"ACCT_CODE__TOT_AR",
// "item_acct_detr", "item_ser", itemSer);
// cctrCodetotAR=getColumnDescr(conn,"CCTR_CODE__TOT_AR",
// "item_acct_detr", "item_ser", itemSer);
cctrCodetotAR = cctrCodetotAR == null ? " " : cctrCodetotAR;
xmlBuffer.append("<?xml version='1.0' encoding='ISO-8859-1'?>\n");
xmlBuffer.append("<DocumentRoot>");
xmlBuffer.append("<description>").append("Datawindow Root").append("</description>");
xmlBuffer.append("<description>").append("Datawindow Root").append(
"</description>");
xmlBuffer.append("<group0>");
xmlBuffer.append("<description>").append("Group0 description").append("</description>");
xmlBuffer.append("<description>").append("Group0 description")
.append("</description>");
xmlBuffer.append("<Header0>");
xmlBuffer.append("<objName><![CDATA[").append("misc_drcr_rcp_dr").append("]]></objName>");
xmlBuffer.append("<pageContext><![CDATA[").append("1").append("]]></pageContext>");
xmlBuffer.append("<objContext><![CDATA[").append("1").append("]]></objContext>");
xmlBuffer.append("<editFlag><![CDATA[").append("A").append("]]></editFlag>");
xmlBuffer.append("<focusedColumn><![CDATA[").append("").append("]]></focusedColumn>");
xmlBuffer.append("<action><![CDATA[").append("SAVE").append("]]></action>");
xmlBuffer.append("<elementName><![CDATA[").append("").append("]]></elementName>");
xmlBuffer.append("<keyValue><![CDATA[").append("1").append("]]></keyValue>");
xmlBuffer.append("<taxKeyValue><![CDATA[").append(" ").append("]]></taxKeyValue>");
xmlBuffer.append("<saveLevel><![CDATA[").append("1").append("]]></saveLevel>");
xmlBuffer.append("<forcedSave><![CDATA[").append(true).append("]]></forcedSave>");
xmlBuffer.append("<taxInFocus><![CDATA[").append(false).append("]]></taxInFocus>");
xmlBuffer.append("<description>").append("Header0 members").append("</description>");
xmlBuffer.append("<Detail1 objContext =\"1\"").append(" objName=\"misc_drcr_rcp_dr\" domID=\"1\" dbID=\"\">");
xmlBuffer.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
xmlBuffer.append("<objName><![CDATA[").append("misc_drcr_rcp_dr")
.append("]]></objName>");
xmlBuffer.append("<pageContext><![CDATA[").append("1").append(
"]]></pageContext>");
xmlBuffer.append("<objContext><![CDATA[").append("1").append(
"]]></objContext>");
xmlBuffer.append("<editFlag><![CDATA[").append("A").append(
"]]></editFlag>");
xmlBuffer.append("<focusedColumn><![CDATA[").append("").append(
"]]></focusedColumn>");
xmlBuffer.append("<action><![CDATA[").append("SAVE").append(
"]]></action>");
xmlBuffer.append("<elementName><![CDATA[").append("").append(
"]]></elementName>");
xmlBuffer.append("<keyValue><![CDATA[").append("1").append(
"]]></keyValue>");
xmlBuffer.append("<taxKeyValue><![CDATA[").append(" ").append(
"]]></taxKeyValue>");
xmlBuffer.append("<saveLevel><![CDATA[").append("1").append(
"]]></saveLevel>");
xmlBuffer.append("<forcedSave><![CDATA[").append(true).append(
"]]></forcedSave>");
xmlBuffer.append("<taxInFocus><![CDATA[").append(false).append(
"]]></taxInFocus>");
xmlBuffer.append("<description>").append("Header0 members").append(
"</description>");
xmlBuffer.append("<Detail1 objContext =\"1\"").append(
" objName=\"misc_drcr_rcp_dr\" domID=\"1\" dbID=\"\">");
xmlBuffer
.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
xmlBuffer.append("<tran_id/>");
xmlBuffer.append("<tran_type>").append("<![CDATA[").append("HO").append("]]></tran_type>\r\n");
xmlBuffer.append("<tran_ser>").append("<![CDATA[").append("MDRCRD").append("]]></tran_ser>\r\n");
xmlBuffer.append("<tran_date>").append("<![CDATA[").append(currAppdate).append("]]></tran_date>\r\n");
xmlBuffer.append("<eff_date>").append("<![CDATA[").append(currAppdate).append("]]></eff_date>\r\n");
xmlBuffer.append("<due_date>").append("<![CDATA[").append(currAppdate).append("]]></due_date>\r\n");
xmlBuffer.append("<fin_entity>").append("<![CDATA[").append(finEntity).append("]]></fin_entity>\r\n");
xmlBuffer.append("<site_code>").append("<![CDATA[").append(siteCode).append("]]></site_code>\r\n");
xmlBuffer.append("<cctr_code>").append("<![CDATA[").append(cctrCode).append("]]></cctr_code>\r\n");
xmlBuffer.append("<sundry_type>").append("<![CDATA[").append("C").append("]]></sundry_type>\r\n");
xmlBuffer.append("<sundry_code>").append("<![CDATA[").append(custCode).append("]]></sundry_code>\r\n");
xmlBuffer.append("<acct_code>").append("<![CDATA[").append(acctCode).append("]]></acct_code>\r\n");
xmlBuffer.append("<curr_code>").append("<![CDATA[" + currencyCode + "]]>").append("</curr_code>\r\n");
xmlBuffer.append("<amount>").append("<![CDATA[").append(detail3AmtT).append("]]></amount>\r\n");
xmlBuffer.append("<drcr_flag>").append("<![CDATA[").append("D").append("]]></drcr_flag>\r\n");
xmlBuffer.append("<item_ser>").append("<![CDATA[").append(itemSer).append("]]></item_ser>\r\n");
xmlBuffer.append("<exch_rate>").append("<![CDATA[").append(exchRate).append("]]></exch_rate>\r\n");
xmlBuffer.append("<confirmed>").append("<![CDATA[").append("N").append("]]></confirmed>\r\n");
xmlBuffer.append("<acct_code__tot_ar>").append("<![CDATA[").append(acctCodetotAR).append("]]></acct_code__tot_ar>\r\n");
xmlBuffer.append("<cctr_code__tot_ar>").append("<![CDATA[").append(cctrCodetotAR).append("]]></cctr_code__tot_ar>\r\n");
xmlBuffer.append("<reas_code>").append("<![CDATA[").append("PODDB").append("]]></reas_code>\r\n");
xmlBuffer.append("<tran_type>").append("<![CDATA[").append("HO")
.append("]]></tran_type>\r\n");
xmlBuffer.append("<tran_ser>").append("<![CDATA[").append("MDRCRD")
.append("]]></tran_ser>\r\n");
xmlBuffer.append("<tran_date>").append("<![CDATA[").append(
currAppdate).append("]]></tran_date>\r\n");
xmlBuffer.append("<eff_date>").append("<![CDATA[").append(
currAppdate).append("]]></eff_date>\r\n");
xmlBuffer.append("<due_date>").append("<![CDATA[").append(
currAppdate).append("]]></due_date>\r\n");
xmlBuffer.append("<fin_entity>").append("<![CDATA[").append(
finEntity).append("]]></fin_entity>\r\n");
xmlBuffer.append("<site_code>").append("<![CDATA[")
.append(siteCode).append("]]></site_code>\r\n");
xmlBuffer.append("<cctr_code>").append("<![CDATA[")
.append(cctrCode).append("]]></cctr_code>\r\n");
xmlBuffer.append("<sundry_type>").append("<![CDATA[").append("C")
.append("]]></sundry_type>\r\n");
xmlBuffer.append("<sundry_code>").append("<![CDATA[").append(
custCode).append("]]></sundry_code>\r\n");
xmlBuffer.append("<acct_code>").append("<![CDATA[")
.append(acctCode).append("]]></acct_code>\r\n");
xmlBuffer.append("<curr_code>").append(
"<![CDATA[" + currencyCode + "]]>").append(
"</curr_code>\r\n");
xmlBuffer.append("<amount>").append("<![CDATA[")
.append(detail3AmtT).append("]]></amount>\r\n");
xmlBuffer.append("<drcr_flag>").append("<![CDATA[").append("D")
.append("]]></drcr_flag>\r\n");
xmlBuffer.append("<item_ser>").append("<![CDATA[").append(itemSer)
.append("]]></item_ser>\r\n");
xmlBuffer.append("<exch_rate>").append("<![CDATA[")
.append(exchRate).append("]]></exch_rate>\r\n");
xmlBuffer.append("<confirmed>").append("<![CDATA[").append("N")
.append("]]></confirmed>\r\n");
xmlBuffer.append("<acct_code__tot_ar>").append("<![CDATA[").append(
acctCodetotAR).append("]]></acct_code__tot_ar>\r\n");
xmlBuffer.append("<cctr_code__tot_ar>").append("<![CDATA[").append(
cctrCodetotAR).append("]]></cctr_code__tot_ar>\r\n");
xmlBuffer.append("<reas_code>").append("<![CDATA[").append("PODDB")
.append("]]></reas_code>\r\n");
// xmlBuffer.append("<cust_ref_no>").append("<![CDATA[").append(invoiceId).append("]]></cust_ref_no>\r\n");
// xmlBuffer.append("<cust_ref_date>").append("<![CDATA[").append(invoiceDate).append("]]></cust_ref_date>\r\n");
xmlBuffer.append("<remarks>").append("<![CDATA[").append(remarks.trim()).append("]]></remarks>\r\n");
xmlBuffer.append("<remarks>").append("<![CDATA[").append(
remarks.trim()).append("]]></remarks>\r\n");
xmlBuffer.append("<chg_user/>\r\n");
xmlBuffer.append("<chg_term/>\r\n");
xmlBuffer.append("<chg_date>").append("<![CDATA[").append(currAppdate).append("]]></chg_date>\r\n");
xmlBuffer.append("<chg_date>").append("<![CDATA[").append(
currAppdate).append("]]></chg_date>\r\n");
xmlBuffer.append("</Detail1>\r\n");
System.out.println("Detail 2 xml String ---->>[[ "+detail2xmlString+" ]]");
System.out.println("Detail 2 xml String ---->>[[ "
+ detail2xmlString + " ]]");
xmlBuffer.append(detail2xmlString);
xmlBuffer.append("</Header0>");
xmlBuffer.append("</group0>");
xmlBuffer.append("</DocumentRoot>");
xmlString=xmlBuffer.toString();
xmlString = xmlBuffer.toString();
System.out.println("All XML String --->>[["+xmlBuffer.toString()+"]]");
xmlStringAll=xmlBuffer.toString(); // xmlStringAll access in POD Process.
System.out.println("All XML String --->>[[" + xmlBuffer.toString()
+ "]]");
xmlStringAll = xmlBuffer.toString(); // xmlStringAll access in
// POD Process.
System.out.println("------ debit Note Data saving------------------");
retString=saveData(siteCode, xmlString, conn);
System.out.println("debit Note Data saved successfully. retString : [["+retString+"]]");
if (retString.indexOf("Success") > -1)
{
System.out
.println("------ debit Note Data saving------------------");
retString = saveData(siteCode, xmlString, conn);
System.out
.println("debit Note Data saved successfully. retString : [["
+ retString + "]]");
if (retString.indexOf("Success") > -1) {
System.out.println("retString.indexOf(Success) > -1)");
String[] arrayForTranId = retString.split("<TranID>");
int endIndex = arrayForTranId[1].indexOf("</TranID>");
dbTranID = arrayForTranId[1].substring(0,endIndex);
//retString ="";
System.out.println("@@@@@@3: retString"+retString);
System.out.println("DebitNoteTranID------>>>["+dbTranID+"]");
if(dbTranID != null && dbTranID.trim().length() > 0)
{
dbTranID = arrayForTranId[1].substring(0, endIndex);
// retString ="";
System.out.println("@@@@@@3: retString" + retString);
System.out
.println("DebitNoteTranID------>>>[" + dbTranID + "]");
if (dbTranID != null && dbTranID.trim().length() > 0) {
System.out.println("tran_id__drn generated successfully----------");
debitNoteTranID=dbTranID;
System.out
.println("tran_id__drn generated successfully----------");
debitNoteTranID = dbTranID;
}
}
}catch(Exception e)
{
isError=true;
} catch (Exception e) {
isError = true;
retString = e.getMessage();
e.printStackTrace();
throw new ITMException(e);
......@@ -482,128 +535,149 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
return retString;
}
protected String getDetailsXmlString(Connection conn,String invoiceId, int lineNoTrace,int lineNo,double rateInv,double qtyInv,String lotNo,String lotSl,String itemCode, double debitNoteAmtDetail)
{
invoiceId=invoiceId==null ? "" : invoiceId.trim();
System.out.println("in getDetail2xmlString -->> itemCode: "+itemCode+" LineNo : "+lineNo);
StringBuffer detail2xml=new StringBuffer();
PreparedStatement pstmt1=null;
ResultSet rs1=null;
String acctCodeUDF1="",acctCodeUDF2="",sql="",itemUnit="";
try
{
sql="select UDF_STR1,UDF_STR2 from gencodes where FLD_NAME = ? AND MOD_NAME = ? AND FLD_VALUE = ? ";
pstmt1=conn.prepareStatement(sql);
protected String getDetailsXmlString(Connection conn, String invoiceId,
int lineNoTrace, int lineNo, double rateInv, double qtyInv,
String lotNo, String lotSl, String itemCode,
double debitNoteAmtDetail) {
invoiceId = invoiceId == null ? "" : invoiceId.trim();
System.out.println("in getDetail2xmlString -->> itemCode: " + itemCode
+ " LineNo : " + lineNo);
StringBuffer detail2xml = new StringBuffer();
PreparedStatement pstmt1 = null;
ResultSet rs1 = null;
String acctCodeUDF1 = "", acctCodeUDF2 = "", sql = "", itemUnit = "";
try {
sql = "select UDF_STR1,UDF_STR2 from gencodes where FLD_NAME = ? AND MOD_NAME = ? AND FLD_VALUE = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, "REAS_CODE");
pstmt1.setString(2, "W_MISC_DRCR_RCP_DR");
pstmt1.setString(3, "PODDB");
rs1=pstmt1.executeQuery();
if(rs1.next())
{
acctCodeUDF1=rs1.getString(1)==null ? "" :rs1.getString(1);
acctCodeUDF2=rs1.getString(2)==null ? "" :rs1.getString(2);
}
rs1.close();rs1=null;
pstmt1.close();pstmt1=null;
System.out.println("acctCodeUDF1 : "+acctCodeUDF1+" acctCodeUDF2 : "+acctCodeUDF2);
itemUnit =getColumnDescr(conn, "unit","item","item_code", itemCode);
System.out.println("Item Code : "+itemCode+" itemCode Unit : "+itemUnit);
detail2xml.append("<Detail2 objContext =\"2\"").append(" objName=\"misc_drcr_rcp_dr\" domID=\"1\" dbID=\"\">");
detail2xml.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
rs1 = pstmt1.executeQuery();
if (rs1.next()) {
acctCodeUDF1 = rs1.getString(1) == null ? "" : rs1.getString(1);
acctCodeUDF2 = rs1.getString(2) == null ? "" : rs1.getString(2);
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
System.out.println("acctCodeUDF1 : " + acctCodeUDF1
+ " acctCodeUDF2 : " + acctCodeUDF2);
itemUnit = getColumnDescr(conn, "unit", "item", "item_code",
itemCode);
System.out.println("Item Code : " + itemCode + " itemCode Unit : "
+ itemUnit);
detail2xml.append("<Detail2 objContext =\"2\"").append(
" objName=\"misc_drcr_rcp_dr\" domID=\"1\" dbID=\"\">");
detail2xml
.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
detail2xml.append("<tran_id/>");
detail2xml.append("<line_no>").append("<![CDATA[").append(lineNo).append("]]></line_no>");
detail2xml.append("<line_no__invtrace>").append("<![CDATA[").append(lineNoTrace).append("]]></line_no__invtrace>");
detail2xml.append("<net_amt>").append("<![CDATA[").append(debitNoteAmtDetail).append("]]></net_amt>");
detail2xml.append("<amount>").append("<![CDATA[").append(debitNoteAmtDetail).append("]]></amount>");
detail2xml.append("<acct_code>").append("<![CDATA[").append(acctCodeUDF1).append("]]></acct_code>");
detail2xml.append("<cctr_code>").append("<![CDATA[").append(acctCodeUDF2).append("]]></cctr_code>");
detail2xml.append("<sundry_type>").append("<![CDATA[").append("C").append("]]></sundry_type>\r\n");
detail2xml.append("<item_code>").append("<![CDATA[").append(itemCode).append("]]></item_code>\r\n");
detail2xml.append("<rate>").append("<![CDATA[").append(rateInv).append("]]></rate>\r\n");
detail2xml.append("<quantity>").append("<![CDATA[").append(qtyInv).append("]]></quantity>\r\n");
detail2xml.append("<lot_no>").append("<![CDATA[").append(lotNo).append("]]></lot_no>\r\n");
detail2xml.append("<lot_sl>").append("<![CDATA[").append(lotSl).append("]]></lot_sl>\r\n");
detail2xml.append("<unit>").append("<![CDATA[").append(itemUnit).append("]]></unit>\r\n");
detail2xml.append("<reas_code>").append("<![CDATA[").append("PODDB").append("]]></reas_code>\r\n");
detail2xml.append("<line_no>").append("<![CDATA[").append(lineNo)
.append("]]></line_no>");
detail2xml.append("<line_no__invtrace>").append("<![CDATA[")
.append(lineNoTrace).append("]]></line_no__invtrace>");
detail2xml.append("<net_amt>").append("<![CDATA[").append(
debitNoteAmtDetail).append("]]></net_amt>");
detail2xml.append("<amount>").append("<![CDATA[").append(
debitNoteAmtDetail).append("]]></amount>");
detail2xml.append("<acct_code>").append("<![CDATA[").append(
acctCodeUDF1).append("]]></acct_code>");
detail2xml.append("<cctr_code>").append("<![CDATA[").append(
acctCodeUDF2).append("]]></cctr_code>");
detail2xml.append("<sundry_type>").append("<![CDATA[").append("C")
.append("]]></sundry_type>\r\n");
detail2xml.append("<item_code>").append("<![CDATA[").append(
itemCode).append("]]></item_code>\r\n");
detail2xml.append("<rate>").append("<![CDATA[").append(rateInv)
.append("]]></rate>\r\n");
detail2xml.append("<quantity>").append("<![CDATA[").append(qtyInv)
.append("]]></quantity>\r\n");
detail2xml.append("<lot_no>").append("<![CDATA[").append(lotNo)
.append("]]></lot_no>\r\n");
detail2xml.append("<lot_sl>").append("<![CDATA[").append(lotSl)
.append("]]></lot_sl>\r\n");
detail2xml.append("<unit>").append("<![CDATA[").append(itemUnit)
.append("]]></unit>\r\n");
detail2xml.append("<reas_code>").append("<![CDATA[")
.append("PODDB").append("]]></reas_code>\r\n");
detail2xml.append("</Detail2>");
return detail2xml.toString();
}
catch(Exception e)
{
} catch (Exception e) {
System.out.println("Exception :getDetail2xmlString method :==>");
isError=true;
isError = true;
e.printStackTrace();
}
System.out.println("@@@@@2: xmlString detail2--->>[["+detail2xml.toString()+"]]");
System.out.println("@@@@@2: xmlString detail2--->>[["
+ detail2xml.toString() + "]]");
return detail2xml.toString();
}
private int updatePodHeader(Connection conn,String tranId,String loginCode)
{
String sql="";
int lineNo=0,count=0;
double dbAmt=0.0,debitNoteHeaderL=0;
PreparedStatement pstmt=null;
try{
private int updatePodHeader(Connection conn, String tranId, String loginCode) {
String sql = "";
int lineNo = 0, count = 0;
double dbAmt = 0.0, debitNoteHeaderL = 0;
PreparedStatement pstmt = null;
System.out.println("spl_sales_por_det updated successfully but not commit yet------");
try {
System.out.println("Final debitNote amt Header----->>["+debitNoteHeaderL+"]");
System.out
.println("spl_sales_por_det updated successfully but not commit yet------");
System.out.println("Final debitNote amt Header----->>["
+ debitNoteHeaderL + "]");
sql="update spl_sales_por_hdr set tran_id__drn = ? where tran_id = ?";
sql = "update spl_sales_por_hdr set tran_id__drn = ? where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,debitNoteTranID);
pstmt.setString(1, debitNoteTranID);
pstmt.setString(2, tranId);
count=pstmt.executeUpdate();
count = pstmt.executeUpdate();
sql="update spl_sales_por_hdr set confirmed = ?,conf_date = ?, emp_code__aprv = ? where tran_id = ? ";
pstmt=conn.prepareStatement(sql);
sql = "update spl_sales_por_hdr set confirmed = ?,conf_date = ?, emp_code__aprv = ? where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "Y");
pstmt.setDate(2, new java.sql.Date(System.currentTimeMillis()));
pstmt.setString(3,loginCode); //loginCode //"E10808"
pstmt.setString(3, loginCode); // loginCode //"E10808"
pstmt.setString(4, tranId);
count=pstmt.executeUpdate();
System.out.println("spl_sales_por_hdr(confirmed) updated successfully but not commit yet------");
}//end try
catch(Exception e){
count = pstmt.executeUpdate();
System.out
.println("spl_sales_por_hdr(confirmed) updated successfully but not commit yet------");
}// end try
catch (Exception e) {
e.printStackTrace();
return 0;
}
System.out.println("update count@@@----->>["+count+"]");
System.out.println("update count@@@----->>[" + count + "]");
return count;
}
private int updateDrCrRcpHdrAmt(String tranId,double actualDebitNote,Connection conn)
{
PreparedStatement pstmt=null;
ResultSet rs=null;
String sql="";
int cnt=0;
double drCrAcctAmt=0,drCrAcctAmtM=0,hdrDbAmt=0,finalHdrAmt=0,exchRate=0,amountBc=0;
try{
sql="select amount from drcr_racct where tran_id= ?";
pstmt=conn.prepareStatement(sql);
private int updateDrCrRcpHdrAmt(String tranId, double actualDebitNote,
Connection conn) {
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "";
int cnt = 0;
double drCrAcctAmt = 0, drCrAcctAmtM = 0, hdrDbAmt = 0, finalHdrAmt = 0, exchRate = 0, amountBc = 0;
try {
sql = "select amount from drcr_racct where tran_id= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs=pstmt.executeQuery();
while(rs.next())
{
drCrAcctAmt=rs.getDouble(1);
rs = pstmt.executeQuery();
while (rs.next()) {
drCrAcctAmt = rs.getDouble(1);
if(drCrAcctAmt < 0){
drCrAcctAmtM=drCrAcctAmtM + drCrAcctAmt;
if (drCrAcctAmt < 0) {
drCrAcctAmtM = drCrAcctAmtM + drCrAcctAmt;
}
}
......@@ -611,104 +685,100 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
rs = null;
pstmt.close();
pstmt = null;
System.out.println("Final amount drcr_racct------>>["+drCrAcctAmtM+"]");
sql="select amount,exch_rate from DRCR_RCP where tran_id= ?";
pstmt=conn.prepareStatement(sql);
System.out.println("Final amount drcr_racct------>>["
+ drCrAcctAmtM + "]");
sql = "select amount,exch_rate from DRCR_RCP where tran_id= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs=pstmt.executeQuery();
if(rs.next())
{
//hdrDbAmt=rs.getDouble(1);
exchRate=rs.getDouble(2);
rs = pstmt.executeQuery();
if (rs.next()) {
// hdrDbAmt=rs.getDouble(1);
exchRate = rs.getDouble(2);
}
System.out.println("Header amount in DRCR_RCP------>>["+hdrDbAmt+"]");
System.out.println("Header amount in DRCR_RCP------>>[" + hdrDbAmt
+ "]");
finalHdrAmt= hdrDbAmt + drCrAcctAmtM;
finalHdrAmt = hdrDbAmt + drCrAcctAmtM;
amountBc = actualDebitNote * exchRate;
System.out.println("Final Header amount in DRCR_RCP------>>["+finalHdrAmt+"]");
System.out.println("Final Header amount_bc in DRCR_RCP------>>["+amountBc+"]");
System.out.println("Final Header amount in DRCR_RCP------>>["
+ finalHdrAmt + "]");
System.out.println("Final Header amount_bc in DRCR_RCP------>>["
+ amountBc + "]");
sql="update DRCR_RCP set amount = ?,amount__bc = ? where tran_id = ?";
pstmt=conn.prepareStatement(sql);
sql = "update DRCR_RCP set amount = ?,amount__bc = ? where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, actualDebitNote);
pstmt.setDouble(2, amountBc);
pstmt.setString(3, tranId);
cnt=pstmt.executeUpdate();
cnt = pstmt.executeUpdate();
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
catch(Exception e)
{
isError=true;
} catch (Exception e) {
isError = true;
e.printStackTrace();
}
System.out.println("cnt in updateDrCrRcpHdrAmt---->["+cnt+"]");
System.out.println("cnt in updateDrCrRcpHdrAmt---->[" + cnt + "]");
return cnt;
}
private String saveData(String siteCode, String xmlString, Connection conn) throws ITMException
{
private String saveData(String siteCode, String xmlString, Connection conn)
throws ITMException {
System.out.println("saving data...........");
InitialContext ctx = null;
String retString = null;
MasterStatefulLocal masterStateful = null; // for ejb3
try
{
try {
AppConnectParm appConnect = new AppConnectParm();
ctx = new InitialContext(appConnect.getProperty());
masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local");
masterStateful = (MasterStatefulLocal) ctx
.lookup("ibase/MasterStatefulEJB/local");
String [] authencate = new String[2];
String[] authencate = new String[2];
authencate[0] = "";
authencate[1] = "";
System.out.println("xmlString in masterStateful :::: " + xmlString);
retString = masterStateful.processRequest(authencate, siteCode, true, xmlString, true, conn);
retString = masterStateful.processRequest(authencate, siteCode,
true, xmlString, true, conn);
masterStateful = null;
}
catch(ITMException itme)
{
} catch (ITMException itme) {
System.out.println("ITMException :PosConfirm :saveData :==>");
throw itme;
}
catch(Exception e)
{
isError=true;
} catch (Exception e) {
isError = true;
System.out.println("Exception :PosConfirm :saveData :==>");
throw new ITMException(e);
}
return retString;
}
private String getColumnDescr(Connection conn, String columnName ,String tableName, String columnName2, String value)
{
PreparedStatement pstmt = null ;
ResultSet rs = null ;
private String getColumnDescr(Connection conn, String columnName,
String tableName, String columnName2, String value) {
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "";
String findValue = "";
try
{
sql = "SELECT " + columnName + " from " + tableName + " where " + columnName2 +"= ?";
try {
sql = "SELECT " + columnName + " from " + tableName + " where "
+ columnName2 + "= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,value);
pstmt.setString(1, value);
rs = pstmt.executeQuery();
if(rs.next())
{
if (rs.next()) {
findValue = rs.getString(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
catch(Exception e)
{
} catch (Exception e) {
System.out.println("Exception in getColumnDescr ");
e.printStackTrace();
}
......@@ -717,52 +787,50 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
}
protected double getDebitNoteAmount (double rateInv,double qtyInv)
{
System.out.println("-------- in getDebitNoteAmount method -------------");
double debitNoteAmount=0,aprvRate=0,dbResale=0,dbAmt=0;
System.out.println("rateInv-->>["+rateInv+"]");
System.out.println("qtyInv-->>["+qtyInv+"]");
//debitNoteAmount= (podRate - apprvRate) * podQty;
//dbResale= podRate * podQty;
protected double getDebitNoteAmount(double rateInv, double qtyInv) {
System.out
.println("-------- in getDebitNoteAmount method -------------");
double debitNoteAmount = 0, aprvRate = 0, dbResale = 0, dbAmt = 0;
System.out.println("rateInv-->>[" + rateInv + "]");
System.out.println("qtyInv-->>[" + qtyInv + "]");
// debitNoteAmount= (podRate - apprvRate) * podQty;
// dbResale= podRate * podQty;
debitNoteAmount=rateInv * qtyInv;
//System.out.println("dbResale-->>["+podQty+"]");
System.out.println("dbAmt-->>["+dbAmt+"]");
debitNoteAmount = rateInv * qtyInv;
// System.out.println("dbResale-->>["+podQty+"]");
System.out.println("dbAmt-->>[" + dbAmt + "]");
/*
if(dbResale > dbAmt){
debitNoteAmount=dbResale - dbAmt;
}*/
System.out.println("debitNoteAmount-->>["+debitNoteAmount+"]");
* if(dbResale > dbAmt){ debitNoteAmount=dbResale - dbAmt; }
*/
System.out.println("debitNoteAmount-->>[" + debitNoteAmount + "]");
return debitNoteAmount;
}
private boolean isRegulatePriceNull(Connection conn,String tranId)
{
boolean isNull=false;
PreparedStatement pstmt1 = null ;
ResultSet rs1 = null ;
String sql="",itemCode="",regulatedPrice="";
sql="select item_code from spl_sales_por_det where tran_id = ?";
//getColumnDescr(conn,"regulated_price","item","item_code",itemCode);
try
{
pstmt1=conn.prepareStatement(sql);
private boolean isRegulatePriceNull(Connection conn, String tranId) {
boolean isNull = false;
PreparedStatement pstmt1 = null;
ResultSet rs1 = null;
String sql = "", itemCode = "", regulatedPrice = "";
sql = "select item_code from spl_sales_por_det where tran_id = ?";
// getColumnDescr(conn,"regulated_price","item","item_code",itemCode);
try {
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, tranId);
rs1=pstmt1.executeQuery();
while(rs1.next())
{
itemCode=rs1.getString(1)==null ? "" :rs1.getString(1);
regulatedPrice=getColumnDescr(conn,"regulated_price","item","item_code",itemCode);
System.out.println("--regulatedPrice in isRegulatePriceNull method -->>"+regulatedPrice);
if(regulatedPrice == null || regulatedPrice.trim().length()==0)
rs1 = pstmt1.executeQuery();
while (rs1.next()) {
itemCode = rs1.getString(1) == null ? "" : rs1.getString(1);
regulatedPrice = getColumnDescr(conn, "regulated_price",
"item", "item_code", itemCode);
System.out
.println("--regulatedPrice in isRegulatePriceNull method -->>"
+ regulatedPrice);
if (regulatedPrice == null
|| regulatedPrice.trim().length() == 0)
return true;
}
}
catch(Exception e)
{
} catch (Exception e) {
System.out.println("Exception in isRegulatePriceNull method ");
e.printStackTrace();
......@@ -770,10 +838,9 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
return false;
}
public String confirmDebitNote(String businessObj, String tranIdFr,String xtraParams, String forcedFlag, Connection conn) throws ITMException
{
public String confirmDebitNote(String businessObj, String tranIdFr,
String xtraParams, String forcedFlag, Connection conn)
throws ITMException {
String methodName = "";
String compName = "";
String retString = "";
......@@ -783,90 +850,94 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
System.out.println("-------in confirmDebitNote mothod----------------");
tranIdFr=tranIdFr==null ? "" :tranIdFr.trim();
System.out.println("Tran id for debit note--->>"+tranIdFr+"]");
try {
// ConnDriver connDriver = new ConnDriver();
// conn = connDriver.getConnectDB("DriverITM");
System.out
.println("-------in confirmDebitNote mothod----------------");
tranIdFr = tranIdFr == null ? "" : tranIdFr.trim();
System.out.println("Tran id for debit note--->>" + tranIdFr + "]");
methodName = "gbf_post";
actionURI = "http://NvoServiceurl.org/" + methodName;
sql = "SELECT SERVICE_CODE,COMP_NAME FROM SYSTEM_EVENTS WHERE OBJ_NAME = ? AND EVENT_CODE = 'pre_confirm' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,businessObj);
pstmt.setString(1, businessObj);
rs = pstmt.executeQuery();
if ( rs.next() )
{
if (rs.next()) {
serviceCode = rs.getString("SERVICE_CODE");
compName = rs.getString("COMP_NAME");
}
compName=compName==null ? "" :compName.trim();
System.out.println("serviceCode = ["+serviceCode+"] compName ["+compName+"]");
compName = compName == null ? "" : compName.trim();
System.out.println("serviceCode = [" + serviceCode
+ "] compName [" + compName + "]");
sql = "SELECT SERVICE_URI FROM SYSTEM_EVENT_SERVICES WHERE SERVICE_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,serviceCode);
pstmt.setString(1, serviceCode);
rs = pstmt.executeQuery();
if ( rs.next() )
{
if (rs.next()) {
serviceURI = rs.getString("SERVICE_URI");
}
serviceURI=serviceURI==null ? "" :serviceURI.trim();
System.out.println("serviceURI = ["+serviceURI+"]---> compName = ["+compName+"]");
serviceURI = serviceURI == null ? "" : serviceURI.trim();
System.out.println("serviceURI = [" + serviceURI
+ "]---> compName = [" + compName + "]");
Service service = new Service();
Call call = (Call)service.createCall();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(serviceURI));
call.setOperationName( new javax.xml.namespace.QName("http://NvoServiceurl.org", methodName ) );
call.setOperationName(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", methodName));
call.setUseSOAPAction(true);
call.setSOAPActionURI(actionURI);
Object[] aobj = new Object[4];
call.addParameter( new javax.xml.namespace.QName("http://NvoServiceurl.org", "component_name"), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter( new javax.xml.namespace.QName("http://NvoServiceurl.org", "tran_id"), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter( new javax.xml.namespace.QName("http://NvoServiceurl.org", "xtra_params"), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter( new javax.xml.namespace.QName("http://NvoServiceurl.org", "forced_flag"), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", "component_name"),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", "tran_id"), XMLType.XSD_STRING,
ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", "xtra_params"),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", "forced_flag"),
XMLType.XSD_STRING, ParameterMode.IN);
aobj[0] = new String(compName);
aobj[1] = new String(tranIdFr);
aobj[2] = new String(xtraParams);
aobj[3] = new String(forcedFlag);
//System.out.println("@@@@@@@@@@loginEmpCode:" +genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode")+":");
System.out.println("@@@@@@ call.setReturnType(XMLType.XSD_STRING) executed........");
// System.out.println("@@@@@@@@@@loginEmpCode:"
// +genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode")+":");
System.out
.println("@@@@@@ call.setReturnType(XMLType.XSD_STRING) executed........");
call.setReturnType(XMLType.XSD_STRING);
retString = (String)call.invoke(aobj);
retString = (String) call.invoke(aobj);
System.out.println("Confirm Complete @@@@@@@@@@@ Return string from NVO is:==>["+retString+"]");
System.out
.println("Confirm Complete @@@@@@@@@@@ Return string from NVO is:==>["
+ retString + "]");
}
catch(Exception e)
{
} catch (Exception e) {
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try{
if (pstmt != null )
{
} finally {
try {
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
/*if( conn != null ){
conn.close();
conn = null;
}*/
}
catch(Exception e)
{
/*
* if( conn != null ){ conn.close(); conn = null; }
*/
} catch (Exception e) {
System.out.println("Exception inCalling confirmed");
e.printStackTrace();
try{
try {
conn.rollback();
}catch (Exception s)
{
} catch (Exception s) {
System.out.println("Unable to rollback");
s.printStackTrace();
}
......@@ -875,10 +946,10 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
}
return retString;
}//end confirmCreditNote
}// end confirmCreditNote
public String confirmConsOrder(String businessObj, String tranIdFr,String xtraParams, Connection conn) throws ITMException
{
public String confirmConsOrder(String businessObj, String tranIdFr,
String xtraParams, Connection conn) throws ITMException {
String methodName = "";
String compName = "";
......@@ -889,88 +960,90 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
System.out.println("confirmSaleOrder(String businessObj, String tranIdFr,String xtraParams, String forcedFlag, Connection conn) called >>><!@#>");
try
{
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
System.out.println("enter in confirm method [[[[[[[[[[[]]]]]]]]]]] >>>>>");
System.out
.println("confirmSaleOrder(String businessObj, String tranIdFr,String xtraParams, String forcedFlag, Connection conn) called >>><!@#>");
try {
// ConnDriver connDriver = new ConnDriver();
// conn = connDriver.getConnectDB("DriverITM");
System.out
.println("enter in confirm method [[[[[[[[[[[]]]]]]]]]]] >>>>>");
methodName = "gbf_post";
actionURI = "http://NvoServiceurl.org/" + methodName;
sql = "SELECT SERVICE_CODE,COMP_NAME FROM SYSTEM_EVENTS WHERE OBJ_NAME = ? AND EVENT_CODE = 'pre_confirm' ";
sql = " SELECT SERVICE_CODE,COMP_NAME FROM SYSTEM_EVENTS WHERE OBJ_NAME = ? AND EVENT_CODE = 'pre_confirm' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,businessObj);
pstmt.setString(1, businessObj);
rs = pstmt.executeQuery();
if ( rs.next() )
{
if (rs.next()) {
serviceCode = rs.getString("SERVICE_CODE");
compName = rs.getString("COMP_NAME");
}
System.out.println("serviceCode = "+serviceCode+" compName "+compName);
System.out.println("serviceCode = " + serviceCode + " compName "
+ compName);
sql = "SELECT SERVICE_URI FROM SYSTEM_EVENT_SERVICES WHERE SERVICE_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,serviceCode);
pstmt.setString(1, serviceCode);
rs = pstmt.executeQuery();
if ( rs.next() )
{
if (rs.next()) {
serviceURI = rs.getString("SERVICE_URI");
}
System.out.println("serviceURI = "+serviceURI+" compName = "+compName);
System.out.println("serviceURI = " + serviceURI + " compName = "
+ compName);
Service service = new Service();
Call call = (Call)service.createCall();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(serviceURI));
call.setOperationName( new javax.xml.namespace.QName("http://NvoServiceurl.org",methodName ) );
call.setOperationName(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", methodName));
call.setUseSOAPAction(true);
call.setSOAPActionURI(actionURI);
Object[] aobj = new Object[4];
call.addParameter( new javax.xml.namespace.QName("http://NvoServiceurl.org","component_name"), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter( new javax.xml.namespace.QName("http://NvoServiceurl.org","tran_id"), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter( new javax.xml.namespace.QName("http://NvoServiceurl.org","xtra_params"), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter( new javax.xml.namespace.QName("http://NvoServiceurl.org","forced_flag"), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", "component_name"),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", "tran_id"), XMLType.XSD_STRING,
ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", "xtra_params"),
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new javax.xml.namespace.QName(
"http://NvoServiceurl.org", "forced_flag"),
XMLType.XSD_STRING, ParameterMode.IN);
aobj[0] = new String(compName);
aobj[1] = new String(tranIdFr);
aobj[2] = new String(xtraParams);
//aobj[3] = new String(forcedFlag);
//System.out.println("@@@@@@@@@@loginEmpCode:"+genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode")+":");
System.out.println("@@@@@@ call.setReturnType(XMLType.XSD_STRING) executed........");
// aobj[3] = new String(forcedFlag);
// System.out.println("@@@@@@@@@@loginEmpCode:"+genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode")+":");
System.out
.println("@@@@@@ call.setReturnType(XMLType.XSD_STRING) executed........");
call.setReturnType(XMLType.XSD_STRING);
retString = (String)call.invoke(aobj);
System.out.println("Confirm Complete @@@@@@@@@@@ Return string from NVO is:==>["+retString+"]");
retString = (String) call.invoke(aobj);
System.out
.println("Confirm Complete @@@@@@@@@@@ Return string from NVO is:==>["
+ retString + "]");
}
catch(Exception e)
{
} catch (Exception e) {
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try{
if (pstmt != null )
{
} finally {
try {
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
/*if( conn != null ){
conn.close();
conn = null;
}*/
}
catch(Exception e)
{
/*
* if( conn != null ){ conn.close(); conn = null; }
*/
} catch (Exception e) {
System.out.println("Exception inCalling confirmed");
e.printStackTrace();
try{
try {
conn.rollback();
}catch (Exception s)
{
} catch (Exception s) {
System.out.println("Unable to rollback");
s.printStackTrace();
}
......@@ -981,5 +1054,4 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ProofOfDeli
}
}
......@@ -51,7 +51,7 @@ public class ProofOfDeliveryReject extends ActionHandlerEJB implements ProofOfDe
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator");
conn.setAutoCommit(false);
String wfStatus="",confirmed="";
String wfStatus="",confirmed="",rejectionRemark="";
sql = "select confirmed,wf_status from spl_sales_por_hdr WHERE tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
......@@ -90,8 +90,32 @@ public class ProofOfDeliveryReject extends ActionHandlerEJB implements ProofOfDe
errString = itmDBAccess.getErrorString("", "VTALREJ", "", "", conn);
return errString;
}
//Get Rejection remark
//[START] Added By Sanket Girme [04-Aug-2015]
sql="";
rejectionRemark="";
sql="SELECT REMARKS FROM SPL_SALES_POR_HDR WHERE TRAN_ID =?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs=pstmt.executeQuery();
if (rs.next()){
rejectionRemark = rs.getString(1);
}
System.out.println("Rejection Remark == >"+rejectionRemark);
rejectionRemark= rejectionRemark== null ? "" :rejectionRemark;
if(rejectionRemark.equalsIgnoreCase("") || rejectionRemark==null || rejectionRemark.length()<=0)
{
//Rejection Remark Blank
errString = itmDBAccess.getErrorString("", "VTREJNOTAB", "", "", conn);
return errString;
}
//[END] By Sanket Girme [04-Aug-2015]
sql="";
loginCode=GenericUtility.getInstance().getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
sql="update spl_sales_por_hdr set wf_status = ?, emp_code__aprv = ? where tran_id = ? ";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, "R");
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>67108864</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>0</orientation>
<margin>
<left>24</left>
<right>24</right>
<top>24</top>
<bottom>24</bottom>
</margin>
<paper>
<source>0</source>
<size>0</size>
</paper>
<prompt>no</prompt>
<canusedefaultprinter>yes</canusedefaultprinter>
<buttons>no</buttons>
<preview.buttons>no</preview.buttons>
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Summary>
<height>0</height>
<color>536870912</color>
</Summary>
<Footer>
<height>0</height>
<color>536870912</color>
</Footer>
<Detail>
<height>83</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>tran_id</name>
<dbname>tran_id</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>wf_status</name>
<dbname>status</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>rej_remark</name>
<dbname>rej_remark</dbname>
</table_column>
</TableDefinition>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id:</text>
<border>0</border>
<color>33554432</color>
<x>77</x>
<y>12</y>
<height>16</height>
<width>69</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>151</x>
<y>12</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Status:</text>
<border>0</border>
<color>33554432</color>
<x>77</x>
<y>34</y>
<height>16</height>
<width>69</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>status_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>151</x>
<y>34</y>
<height>15</height>
<width>89</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wf_status</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>33554432</color>
<x>151</x>
<y>55</y>
<height>16</height>
<width>342</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rej_remark</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>120</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<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>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Rejection Remark:</text>
<border>0</border>
<color>33554432</color>
<x>39</x>
<y>55</y>
<height>16</height>
<width>107</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>rej_remark_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
<clientevents>1</clientevents>
<clientvalidation>1</clientvalidation>
<clientcomputedfields>1</clientcomputedfields>
<clientformatting>0</clientformatting>
<clientscriptable>0</clientscriptable>
<generatejavascript>1</generatejavascript>
<encodeselflinkargs>1</encodeselflinkargs>
<netscapelayers>0</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>1</headgroups>
<includewhitespace>0</includewhitespace>
<metadatatype>0</metadatatype>
<savemetadata>0</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>0</method>
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
......@@ -70,6 +70,12 @@
<name>invoice_id</name>
<dbname>spl_sales_por_hdr.invoice_id</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>invoice_tran_date</name>
<dbname>invoice.tran_date</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
......@@ -84,6 +90,12 @@
<name>cust_code</name>
<dbname>spl_sales_por_hdr.cust_code</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>customer_cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
......@@ -112,6 +124,13 @@
<name>tran_id__drn</name>
<dbname>spl_sales_por_hdr.tran_id__drn</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>debit_note_amt</name>
<dbname>spl_sales_por_hdr.debit_note_amt</dbname>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
......@@ -140,6 +159,18 @@
<name>wf_status</name>
<dbname>spl_sales_por_hdr.wf_status</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>invoice_cust_code</name>
<dbname>invoice.cust_code</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>customer_cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
......@@ -161,13 +192,6 @@
<name>chg_term</name>
<dbname>spl_sales_por_hdr.chg_term</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>debit_note_amt</name>
<dbname>spl_sales_por_hdr.debit_note_amt</dbname>
</table_column>
<table_column>
<type size="120">char</type>
<update>yes</update>
......@@ -175,32 +199,7 @@
<name>remarks</name>
<dbname>spl_sales_por_hdr.remarks</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code__solto</name>
<dbname>spl_sales_por_hdr.cust_code__solto</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>customer_cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type>datetime</type>
<updatewhereclause>yes</updatewhereclause>
<name>invoice_tran_date</name>
<dbname>invoice.tran_date</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name_1</name>
<dbname>customer.cust_name</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;spl_sales_por_hdr&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;invoice&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_id&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.invoice_id&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.site_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.cust_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.curr_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.exch_rate&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.amount&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_id__drn&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.confirmed&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.conf_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.emp_code__aprv&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.wf_status&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_user&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_term&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.debit_note_amt&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.remarks&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.cust_code__solto&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;invoice.tran_date&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) JOIN (LEFT=&quot;customer_a.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;spl_sales_por_hdr.cust_code&quot; ) JOIN (LEFT=&quot;invoice.invoice_id&quot; OP =&quot;=&quot;RIGHT=&quot;spl_sales_por_hdr.invoice_id&quot; ) JOIN (LEFT=&quot;spl_sales_por_hdr.cust_code__solto&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; )WHERE( EXP1 =&quot;spl_sales_por_hdr.tran_date&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:fromdate&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;spl_sales_por_hdr.tran_date&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:todate&quot; ) ) ARG(NAME = &quot;fromdate&quot; TYPE = date) ARG(NAME = &quot;todate&quot; TYPE = date) </retrieve>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;spl_sales_por_hdr&quot; ) TABLE(NAME=&quot;invoice&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_id&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.invoice_id&quot;) COLUMN(NAME=&quot;invoice.tran_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.site_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.cust_code&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.curr_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.exch_rate&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.amount&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_id__drn&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.debit_note_amt&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.confirmed&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.conf_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.emp_code__aprv&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.wf_status&quot;) COLUMN(NAME=&quot;invoice.cust_code&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_user&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_term&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.remarks&quot;) JOIN (LEFT=&quot;invoice.invoice_id&quot; OP =&quot;=&quot;RIGHT=&quot;spl_sales_por_hdr.invoice_id&quot; ) JOIN (LEFT=&quot;customer_a.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;spl_sales_por_hdr.cust_code&quot; ) JOIN (LEFT=&quot;customer_b.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;invoice.cust_code__bil&quot; )) ARG(NAME = &quot;fromdate&quot; TYPE = date) ARG(NAME = &quot;todate&quot; TYPE = date) </retrieve>
<update>SPL_SALES_POR_HDR</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -222,7 +221,7 @@
<x>2</x>
<y>2</y>
<height>16</height>
<width>97</width>
<width>98</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -247,7 +246,7 @@
<text>Tran Date</text>
<border>6</border>
<color>33554432</color>
<x>101</x>
<x>102</x>
<y>2</y>
<height>16</height>
<width>86</width>
......@@ -275,7 +274,7 @@
<text>Invoice Id</text>
<border>6</border>
<color>33554432</color>
<x>189</x>
<x>190</x>
<y>2</y>
<height>16</height>
<width>100</width>
......@@ -303,7 +302,7 @@
<text>Site Code</text>
<border>6</border>
<color>33554432</color>
<x>387</x>
<x>370</x>
<y>2</y>
<height>16</height>
<width>74</width>
......@@ -328,10 +327,10 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Billed To Customer</text>
<text>Bill To Customer</text>
<border>6</border>
<color>33554432</color>
<x>463</x>
<x>446</x>
<y>2</y>
<height>16</height>
<width>113</width>
......@@ -359,7 +358,7 @@
<text>Curr Code</text>
<border>6</border>
<color>33554432</color>
<x>767</x>
<x>801</x>
<y>2</y>
<height>16</height>
<width>79</width>
......@@ -387,7 +386,7 @@
<text>Exch Rate</text>
<border>6</border>
<color>33554432</color>
<x>848</x>
<x>882</x>
<y>2</y>
<height>16</height>
<width>72</width>
......@@ -415,7 +414,7 @@
<text>Amount</text>
<border>6</border>
<color>33554432</color>
<x>922</x>
<x>956</x>
<y>2</y>
<height>16</height>
<width>72</width>
......@@ -443,7 +442,7 @@
<text>Tran Id Drn</text>
<border>6</border>
<color>33554432</color>
<x>996</x>
<x>1030</x>
<y>2</y>
<height>16</height>
<width>77</width>
......@@ -471,7 +470,7 @@
<text>Confirmed</text>
<border>6</border>
<color>33554432</color>
<x>1177</x>
<x>1211</x>
<y>2</y>
<height>16</height>
<width>59</width>
......@@ -499,7 +498,7 @@
<text>Confirmed Date</text>
<border>6</border>
<color>33554432</color>
<x>1238</x>
<x>1272</x>
<y>2</y>
<height>16</height>
<width>105</width>
......@@ -527,7 +526,7 @@
<text>Emp Code Aprv</text>
<border>6</border>
<color>33554432</color>
<x>1345</x>
<x>1379</x>
<y>2</y>
<height>16</height>
<width>99</width>
......@@ -555,7 +554,7 @@
<text>Wf Status</text>
<border>6</border>
<color>33554432</color>
<x>1446</x>
<x>1480</x>
<y>2</y>
<height>16</height>
<width>62</width>
......@@ -583,7 +582,7 @@
<text>Chg Date</text>
<border>6</border>
<color>33554432</color>
<x>1841</x>
<x>1922</x>
<y>2</y>
<height>16</height>
<width>91</width>
......@@ -611,7 +610,7 @@
<text>Chg User</text>
<border>6</border>
<color>33554432</color>
<x>1934</x>
<x>2015</x>
<y>2</y>
<height>16</height>
<width>66</width>
......@@ -639,7 +638,7 @@
<text>Chg Term</text>
<border>6</border>
<color>33554432</color>
<x>2002</x>
<x>2083</x>
<y>2</y>
<height>16</height>
<width>96</width>
......@@ -667,7 +666,7 @@
<text>Debit Note Amt</text>
<border>6</border>
<color>33554432</color>
<x>1075</x>
<x>1109</x>
<y>1</y>
<height>16</height>
<width>100</width>
......@@ -695,10 +694,10 @@
<text>Rejection Remark</text>
<border>6</border>
<color>33554432</color>
<x>2100</x>
<x>2181</x>
<y>1</y>
<height>19</height>
<width>282</width>
<width>242</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -720,17 +719,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Soled To Customer</text>
<text>Invoice Date</text>
<border>6</border>
<color>33554432</color>
<x>1510</x>
<x>292</x>
<y>1</y>
<height>19</height>
<width>135</width>
<width>76</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__solto_t</name>
<name>invoice_tran_date_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -748,13 +747,13 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Billed To Customer Name</text>
<text>Bill To Customer Name</text>
<border>6</border>
<color>33554432</color>
<x>578</x>
<x>561</x>
<y>1</y>
<height>19</height>
<width>187</width>
<height>16</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -776,17 +775,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Invoice Date</text>
<text>Sold To Customer</text>
<border>6</border>
<color>33554432</color>
<x>291</x>
<x>1544</x>
<y>1</y>
<height>19</height>
<width>94</width>
<height>16</height>
<width>136</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_tran_date_t</name>
<name>invoice_cust_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -804,17 +803,17 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Soled To Customer Name</text>
<text>Sold To Customer Name</text>
<border>6</border>
<color>33554432</color>
<x>1647</x>
<x>1682</x>
<y>1</y>
<height>19</height>
<width>192</width>
<height>16</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_name_1_t</name>
<name>customer_cust_name_1_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -839,7 +838,7 @@
<x>2</x>
<y>2</y>
<height>19</height>
<width>97</width>
<width>98</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -874,7 +873,7 @@
<tabsequence>20</tabsequence>
<border>0</border>
<color>33554432</color>
<x>101</x>
<x>102</x>
<y>2</y>
<height>19</height>
<width>86</width>
......@@ -912,7 +911,7 @@
<tabsequence>30</tabsequence>
<border>0</border>
<color>33554432</color>
<x>189</x>
<x>190</x>
<y>2</y>
<height>19</height>
<width>100</width>
......@@ -945,12 +944,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<id>5</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>0</border>
<color>33554432</color>
<x>387</x>
<x>370</x>
<y>2</y>
<height>19</height>
<width>74</width>
......@@ -983,12 +982,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>6</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>0</border>
<color>33554432</color>
<x>463</x>
<x>446</x>
<y>2</y>
<height>19</height>
<width>113</width>
......@@ -1021,12 +1020,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<id>8</id>
<alignment>0</alignment>
<tabsequence>80</tabsequence>
<border>0</border>
<color>33554432</color>
<x>767</x>
<x>801</x>
<y>2</y>
<height>19</height>
<width>79</width>
......@@ -1059,12 +1058,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<id>9</id>
<alignment>1</alignment>
<tabsequence>90</tabsequence>
<border>0</border>
<color>33554432</color>
<x>848</x>
<x>882</x>
<y>2</y>
<height>19</height>
<width>72</width>
......@@ -1097,12 +1096,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<id>10</id>
<alignment>1</alignment>
<tabsequence>100</tabsequence>
<border>0</border>
<color>33554432</color>
<x>922</x>
<x>956</x>
<y>2</y>
<height>19</height>
<width>72</width>
......@@ -1135,12 +1134,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>110</tabsequence>
<border>0</border>
<color>33554432</color>
<x>996</x>
<x>1030</x>
<y>2</y>
<height>19</height>
<width>77</width>
......@@ -1173,12 +1172,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<id>13</id>
<alignment>0</alignment>
<tabsequence>130</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1177</x>
<x>1211</x>
<y>2</y>
<height>19</height>
<width>59</width>
......@@ -1211,12 +1210,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>14</id>
<alignment>0</alignment>
<tabsequence>140</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1238</x>
<x>1272</x>
<y>2</y>
<height>19</height>
<width>105</width>
......@@ -1249,12 +1248,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>150</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1345</x>
<x>1379</x>
<y>2</y>
<height>19</height>
<width>99</width>
......@@ -1287,12 +1286,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<id>16</id>
<alignment>0</alignment>
<tabsequence>160</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1446</x>
<x>1480</x>
<y>2</y>
<height>19</height>
<width>62</width>
......@@ -1325,12 +1324,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>14</id>
<id>19</id>
<alignment>0</alignment>
<tabsequence>190</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1841</x>
<x>1922</x>
<y>2</y>
<height>19</height>
<width>91</width>
......@@ -1363,12 +1362,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<id>20</id>
<alignment>0</alignment>
<tabsequence>200</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1934</x>
<x>2015</x>
<y>2</y>
<height>19</height>
<width>66</width>
......@@ -1401,12 +1400,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>21</id>
<alignment>0</alignment>
<tabsequence>210</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2002</x>
<x>2083</x>
<y>2</y>
<height>19</height>
<width>96</width>
......@@ -1439,12 +1438,12 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<id>12</id>
<alignment>0</alignment>
<tabsequence>120</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1075</x>
<x>1109</x>
<y>1</y>
<height>15</height>
<width>100</width>
......@@ -1475,15 +1474,15 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<id>22</id>
<alignment>0</alignment>
<tabsequence>220</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2100</x>
<x>2181</x>
<y>1</y>
<height>16</height>
<width>282</width>
<width>242</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -1511,20 +1510,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>19</id>
<id>4</id>
<alignment>0</alignment>
<tabsequence>170</tabsequence>
<tabsequence>40</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1510</x>
<x>292</x>
<y>1</y>
<height>16</height>
<width>135</width>
<format>[general]</format>
<width>76</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__solto</name>
<name>invoice_tran_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1547,15 +1546,15 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<id>7</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>0</border>
<color>33554432</color>
<x>578</x>
<x>561</x>
<y>1</y>
<height>16</height>
<width>187</width>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -1583,20 +1582,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<id>17</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<tabsequence>170</tabsequence>
<border>0</border>
<color>33554432</color>
<x>291</x>
<x>1544</x>
<y>1</y>
<height>16</height>
<width>94</width>
<format>[shortdate] [time]</format>
<width>136</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_tran_date</name>
<name>invoice_cust_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1619,20 +1618,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<id>18</id>
<alignment>0</alignment>
<tabsequence>180</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1647</x>
<x>1682</x>
<y>1</y>
<height>16</height>
<width>192</width>
<width>238</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_name_1</name>
<name>customer_cust_name_1</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......
......@@ -43,13 +43,6 @@
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<type size="0">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>remarks</name>
<dbname>remarks</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
......@@ -200,26 +193,32 @@
<name>invoice_tran_date</name>
<dbname>invoice.tran_date</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>customer_cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="120">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>spl_sales_por_hdr_remarks</name>
<dbname>spl_sales_por_hdr.remarks</dbname>
</table_column>
<table_column>
<type size="100">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>invoice_remarks</name>
<dbname>invoice.remarks</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code__solto</name>
<dbname>spl_sales_por_hdr.cust_code__solto</dbname>
<name>invoice_cust_code</name>
<dbname>invoice.cust_code</dbname>
</table_column>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name_1</name>
<dbname>customer.cust_name</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;spl_sales_por_hdr&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;site&quot; ) TABLE(NAME=&quot;invoice&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) COMPUTE(NAME=&quot;&apos;&apos; remarks&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_id&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.invoice_id&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.site_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.cust_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.curr_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.exch_rate&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.amount&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_id__drn&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.confirmed&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.conf_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.emp_code__aprv&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.wf_status&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_user&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_term&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;site.descr&quot;) COLUMN(NAME=&quot;invoice.prd_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.debit_note_amt&quot;) COLUMN(NAME=&quot;invoice.tran_date&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.remarks&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.cust_code__solto&quot;) JOIN (LEFT=&quot;customer_a.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;spl_sales_por_hdr.cust_code&quot; ) JOIN (LEFT=&quot;site.site_code&quot; OP =&quot;=&quot;RIGHT=&quot;spl_sales_por_hdr.site_code&quot; ) JOIN (LEFT=&quot;spl_sales_por_hdr.invoice_id&quot; OP =&quot;=&quot;RIGHT=&quot;invoice.invoice_id&quot; ) JOIN (LEFT=&quot;spl_sales_por_hdr.invoice_id&quot; OP =&quot;=&quot;RIGHT=&quot;invoice.invoice_id&quot; ) JOIN (LEFT=&quot;spl_sales_por_hdr.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; )WHERE( EXP1 =&quot;spl_sales_por_hdr.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;spl_sales_por_hdr&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;site&quot; ) TABLE(NAME=&quot;invoice&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_id&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.invoice_id&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.site_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.cust_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.curr_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.exch_rate&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.amount&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.tran_id__drn&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.confirmed&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.conf_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.emp_code__aprv&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.wf_status&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_user&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.chg_term&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;site.descr&quot;) COLUMN(NAME=&quot;invoice.prd_code&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.debit_note_amt&quot;) COLUMN(NAME=&quot;invoice.tran_date&quot;) COLUMN(NAME=&quot;spl_sales_por_hdr.remarks&quot;) COLUMN(NAME=&quot;invoice.remarks&quot;) COLUMN(NAME=&quot;invoice.cust_code&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) JOIN (LEFT=&quot;spl_sales_por_hdr.invoice_id&quot; OP =&quot;=&quot;RIGHT=&quot;invoice.invoice_id&quot; ) JOIN (LEFT=&quot;spl_sales_por_hdr.site_code&quot; OP =&quot;=&quot;RIGHT=&quot;site.site_code&quot; ) JOIN (LEFT=&quot;spl_sales_por_hdr.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer_a.cust_code&quot; ) JOIN (LEFT=&quot;invoice.cust_code__bil&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; )WHERE( EXP1 =&quot;~&quot;SPL_SALES_POR_HDR~&quot;.~&quot;TRAN_ID~&quot;&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<update>SPL_SALES_POR_HDR</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -233,10 +232,10 @@
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>16</x>
<y>17</y>
<x>21</x>
<y>16</y>
<height>288</height>
<width>564</width>
<width>558</width>
<name>gb_1</name>
<visible>1</visible>
<font>
......@@ -362,7 +361,7 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>15</id>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
......@@ -400,7 +399,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>16</id>
<id>15</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
......@@ -438,7 +437,7 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>17</id>
<id>16</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
......@@ -561,7 +560,7 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Billed To Customer:</text>
<text>Bill To Customer:</text>
<border>0</border>
<color>33554432</color>
<x>28</x>
......@@ -586,21 +585,31 @@
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Invoice Id:</text>
<border>0</border>
<color>33554432</color>
<x>45</x>
<y>101</y>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>458</x>
<y>32</y>
<height>16</height>
<width>97</width>
<width>90</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_id_t</name>
<name>tran_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -610,25 +619,33 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Invoice Date:</text>
<border>0</border>
<color>33554432</color>
<x>340</x>
<y>100</y>
<id>18</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>243</x>
<y>55</y>
<height>16</height>
<width>114</width>
<width>305</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_3</name>
<name>site_descr</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -638,25 +655,33 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Currency Code:</text>
<border>0</border>
<color>33554432</color>
<x>45</x>
<y>125</y>
<id>17</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>243</x>
<y>78</y>
<height>16</height>
<width>97</width>
<width>305</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>curr_code_t</name>
<name>cust_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -666,25 +691,35 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Debit Note Amount:</text>
<border>0</border>
<color>33554432</color>
<x>341</x>
<y>122</y>
<height>15</height>
<width>114</width>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>146</x>
<y>32</y>
<height>16</height>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_1</name>
<name>tran_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -694,25 +729,35 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Amount:</text>
<border>0</border>
<color>33554432</color>
<x>45</x>
<y>148</y>
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>146</x>
<y>55</y>
<height>16</height>
<width>97</width>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>amount_t</name>
<name>site_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -722,25 +767,35 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Exchange Rate:</text>
<border>0</border>
<color>33554432</color>
<x>357</x>
<y>143</y>
<id>5</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>146</x>
<y>78</y>
<height>16</height>
<width>97</width>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exch_rate_t</name>
<name>cust_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -750,10 +805,10 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
......@@ -761,7 +816,7 @@
<border>0</border>
<color>33554432</color>
<x>77</x>
<y>170</y>
<y>189</y>
<height>16</height>
<width>65</width>
<html>
......@@ -782,21 +837,29 @@
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Tran Id Drn:</text>
<border>0</border>
<color>33554432</color>
<x>357</x>
<y>168</y>
<id>13</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>146</x>
<y>189</y>
<height>16</height>
<width>97</width>
<width>88</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__drn_t</name>
<name>wf_status</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -806,24 +869,24 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Soled To Customer:</text>
<text>Amount:</text>
<border>0</border>
<color>33554432</color>
<x>19</x>
<y>192</y>
<x>45</x>
<y>167</y>
<height>16</height>
<width>123</width>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_4</name>
<name>amount_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -838,21 +901,29 @@
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>1</alignment>
<text>Emp Code Aprv:</text>
<border>0</border>
<color>33554432</color>
<x>45</x>
<y>215</y>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>147</x>
<y>166</y>
<height>16</height>
<width>97</width>
<width>88</width>
<format>0.000</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv_t</name>
<name>amount</name>
<visible>1</visible>
<EditStyle style="editmask">
<useformat>yes</useformat>
<mask>#,##,##,##,##,###.###</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -862,24 +933,24 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed:</text>
<text>Currency Code:</text>
<border>0</border>
<color>33554432</color>
<x>238</x>
<y>214</y>
<x>45</x>
<y>144</y>
<height>16</height>
<width>68</width>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed_t</name>
<name>curr_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -896,23 +967,23 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>309</x>
<y>214</y>
<x>146</x>
<y>144</y>
<height>16</height>
<width>50</width>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>confirmed</name>
<name>curr_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -935,17 +1006,17 @@
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Confirmed Date:</text>
<text>Sold To Customer:</text>
<border>0</border>
<color>33554432</color>
<x>363</x>
<y>214</y>
<x>31</x>
<y>100</y>
<height>16</height>
<width>97</width>
<width>111</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>conf_date_t</name>
<name>t_4</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -962,27 +1033,25 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<id>24</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>458</x>
<y>32</y>
<x>146</x>
<y>100</y>
<height>16</height>
<width>90</width>
<format>[shortdate] [time]</format>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_date</name>
<name>invoice_cust_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -998,29 +1067,21 @@
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>243</x>
<y>55</y>
<alignment>1</alignment>
<text>Invoice Id:</text>
<border>0</border>
<color>33554432</color>
<x>44</x>
<y>122</y>
<height>16</height>
<width>305</width>
<format>[general]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_descr</name>
<name>invoice_id_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1030,31 +1091,33 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>18</id>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>255</color>
<x>243</x>
<y>78</y>
<color>33554432</color>
<x>145</x>
<y>122</y>
<height>16</height>
<width>305</width>
<width>90</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_name</name>
<name>invoice_id</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1067,32 +1130,24 @@
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>22</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>255</color>
<x>456</x>
<y>100</y>
<alignment>1</alignment>
<text>Emp Code Aprv:</text>
<border>0</border>
<color>33554432</color>
<x>45</x>
<y>211</y>
<height>16</height>
<width>92</width>
<format>[shortdate] [time]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_tran_date</name>
<pointer></pointer>
<name>emp_code__aprv_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>DD/MM/YY</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1102,31 +1157,34 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>1</alignment>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>458</x>
<y>122</y>
<height>15</height>
<x>146</x>
<y>211</y>
<height>16</height>
<width>90</width>
<format>0.000</format>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>debit_note_amt</name>
<name>emp_code__aprv</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>#,##,##,##,##,###.###</mask>
<imemode>0</imemode>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
......@@ -1141,30 +1199,21 @@
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>8</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>458</x>
<y>143</y>
<text>Confirmed:</text>
<border>0</border>
<color>33554432</color>
<x>238</x>
<y>210</y>
<height>16</height>
<width>90</width>
<format>[General]</format>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>exch_rate</name>
<name>confirmed_t</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>
......@@ -1174,10 +1223,10 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
......@@ -1185,18 +1234,18 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>458</x>
<y>168</y>
<x>309</x>
<y>210</y>
<height>16</height>
<width>90</width>
<width>50</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id__drn</name>
<name>confirmed</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>1</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
......@@ -1216,29 +1265,21 @@
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>23</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>244</x>
<y>192</y>
<alignment>1</alignment>
<text>Confirmed Date:</text>
<border>0</border>
<color>33554432</color>
<x>363</x>
<y>210</y>
<height>16</height>
<width>304</width>
<format>[general]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>customer_cust_name</name>
<name>conf_date_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1248,19 +1289,19 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>12</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>458</x>
<y>214</y>
<y>210</y>
<height>16</height>
<width>90</width>
<format>[shortdate] [time]</format>
......@@ -1290,31 +1331,21 @@
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>146</x>
<y>32</y>
<alignment>1</alignment>
<text>Invoice Date:</text>
<border>0</border>
<color>33554432</color>
<x>338</x>
<y>121</y>
<height>16</height>
<width>88</width>
<format>[general]</format>
<width>114</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id</name>
<name>t_3</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1324,34 +1355,32 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<id>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>146</x>
<y>55</y>
<color>255</color>
<x>456</x>
<y>121</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
<width>92</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<name>invoice_tran_date</name>
<pointer></pointer>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<EditStyle style="editmask">
<mask>DD/MM/YY</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
......@@ -1363,34 +1392,24 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>146</x>
<y>78</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Debit Note Amount:</text>
<border>0</border>
<color>33554432</color>
<x>338</x>
<y>143</y>
<height>15</height>
<width>114</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code</name>
<name>t_1</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1400,34 +1419,31 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>4</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<id>20</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>33554432</color>
<x>146</x>
<y>101</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
<color>255</color>
<x>457</x>
<y>143</y>
<height>15</height>
<width>91</width>
<format>0.000</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>invoice_id</name>
<name>debit_note_amt</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<EditStyle style="editmask">
<mask>#,##,##,##,##,###.###</mask>
<imemode>0</imemode>
<focusrectangle>no</focusrectangle>
</EditStyle>
<font>
<face>Arial</face>
......@@ -1439,34 +1455,24 @@
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>146</x>
<y>125</y>
<alignment>1</alignment>
<text>Exchange Rate:</text>
<border>0</border>
<color>33554432</color>
<x>355</x>
<y>164</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>curr_code</name>
<name>exch_rate_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>5</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1476,32 +1482,33 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>7</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>147</x>
<y>147</y>
<x>456</x>
<y>164</y>
<height>16</height>
<width>88</width>
<format>0.000</format>
<width>92</width>
<format>[General]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>amount</name>
<name>exch_rate</name>
<visible>1</visible>
<EditStyle style="editmask">
<useformat>yes</useformat>
<mask>#,##,##,##,##,###.###</mask>
<imemode>0</imemode>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
......@@ -1516,29 +1523,21 @@
<color>67108864</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>14</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>146</x>
<y>170</y>
<alignment>1</alignment>
<text>Tran Id Drn:</text>
<border>0</border>
<color>33554432</color>
<x>355</x>
<y>187</y>
<height>16</height>
<width>88</width>
<format>[general]</format>
<width>97</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>wf_status</name>
<name>tran_id__drn_t</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1548,26 +1547,26 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>553648127</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>13</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>146</x>
<y>215</y>
<x>456</x>
<y>186</y>
<height>16</height>
<width>90</width>
<width>93</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>emp_code__aprv</name>
<name>tran_id__drn</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
......@@ -1597,7 +1596,7 @@
<border>0</border>
<color>33554432</color>
<x>45</x>
<y>236</y>
<y>232</y>
<height>16</height>
<width>97</width>
<html>
......@@ -1620,13 +1619,13 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<id>19</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>146</x>
<y>236</y>
<y>232</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
......@@ -1661,7 +1660,7 @@
<border>0</border>
<color>33554432</color>
<x>28</x>
<y>257</y>
<y>252</y>
<height>16</height>
<width>114</width>
<html>
......@@ -1682,45 +1681,17 @@
<color>553648127</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Invoice Remarks:</text>
<border>0</border>
<color>33554432</color>
<x>43</x>
<y>276</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_5</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>24</id>
<id>22</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<tabsequence>40</tabsequence>
<border>5</border>
<color>255</color>
<x>146</x>
<y>257</y>
<y>253</y>
<height>16</height>
<width>405</width>
<width>402</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -1747,22 +1718,50 @@
<color>67108864</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Invoice Remarks:</text>
<border>0</border>
<color>33554432</color>
<x>43</x>
<y>274</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>t_5</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>553648127</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>23</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>255</color>
<x>146</x>
<y>276</y>
<y>275</y>
<height>16</height>
<width>405</width>
<width>403</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>remarks</name>
<name>invoice_remarks</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -1787,18 +1786,18 @@
<band>Detail</band>
<id>25</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>0</border>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>145</x>
<y>193</y>
<x>242</x>
<y>100</y>
<height>16</height>
<width>89</width>
<width>307</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__solto</name>
<name>cust_name_1</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......
......@@ -255,8 +255,8 @@
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>121</x>
<y>46</y>
<x>120</x>
<y>45</y>
<height>16</height>
<width>90</width>
<format>[general]</format>
......@@ -673,7 +673,7 @@
<band>Detail</band>
<id>11</id>
<alignment>1</alignment>
<tabsequence>10</tabsequence>
<tabsequence>20</tabsequence>
<border>5</border>
<color>33554432</color>
<x>371</x>
......@@ -710,7 +710,7 @@
<band>Detail</band>
<id>3</id>
<alignment>1</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>10</tabsequence>
<border>5</border>
<color>255</color>
<x>121</x>
......@@ -823,7 +823,7 @@
<band>Detail</band>
<id>8</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>121</x>
......@@ -861,7 +861,7 @@
<band>Detail</band>
<id>20</id>
<alignment>1</alignment>
<tabsequence>20</tabsequence>
<tabsequence>30</tabsequence>
<border>5</border>
<color>33554432</color>
<x>371</x>
......@@ -898,7 +898,7 @@
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>33554432</color>
<x>371</x>
......@@ -1282,7 +1282,7 @@
<name>transit_day</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<limit>3</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
......@@ -1332,7 +1332,7 @@
<band>Detail</band>
<id>16</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<tabsequence>60</tabsequence>
<border>5</border>
<color>0</color>
<x>121</x>
......@@ -1496,7 +1496,7 @@
<band>Detail</band>
<id>22</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<tabsequence>70</tabsequence>
<border>5</border>
<color>255</color>
<x>456</x>
......
ALTER TABLE SPL_SALES_POR_HDR ADD REMARKS VARCHAR2(120);
ALTER TABLE SPL_SALES_POR_HDR MODIFY CUST_CODE__SOLTO CHAR(10);
COMMIT;
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('proof_of_delivery','1 ','cust_code__solto','Y');
INSERT INTO POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME)
VALUES ('CUSTOMER_CUST_CODE','W_PROOF_OF_DELIVERY','SELECT CUST_CODE,CUST_NAME FROM CUSTOMER',NULL,
'Customer Code',0,0,SYSDATE,'BASE','BASE',
null,null,null,null,null,null,null,null,null,null,'1',null);
INSERT INTO DISPARM (PRD_CODE,VAR_NAME,VAR_TYPE,VAR_VALUE,DESCR,VAR_SUBS,CHG_DATE,CHG_USER,CHG_TERM)
VALUES ('999999','PROOF_OF_DELIVERY','N','10','Stockiest Margin of products to approve rate of Sales for Stockiest',NULL,SYSDATE,'BASE','SANKET');
INSERT INTO DISPARM (PRD_CODE,VAR_NAME,VAR_TYPE,VAR_VALUE,DESCR,VAR_SUBS,CHG_DATE,CHG_USER,CHG_TERM)
VALUES ('999999','POD_PRD_DATE','D','01-NOV-14','POD Process activate w.e.f. 01-11-14',NULL,SYSDATE,'BASE','SANKET');
INSERT INTO MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION)
VALUES ('VTREJNOTAB','Rejection Remark Is Blank','Reject Remark should Not be blank. When Status is Reject.','E',NULL,NULL,NULL,NULL,SYSDATE,'SANKET','SANKET',NULL,NULL);
INSERT INTO MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION)
VALUES ('VTREJNOTAC','Rejection Remark Should Blank','Reject Remark should be blank. When Status is Not Reject.','E',NULL,NULL,NULL,NULL,SYSDATE,'SANKET','SANKET',NULL,NULL);
CREATE OR REPLACE FUNCTION DDF_GET_BALQTY_POD(TRAN_ID_1 varCHAR2 ,LINE_NO_1 number)
RETURN NUMBER IS
BAL_QTY NUMBER(14,3);
BEGIN
BAL_QTY := 0;
SELECT (SPL_SALES_POR_DET.PEND_QTY - SPL_SALES_POR_DET.QUANTITY__RESALE) INTO BAL_QTY
FROM SPL_SALES_POR_DET WHERE SPL_SALES_POR_DET.TRAN_ID= TRAN_ID_1 AND SPL_SALES_POR_DET.LINE_NO= LINE_NO_1;
RETURN BAL_QTY;
END;
INSERT INTO TRANSETUP ( TRAN_WINDOW,SAVE_FLAG , VAL_FLAG , KEY_FLAG , KEY_STRING , REPEATE_ADD , CHG_DATE , CHG_USER , CHG_TERM , EDI_OPTION , WORKFLOW_OPT )
VALUES ('w_pod_process','2','2','A','seq10','Y',SYSDATE,'SANKET','SANKET ','0','2');
COMMIT;
create table spl_sales_por_hdr (
tran_id Char(10),
tran_date Date NOT NULL,
invoice_id Char(10) NOT NULL,
site_code Char(5) NOT NULL,
cust_code Char(10) NOT NULL,
curr_code Char(5),
exch_rate Number(14,6),
amount number(14,3),
tran_id__drn char(10),
confirmed char(1),
conf_date date ,
emp_code__aprv char(10),
wf_status char(1),
chg_date date NOT NULL,
chg_user char(10) NOT NULL,
CHG_TERM CHAR(15) NOT NULL
);
SELECT DDF_GET_BALQTY_POD('1000',1) FROM DUAL;
ALTER TABLE spl_sales_por_hdr ADD CONSTRAINT spl_sales_por_hdr_X PRIMARY KEY (TRAN_ID) USING INDEX; TABLESPACE ITM_DIS_I1;
ALTER TABLE spl_sales_por_hdr ADD CONSTRAINT FK_spl_sales_por_hdr_I FOREIGN KEY (INVOICE_ID) REFERENCES invoice (INVOICE_ID);
ALTER TABLE spl_sales_por_hdr ADD CONSTRAINT FK_spl_sales_por_hdr_S FOREIGN KEY (SITE_CODE) REFERENCES site (SITE_CODE);
ALTER TABLE spl_sales_por_hdr ADD CONSTRAINT FK_spl_sales_por_hdr_C FOREIGN KEY (CUST_CODE) REFERENCES customer (CUST_CODE);
ALTER TABLE spl_sales_por_hdr ADD CONSTRAINT FK_spl_sales_por_hdr_U FOREIGN KEY (CURR_CODE) REFERENCES currency (CURR_CODE);
ALTER TABLE spl_sales_por_hdr ADD CONSTRAINT FK_spl_sales_por_hdr_E FOREIGN KEY (EMP_CODE__APRV) REFERENCES employee (EMP_CODE);
create table spl_sales_por_det (
tran_id Char(10) not null,
line_no Number(3) NOT NULL,
line_no__trace Number(3) NOT NULL,
item_code Char(10) NOT NULL,
loc_code Char(8),
lot_no Char(15),
lot_sl Char(15),
bill_no Varchar2(40),
bil_date Date,
rate__inv number(15,4),
rate__resale number(15,4),
quantity__inv number(14,3),
quantity__resale number(14,3),
AMOUNT NUMBER(14,3)
);
ALTER TABLE spl_sales_por_det ADD CONSTRAINT spl_sales_por_det_X PRIMARY KEY (TRAN_ID,LINE_NO) USING INDEX; TABLESPACE ITM_DIS_I1;
ALTER TABLE spl_sales_por_det ADD CONSTRAINT FK_spl_sales_por_det FOREIGN KEY (TRAN_ID) REFERENCES spl_sales_por_hdr (TRAN_ID) ON DELETE CASCADE;
ALTER TABLE spl_sales_por_det ADD CONSTRAINT FK_spl_sales_por_det_I FOREIGN KEY (ITEM_CODE) REFERENCES item (ITEM_CODE) ;
ALTER TABLE SPL_SALES_POR_DET ADD CONSTRAINT FK_SPL_SALES_POR_DET_L FOREIGN KEY (LOC_CODE) REFERENCES LOCATION (LOC_CODE) ;
alter table spl_sales_por_det add remarks varchar2(100);
alter table spl_sales_por_det add transit_day number(3);
alter table spl_sales_por_hdr add debit_note_amt number(14,3);
alter table spl_sales_por_det add debit_note_amt number(14,3);
ALTER TABLE SPL_SALES_POR_DET ADD APRV_RATE NUMBER(15,4);
alter table SPL_SALES_POR_hdr DROP COLUMN CUST_CODE__SOLTO;
INSERT INTO ITM2MENU(APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,
OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY)
VALUES ('DIS',3,9,45,0,0,'w_pod_rej_remark','POD Rejection Remark','POD Rejection Remark','DIS.3.9.45.0.0',
'e12_logo.gif',NULL,NULL,'P',SYSDATE,'SANKET','SANKET',NULL);
INSERT INTO OBJ_FORMS(WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,FORM_NO)
VALUES ('w_pod_rej_remark','Header','pod_rej_remark11','w_pod_rej_remark11','1');
Insert into obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,
PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER)
values ('pod_rej_remark',1,null,'Reject','PODRejRemark','a','R','Reject','1','3',null,'U',null,sysdate,'SANKET','SANKET');
INSERT INTO SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT)
values ('pod_rej_remark','process','1','PODRejRemark',null,'0',sysdate,'SANKET','SANKET','2','EJB','PODRejectionRemark',null);
INSERT INTO SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,RETURN_XFRM_XSL,CHG_DATE,CHG_USER,CHG_TERM)
values ('PODRejRemark','process','http://172.16.145.69/BaseE12DotNetService6-3-2-48/E12BusinessLogic6-3-2-017.asmx','SANKET','process','String','S',null,null, EMPTY_BLOB(),sysdate,'SANKET','SANKET');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES ('PODRejRemark',1,'COMPONENT_TYPE','I',NULL,'C.String',NULL,SYSDATE,'BASE','BASE','EJB');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES ('PODRejRemark',2,'COMPONENT_NAME','I',NULL,'C.String',NULL,SYSDATE,'BASE','BASE','PODRejectionRemark');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES ('PODRejRemark',3,'XML_DATA_1','l',NULL,'S',NULL,SYSDATE,'BASE','BASE',NULL);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES ('PODRejRemark',4,'XML_DATA__ALL','l',NULL,'S',NULL,SYSDATE,'BASE','BASE',NULL);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES ('PODRejRemark',5,'OBJ_CONTEXT','l',NULL,'S',NULL,SYSDATE,'BASE','BASE',NULL);
INSERT INTO SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES ('PODRejRemark',6,'XTRA_PARAMS','l',NULL,'S',NULL,SYSDATE,'BASE','BASE',NULL);
COMMIT;
INSERT INTO OBJ_LINKS (OBJ_NAME,FORM_NO,FIELD_NAME,TARGET_OBJ_NAME,LINK_FORM_NAME,LINK_TITLE,
LINK_URI,LINK_TYPE,LINK_ARG,UPDATE_FLAG,LINK_NAME,RIGHTS_CHAR,IMAGE)
VALUES ('proof_of_delivery','1','tran_id','pod_rej_remark','pod_rej_remark11',
'Insert Remark',NULL,'6','tran_id.String,wf_status.String','0',null,'T',NULL);
INSERT INTO USER_RIGHTS (PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,
ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER,EXCLUDE_RIGHTS_CHAR)
VALUES ('BASE','DIS',4,19,10,0,0,'Proof Of Delivery','V',NULL,NULL,'pod_rej_remark',NULL,NULL,NULL);
INSERT INTO OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) VALUES ('pod_rej_remark','1','tran_id','Y');
INSERT INTO OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) VALUES ('pod_rej_remark','1','wf_status','Y');
INSERT INTO TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,MSG_ONSAVE,WF_STATUS)
VALUES ('w_pod_rej_remark','2','2','A','seq10',NULL,NULL,NULL,NULL,NULL,NULL,SYSDATE,'BASE','BASE111','0',NULL,NULL,NULL,'N',NULL,NULL,NULL,'N',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DMD','F',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'M',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('pod_rej_remark','1 ','itm_defaultedit','Y');
INSERT INTO (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) VALUES ('proof_of_delivery','2 ','itm_default','Y');
INSERT INTO SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) VALUES ('pod_rej_remark','post_item_change','1','poic_default_ejb',NULL,'0',TO_TIMESTAMP('10-JUL-15','DD-MON-RR HH.MI.SSXFF AM'),'BASE ','BASE','1','EJB','ProofOfDelivery',NULL);
-------------------------- MESSAGES---------------------------
INSERT INTO MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION)
VALUES ('VTSTANUL ','Status is Null','Status Cannot be Null!','E',NULL,NULL,NULL,NULL,SYSDATE,'SANKET','SANKET',NULL,NULL);
INSERT INTO MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION)
VALUES ('VTSTANUL ','Status is Null','Status Cannot be Null!','E',NULL,NULL,NULL,NULL,SYSDATE,'SANKET','SANKET',NULL,NULL);
INSERT INTO MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION)
VALUES ('VTREJNOTAC','Rejection Remark Should be Blank','Reject Remark should be blank. When Status is Not Reject.','E',NULL,NULL,NULL,NULL,SYSDATE,'SANKET','SANKET',NULL,NULL);
INSERT INTO MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION)
VALUES ('VTSTAUPTD','Remark Updated!','Rejection Remark Updated successfully','P','Y',NULL,NULL,NULL,sysdate,'SANKET','SANKET',NULL,NULL);
COMMIT;
$PBExportHeader$pod_rej_remark11.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=83 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=tran_id dbname="tran_id" )
column=(type=char(10) updatewhereclause=yes name=wf_status dbname="status" )
column=(type=char(10) updatewhereclause=yes name=rej_remark dbname="rej_remark" )
)
text(band=detail alignment="1" text="Tran Id:" border="0" color="33554432" x="77" y="12" height="16" width="69" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="33554432" x="151" y="12" height="16" width="90" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Status:" border="0" color="33554432" x="77" y="34" height="16" width="69" html.valueishtml="0" name=status_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="33554432" x="151" y="34" height="15" width="89" format="[general]" html.valueishtml="0" name=wf_status visible="1" edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=10 border="5" color="33554432" x="151" y="55" height="16" width="342" format="[general]" html.valueishtml="0" name=rej_remark visible="1" edit.limit=120 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Rejection Remark:" border="0" color="33554432" x="39" y="55" height="16" width="107" html.valueishtml="0" name=rej_remark_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_spl_sales_por_hdr_brow.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=35 color="536870912" )
summary(height=7 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="spl_sales_por_hdr.tran_id" )
column=(type=datetime update=yes updatewhereclause=yes name=tran_date dbname="spl_sales_por_hdr.tran_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=invoice_id dbname="spl_sales_por_hdr.invoice_id" )
column=(type=datetime updatewhereclause=yes name=invoice_tran_date dbname="invoice.tran_date" )
column=(type=char(5) update=yes updatewhereclause=yes name=site_code dbname="spl_sales_por_hdr.site_code" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="spl_sales_por_hdr.cust_code" )
column=(type=char(40) updatewhereclause=yes name=customer_cust_name dbname="customer.cust_name" )
column=(type=char(5) update=yes updatewhereclause=yes name=curr_code dbname="spl_sales_por_hdr.curr_code" )
column=(type=decimal(6) update=yes updatewhereclause=yes name=exch_rate dbname="spl_sales_por_hdr.exch_rate" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=amount dbname="spl_sales_por_hdr.amount" )
column=(type=char(10) update=yes updatewhereclause=yes name=tran_id__drn dbname="spl_sales_por_hdr.tran_id__drn" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=debit_note_amt dbname="spl_sales_por_hdr.debit_note_amt" )
column=(type=char(1) update=yes updatewhereclause=yes name=confirmed dbname="spl_sales_por_hdr.confirmed" )
column=(type=datetime update=yes updatewhereclause=yes name=conf_date dbname="spl_sales_por_hdr.conf_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code__aprv dbname="spl_sales_por_hdr.emp_code__aprv" )
column=(type=char(1) update=yes updatewhereclause=yes name=wf_status dbname="spl_sales_por_hdr.wf_status" )
column=(type=char(10) updatewhereclause=yes name=invoice_cust_code dbname="invoice.cust_code" )
column=(type=char(40) updatewhereclause=yes name=customer_cust_name dbname="customer.cust_name" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="spl_sales_por_hdr.chg_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="spl_sales_por_hdr.chg_user" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="spl_sales_por_hdr.chg_term" )
column=(type=char(120) update=yes updatewhereclause=yes name=remarks dbname="spl_sales_por_hdr.remarks" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"spl_sales_por_hdr~" ) TABLE(NAME=~"invoice~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_a~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_b~" ) COLUMN(NAME=~"spl_sales_por_hdr.tran_id~") COLUMN(NAME=~"spl_sales_por_hdr.tran_date~") COLUMN(NAME=~"spl_sales_por_hdr.invoice_id~") COLUMN(NAME=~"invoice.tran_date~") COLUMN(NAME=~"spl_sales_por_hdr.site_code~") COLUMN(NAME=~"spl_sales_por_hdr.cust_code~") COLUMN(NAME=~"customer_a.cust_name~") COLUMN(NAME=~"spl_sales_por_hdr.curr_code~") COLUMN(NAME=~"spl_sales_por_hdr.exch_rate~") COLUMN(NAME=~"spl_sales_por_hdr.amount~") COLUMN(NAME=~"spl_sales_por_hdr.tran_id__drn~") COLUMN(NAME=~"spl_sales_por_hdr.debit_note_amt~") COLUMN(NAME=~"spl_sales_por_hdr.confirmed~") COLUMN(NAME=~"spl_sales_por_hdr.conf_date~") COLUMN(NAME=~"spl_sales_por_hdr.emp_code__aprv~") COLUMN(NAME=~"spl_sales_por_hdr.wf_status~") COLUMN(NAME=~"invoice.cust_code~") COLUMN(NAME=~"customer_b.cust_name~") COLUMN(NAME=~"spl_sales_por_hdr.chg_date~") COLUMN(NAME=~"spl_sales_por_hdr.chg_user~") COLUMN(NAME=~"spl_sales_por_hdr.chg_term~") COLUMN(NAME=~"spl_sales_por_hdr.remarks~") JOIN (LEFT=~"invoice.invoice_id~" OP =~"=~"RIGHT=~"spl_sales_por_hdr.invoice_id~" ) JOIN (LEFT=~"customer_a.cust_code~" OP =~"=~"RIGHT=~"spl_sales_por_hdr.cust_code~" ) JOIN (LEFT=~"customer_b.cust_code~" OP =~"=~"RIGHT=~"invoice.cust_code__bil~" )) ARG(NAME = ~"fromdate~" TYPE = date) ARG(NAME = ~"todate~" TYPE = date) " update="SPL_SALES_POR_HDR" updatewhere=0 updatekeyinplace=no arguments=(("fromdate", date),("todate", date)) )
text(band=header alignment="2" text="Tran Id" border="6" color="33554432" x="2" y="2" height="16" width="98" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Tran Date" border="6" color="33554432" x="102" y="2" height="16" width="86" html.valueishtml="0" name=tran_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Invoice Id" border="6" color="33554432" x="190" y="2" height="16" width="100" html.valueishtml="0" name=invoice_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Site Code" border="6" color="33554432" x="370" y="2" height="16" width="74" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Bill To Customer" border="6" color="33554432" x="446" y="2" height="16" width="113" html.valueishtml="0" name=cust_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Curr Code" border="6" color="33554432" x="801" y="2" height="16" width="79" html.valueishtml="0" name=curr_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Exch Rate" border="6" color="33554432" x="882" y="2" height="16" width="72" html.valueishtml="0" name=exch_rate_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Amount" border="6" color="33554432" x="956" y="2" height="16" width="72" html.valueishtml="0" name=amount_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Tran Id Drn" border="6" color="33554432" x="1030" y="2" height="16" width="77" html.valueishtml="0" name=tran_id__drn_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Confirmed" border="6" color="33554432" x="1211" y="2" height="16" width="59" html.valueishtml="0" name=confirmed_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Confirmed Date" border="6" color="33554432" x="1272" y="2" height="16" width="105" html.valueishtml="0" name=conf_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Emp Code Aprv" border="6" color="33554432" x="1379" y="2" height="16" width="99" html.valueishtml="0" name=emp_code__aprv_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Wf Status" border="6" color="33554432" x="1480" y="2" height="16" width="62" html.valueishtml="0" name=wf_status_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Chg Date" border="6" color="33554432" x="1922" y="2" height="16" width="91" html.valueishtml="0" name=chg_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Chg User" border="6" color="33554432" x="2015" y="2" height="16" width="66" html.valueishtml="0" name=chg_user_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Chg Term" border="6" color="33554432" x="2083" y="2" height="16" width="96" html.valueishtml="0" name=chg_term_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Debit Note Amt" border="6" color="33554432" x="1109" y="1" height="16" width="100" html.valueishtml="0" name=debit_note_amt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Rejection Remark" border="6" color="33554432" x="2181" y="1" height="19" width="242" html.valueishtml="0" name=remarks_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Invoice Date" border="6" color="33554432" x="292" y="1" height="19" width="76" html.valueishtml="0" name=invoice_tran_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Bill To Customer Name" border="6" color="33554432" x="561" y="1" height="16" width="238" html.valueishtml="0" name=customer_cust_name_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Sold To Customer" border="6" color="33554432" x="1544" y="1" height="16" width="136" html.valueishtml="0" name=invoice_cust_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Sold To Customer Name" border="6" color="33554432" x="1682" y="1" height="16" width="238" html.valueishtml="0" name=customer_cust_name_1_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=10 border="0" color="33554432" x="2" y="2" height="19" width="98" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="33554432" x="102" y="2" height="19" width="86" format="[shortdate] [time]" html.valueishtml="0" name=tran_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=30 border="0" color="33554432" x="190" y="2" height="19" width="100" format="[general]" html.valueishtml="0" name=invoice_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=5 alignment="0" tabsequence=50 border="0" color="33554432" x="370" y="2" height="19" width="74" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=60 border="0" color="33554432" x="446" y="2" height="19" width="113" format="[general]" html.valueishtml="0" name=cust_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=8 alignment="0" tabsequence=80 border="0" color="33554432" x="801" y="2" height="19" width="79" format="[general]" html.valueishtml="0" name=curr_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=9 alignment="1" tabsequence=90 border="0" color="33554432" x="882" y="2" height="19" width="72" format="[general]" html.valueishtml="0" name=exch_rate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=10 alignment="1" tabsequence=100 border="0" color="33554432" x="956" y="2" height="19" width="72" format="[general]" html.valueishtml="0" name=amount visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=11 alignment="0" tabsequence=110 border="0" color="33554432" x="1030" y="2" height="19" width="77" format="[general]" html.valueishtml="0" name=tran_id__drn visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=13 alignment="0" tabsequence=130 border="0" color="33554432" x="1211" y="2" height="19" width="59" format="[general]" html.valueishtml="0" name=confirmed visible="1" edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=14 alignment="0" tabsequence=140 border="0" color="33554432" x="1272" y="2" height="19" width="105" format="[shortdate] [time]" html.valueishtml="0" name=conf_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=15 alignment="0" tabsequence=150 border="0" color="33554432" x="1379" y="2" height="19" width="99" format="[general]" html.valueishtml="0" name=emp_code__aprv visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=16 alignment="0" tabsequence=160 border="0" color="33554432" x="1480" y="2" height="19" width="62" format="[general]" html.valueishtml="0" name=wf_status visible="1" edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=19 alignment="0" tabsequence=190 border="0" color="33554432" x="1922" y="2" height="19" width="91" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=20 alignment="0" tabsequence=200 border="0" color="33554432" x="2015" y="2" height="19" width="66" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=21 alignment="0" tabsequence=210 border="0" color="33554432" x="2083" y="2" height="19" width="96" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=12 alignment="0" tabsequence=120 border="0" color="33554432" x="1109" y="1" height="15" width="100" format="[general]" html.valueishtml="0" name=debit_note_amt visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=22 alignment="0" tabsequence=220 border="0" color="33554432" x="2181" y="1" height="16" width="242" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=40 border="0" color="33554432" x="292" y="1" height="16" width="76" format="[shortdate] [time]" html.valueishtml="0" name=invoice_tran_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="0" tabsequence=70 border="0" color="33554432" x="561" y="1" height="16" width="238" format="[general]" html.valueishtml="0" name=customer_cust_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=17 alignment="0" tabsequence=170 border="0" color="33554432" x="1544" y="1" height="16" width="136" format="[general]" html.valueishtml="0" name=invoice_cust_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=18 alignment="0" tabsequence=180 border="0" color="33554432" x="1682" y="1" height="16" width="238" format="[general]" html.valueishtml="0" name=customer_cust_name_1 visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_spl_sales_por_det_brow.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=57 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=22 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="spl_sales_por_det.tran_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="spl_sales_por_det.line_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__trace dbname="spl_sales_por_det.line_no__trace" )
column=(type=char(10) update=yes updatewhereclause=yes name=item_code dbname="spl_sales_por_det.item_code" )
column=(type=char(15) update=yes updatewhereclause=yes name=lot_no dbname="spl_sales_por_det.lot_no" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=quantity__inv dbname="spl_sales_por_det.quantity__inv" )
column=(type=decimal(4) update=yes updatewhereclause=yes name=rate__inv dbname="spl_sales_por_det.rate__inv" )
column=(type=decimal(4) update=yes updatewhereclause=yes name=aprv_rate dbname="spl_sales_por_det.aprv_rate" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=quantity__resale dbname="spl_sales_por_det.quantity__resale" )
column=(type=number updatewhereclause=yes name=bal_qty dbname="bal_qty" )
column=(type=decimal(4) update=yes updatewhereclause=yes name=rate__resale dbname="spl_sales_por_det.rate__resale" )
column=(type=char(8) update=yes updatewhereclause=yes name=loc_code dbname="spl_sales_por_det.loc_code" )
column=(type=char(15) update=yes updatewhereclause=yes name=lot_sl dbname="spl_sales_por_det.lot_sl" )
column=(type=char(40) update=yes updatewhereclause=yes name=bill_no dbname="spl_sales_por_det.bill_no" )
column=(type=datetime update=yes updatewhereclause=yes name=bil_date dbname="spl_sales_por_det.bil_date" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=amount dbname="spl_sales_por_det.amount" )
column=(type=char(100) update=yes updatewhereclause=yes name=remarks dbname="spl_sales_por_det.remarks" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=transit_day dbname="spl_sales_por_det.transit_day" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=debit_note_amt dbname="spl_sales_por_det.debit_note_amt" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=pend_qty dbname="spl_sales_por_det.pend_qty" )
column=(type=char(120) updatewhereclause=yes name=descr dbname="item.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"spl_sales_por_det~" ) TABLE(NAME=~"item~" ) COLUMN(NAME=~"spl_sales_por_det.tran_id~") COLUMN(NAME=~"spl_sales_por_det.line_no~") COLUMN(NAME=~"spl_sales_por_det.line_no__trace~") COLUMN(NAME=~"spl_sales_por_det.item_code~") COLUMN(NAME=~"spl_sales_por_det.lot_no~") COLUMN(NAME=~"spl_sales_por_det.quantity__inv~") COLUMN(NAME=~"spl_sales_por_det.rate__inv~") COLUMN(NAME=~"spl_sales_por_det.aprv_rate~") COLUMN(NAME=~"spl_sales_por_det.quantity__resale~") COMPUTE(NAME=~"ddf_get_balqty_pod(SPL_SALES_POR_DET.tran_id,SPL_SALES_POR_DET.line_no) as bal_qty~") COLUMN(NAME=~"spl_sales_por_det.rate__resale~") COLUMN(NAME=~"spl_sales_por_det.loc_code~") COLUMN(NAME=~"spl_sales_por_det.lot_sl~") COLUMN(NAME=~"spl_sales_por_det.bill_no~") COLUMN(NAME=~"spl_sales_por_det.bil_date~") COLUMN(NAME=~"spl_sales_por_det.amount~") COLUMN(NAME=~"spl_sales_por_det.remarks~") COLUMN(NAME=~"spl_sales_por_det.transit_day~") COLUMN(NAME=~"spl_sales_por_det.debit_note_amt~") COLUMN(NAME=~"spl_sales_por_det.pend_qty~") COLUMN(NAME=~"item.descr~") JOIN (LEFT=~"spl_sales_por_det.item_code~" OP =~"=~"RIGHT=~"item.item_code~" )WHERE( EXP1 =~"spl_sales_por_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) " update="SPL_SALES_POR_DET" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", string)) )
text(band=header alignment="2" text="Tran Id" border="6" color="33554432" x="2" y="2" height="15" width="66" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Line No" border="6" color="33554432" x="70" y="2" height="15" width="64" html.valueishtml="0" name=line_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Item Code" border="6" color="33554432" x="136" y="2" height="15" width="81" html.valueishtml="0" name=item_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Lot No" border="6" color="33554432" x="324" y="2" height="15" width="96" html.valueishtml="0" name=lot_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Invoice Quantity" border="6" color="33554432" x="422" y="2" height="16" width="105" html.valueishtml="0" name=quantity__inv_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Invoice Rate" border="6" color="33554432" x="529" y="2" height="16" width="83" html.valueishtml="0" name=rate__inv_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Aprv Rate" border="6" color="33554432" x="614" y="2" height="15" width="72" html.valueishtml="0" name=aprv_rate_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Quantity Resale" border="6" color="33554432" x="688" y="2" height="15" width="109" html.valueishtml="0" name=quantity__resale_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Debit Note Amt" border="6" color="33554432" x="975" y="2" height="15" width="115" html.valueishtml="0" name=debit_note_amt_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Bill No" border="6" color="33554432" x="1092" y="2" height="15" width="113" html.valueishtml="0" name=bill_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Bil Date" border="6" color="33554432" x="1207" y="2" height="15" width="99" html.valueishtml="0" name=bil_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Remarks" border="6" color="33554432" x="1308" y="2" height="15" width="329" html.valueishtml="0" name=remarks_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Rate Resale" border="6" color="33554432" x="882" y="2" height="15" width="91" html.valueishtml="0" name=rate__resale_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Line No Trace" border="6" color="33554432" x="1639" y="2" height="15" width="90" html.valueishtml="0" name=line_no__trace_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Loc Code" border="6" color="33554432" x="1731" y="2" height="15" width="55" html.valueishtml="0" name=loc_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Lot Sl" border="6" color="33554432" x="1788" y="2" height="15" width="96" html.valueishtml="0" name=lot_sl_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Amount" border="6" color="33554432" x="1886" y="2" height="15" width="72" html.valueishtml="0" name=amount_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Transit Day" border="6" color="33554432" x="1960" y="2" height="15" width="72" html.valueishtml="0" name=transit_day_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="1" text="Pending Qty" border="6" color="33554432" x="2034" y="1" height="17" width="80" html.valueishtml="0" name=pend_qty_t visible="1" font.face="Arial" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Balance Qty" border="6" color="33554432" x="799" y="2" height="19" width="81" html.valueishtml="0" name=bal_qty_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Product Name" border="6" color="33554432" x="219" y="2" height="16" width="103" html.valueishtml="0" name=descr_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="0" color="33554432" x="2" y="2" height="18" width="66" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="1" tabsequence=20 border="0" color="33554432" x="70" y="2" height="18" width="64" format="[general]" html.valueishtml="0" name=line_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="1" tabsequence=160 border="0" color="33554432" x="1639" y="2" height="18" width="90" format="[general]" html.valueishtml="0" name=line_no__trace visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=30 border="0" color="33554432" x="136" y="2" height="18" width="81" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=12 alignment="0" tabsequence=170 border="0" color="33554432" x="1731" y="2" height="18" width="55" format="[general]" html.valueishtml="0" name=loc_code visible="1" edit.limit=8 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=5 alignment="0" tabsequence=50 border="0" color="33554432" x="324" y="2" height="18" width="96" format="[general]" html.valueishtml="0" name=lot_no visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=13 alignment="0" tabsequence=180 border="0" color="33554432" x="1788" y="2" height="18" width="96" format="[general]" html.valueishtml="0" name=lot_sl visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=14 alignment="0" tabsequence=130 border="0" color="33554432" x="1092" y="2" height="18" width="113" format="[general]" html.valueishtml="0" name=bill_no visible="1" edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=15 alignment="0" tabsequence=140 border="0" color="33554432" x="1207" y="2" height="18" width="99" format="[shortdate] [time]" html.valueishtml="0" name=bil_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="1" tabsequence=70 border="0" color="33554432" x="529" y="2" height="18" width="83" format="[general]" html.valueishtml="0" name=rate__inv visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=11 alignment="1" tabsequence=110 border="0" color="33554432" x="882" y="2" height="18" width="91" format="[general]" html.valueishtml="0" name=rate__resale visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=6 alignment="1" tabsequence=60 border="0" color="33554432" x="422" y="2" height="18" width="105" format="[general]" html.valueishtml="0" name=quantity__inv visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=9 alignment="1" tabsequence=90 border="0" color="33554432" x="688" y="2" height="18" width="109" format="[general]" html.valueishtml="0" name=quantity__resale visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=16 alignment="1" tabsequence=190 border="0" color="33554432" x="1886" y="2" height="18" width="72" format="[general]" html.valueishtml="0" name=amount visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=17 alignment="0" tabsequence=150 border="0" color="33554432" x="1308" y="2" height="18" width="329" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=100 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=18 alignment="1" tabsequence=200 border="0" color="33554432" x="1960" y="2" height="18" width="72" format="[general]" html.valueishtml="0" name=transit_day visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=19 alignment="1" tabsequence=120 border="0" color="33554432" x="975" y="2" height="18" width="115" format="[general]" html.valueishtml="0" name=debit_note_amt visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=8 alignment="1" tabsequence=80 border="0" color="33554432" x="614" y="2" height="18" width="72" format="[general]" html.valueishtml="0" name=aprv_rate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=20 alignment="1" tabsequence=210 border="0" color="33554432" x="2034" y="1" height="16" width="80" format="[general]" html.valueishtml="0" name=pend_qty visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=10 alignment="0" tabsequence=100 border="0" color="33554432" x="799" y="1" height="16" width="81" format="[general]" html.valueishtml="0" name=bal_qty visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=21 alignment="0" tabsequence=40 border="0" color="33554432" x="219" y="3" height="16" width="103" format="[general]" html.valueishtml="0" name=descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_spl_sales_por_hdr_edit.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=614 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="spl_sales_por_hdr.tran_id" )
column=(type=datetime update=yes updatewhereclause=yes name=tran_date dbname="spl_sales_por_hdr.tran_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=invoice_id dbname="spl_sales_por_hdr.invoice_id" )
column=(type=char(5) update=yes updatewhereclause=yes name=site_code dbname="spl_sales_por_hdr.site_code" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="spl_sales_por_hdr.cust_code" )
column=(type=char(5) update=yes updatewhereclause=yes name=curr_code dbname="spl_sales_por_hdr.curr_code" )
column=(type=decimal(6) update=yes updatewhereclause=yes name=exch_rate dbname="spl_sales_por_hdr.exch_rate" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=amount dbname="spl_sales_por_hdr.amount" )
column=(type=char(10) update=yes updatewhereclause=yes name=tran_id__drn dbname="spl_sales_por_hdr.tran_id__drn" )
column=(type=char(1) update=yes updatewhereclause=yes name=confirmed dbname="spl_sales_por_hdr.confirmed" )
column=(type=datetime update=yes updatewhereclause=yes name=conf_date dbname="spl_sales_por_hdr.conf_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=emp_code__aprv dbname="spl_sales_por_hdr.emp_code__aprv" )
column=(type=char(1) update=yes updatewhereclause=yes name=wf_status dbname="spl_sales_por_hdr.wf_status" initial="O" values="Open O/Submit S/Reject R/" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="spl_sales_por_hdr.chg_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="spl_sales_por_hdr.chg_user" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="spl_sales_por_hdr.chg_term" )
column=(type=char(40) updatewhereclause=yes name=cust_name dbname="customer.cust_name" )
column=(type=char(60) updatewhereclause=yes name=site_descr dbname="site.descr" )
column=(type=char(6) updatewhereclause=yes name=prd_code dbname="invoice.prd_code" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=debit_note_amt dbname="spl_sales_por_hdr.debit_note_amt" )
column=(type=datetime updatewhereclause=yes name=invoice_tran_date dbname="invoice.tran_date" )
column=(type=char(120) update=yes updatewhereclause=yes name=spl_sales_por_hdr_remarks dbname="spl_sales_por_hdr.remarks" )
column=(type=char(100) updatewhereclause=yes name=invoice_remarks dbname="invoice.remarks" )
column=(type=char(10) updatewhereclause=yes name=invoice_cust_code dbname="invoice.cust_code" )
column=(type=char(40) updatewhereclause=yes name=cust_name_1 dbname="customer.cust_name" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"spl_sales_por_hdr~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_a~" ) TABLE(NAME=~"site~" ) TABLE(NAME=~"invoice~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_b~" ) COLUMN(NAME=~"spl_sales_por_hdr.tran_id~") COLUMN(NAME=~"spl_sales_por_hdr.tran_date~") COLUMN(NAME=~"spl_sales_por_hdr.invoice_id~") COLUMN(NAME=~"spl_sales_por_hdr.site_code~") COLUMN(NAME=~"spl_sales_por_hdr.cust_code~") COLUMN(NAME=~"spl_sales_por_hdr.curr_code~") COLUMN(NAME=~"spl_sales_por_hdr.exch_rate~") COLUMN(NAME=~"spl_sales_por_hdr.amount~") COLUMN(NAME=~"spl_sales_por_hdr.tran_id__drn~") COLUMN(NAME=~"spl_sales_por_hdr.confirmed~") COLUMN(NAME=~"spl_sales_por_hdr.conf_date~") COLUMN(NAME=~"spl_sales_por_hdr.emp_code__aprv~") COLUMN(NAME=~"spl_sales_por_hdr.wf_status~") COLUMN(NAME=~"spl_sales_por_hdr.chg_date~") COLUMN(NAME=~"spl_sales_por_hdr.chg_user~") COLUMN(NAME=~"spl_sales_por_hdr.chg_term~") COLUMN(NAME=~"customer_a.cust_name~") COLUMN(NAME=~"site.descr~") COLUMN(NAME=~"invoice.prd_code~") COLUMN(NAME=~"spl_sales_por_hdr.debit_note_amt~") COLUMN(NAME=~"invoice.tran_date~") COLUMN(NAME=~"spl_sales_por_hdr.remarks~") COLUMN(NAME=~"invoice.remarks~") COLUMN(NAME=~"invoice.cust_code~") COLUMN(NAME=~"customer_b.cust_name~") JOIN (LEFT=~"spl_sales_por_hdr.invoice_id~" OP =~"=~"RIGHT=~"invoice.invoice_id~" ) JOIN (LEFT=~"spl_sales_por_hdr.site_code~" OP =~"=~"RIGHT=~"site.site_code~" ) JOIN (LEFT=~"spl_sales_por_hdr.cust_code~" OP =~"=~"RIGHT=~"customer_a.cust_code~" ) JOIN (LEFT=~"invoice.cust_code__bil~" OP =~"=~"RIGHT=~"customer_b.cust_code~" )WHERE( EXP1 =~"~~~"SPL_SALES_POR_HDR~~~".~~~"TRAN_ID~~~"~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) " update="SPL_SALES_POR_HDR" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", string)) )
groupbox(band=detail text="Basic"border="2" color="33554432" x="21" y="16" height="288" width="558" name=gb_1 visible="1" font.face="Marlett" font.height="-10" font.weight="400" font.family="0" font.pitch="2" font.charset="2" background.mode="2" background.color="67108864" )
groupbox(band=detail text="Others"border="2" color="33554432" x="21" y="305" height="92" width="558" name=gb_2 visible="1" font.face="Symbol" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="2" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Change Date:" border="0" color="33554432" x="31" y="335" height="16" width="82" html.valueishtml="0" name=chg_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Change User:" border="0" color="33554432" x="210" y="335" height="16" width="80" html.valueishtml="0" name=chg_user_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Change Term:" border="0" color="33554432" x="388" y="335" height="16" width="85" html.valueishtml="0" name=chg_term_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=14 alignment="0" tabsequence=32766 border="5" color="255" x="118" y="335" height="16" width="90" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="255" x="294" y="335" height="16" width="90" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=16 alignment="0" tabsequence=32766 border="5" color="255" x="478" y="335" height="16" width="90" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Transaction Id:" border="0" color="33554432" x="45" y="32" height="16" width="97" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Transaction Date:" border="0" color="33554432" x="352" y="32" height="16" width="102" html.valueishtml="0" name=tran_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Site Code:" border="0" color="33554432" x="45" y="55" height="16" width="97" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Bill To Customer:" border="0" color="33554432" x="28" y="78" height="16" width="114" html.valueishtml="0" name=cust_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="255" x="458" y="32" height="16" width="90" format="[shortdate] [time]" html.valueishtml="0" name=tran_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=18 alignment="0" tabsequence=32766 border="5" color="255" x="243" y="55" height="16" width="305" format="[general]" html.valueishtml="0" name=site_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=17 alignment="0" tabsequence=32766 border="5" color="255" x="243" y="78" height="16" width="305" format="[general]" html.valueishtml="0" name=cust_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="255" x="146" y="32" height="16" width="88" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="5" color="0" x="146" y="55" height="16" width="90" format="[general]" html.valueishtml="0" name=site_code visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=10 border="5" color="0" x="146" y="78" height="16" width="90" format="[general]" html.valueishtml="0" name=cust_code visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Status:" border="0" color="33554432" x="77" y="189" height="16" width="65" html.valueishtml="0" name=wf_status_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=13 alignment="0" tabsequence=30 border="5" color="0" x="146" y="189" height="16" width="88" format="[general]" html.valueishtml="0" name=wf_status visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Amount:" border="0" color="33554432" x="45" y="167" height="16" width="97" html.valueishtml="0" name=amount_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=8 alignment="1" tabsequence=32766 border="5" color="255" x="147" y="166" height="16" width="88" format="0.000" html.valueishtml="0" name=amount visible="1" editmask.useformat=yes editmask.mask="#,##,##,##,##,###.###" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Currency Code:" border="0" color="33554432" x="45" y="144" height="16" width="97" html.valueishtml="0" name=curr_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="255" x="146" y="144" height="16" width="90" format="[general]" html.valueishtml="0" name=curr_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Sold To Customer:" border="0" color="33554432" x="31" y="100" height="16" width="111" html.valueishtml="0" name=t_4 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=24 alignment="0" tabsequence=32766 border="5" color="255" x="146" y="100" height="16" width="90" format="[general]" html.valueishtml="0" name=invoice_cust_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Invoice Id:" border="0" color="33554432" x="44" y="122" height="16" width="97" html.valueishtml="0" name=invoice_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=3 alignment="0" tabsequence=20 border="5" color="33554432" x="145" y="122" height="16" width="90" format="[general]" html.valueishtml="0" name=invoice_id visible="1" edit.limit=10 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Emp Code Aprv:" border="0" color="33554432" x="45" y="211" height="16" width="97" html.valueishtml="0" name=emp_code__aprv_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="255" x="146" y="211" height="16" width="90" format="[general]" html.valueishtml="0" name=emp_code__aprv visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Confirmed:" border="0" color="33554432" x="238" y="210" height="16" width="68" html.valueishtml="0" name=confirmed_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="255" x="309" y="210" height="16" width="50" format="[general]" html.valueishtml="0" name=confirmed visible="1" edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Confirmed Date:" border="0" color="33554432" x="363" y="210" height="16" width="97" html.valueishtml="0" name=conf_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="255" x="458" y="210" height="16" width="90" format="[shortdate] [time]" html.valueishtml="0" name=conf_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Invoice Date:" border="0" color="33554432" x="338" y="121" height="16" width="114" html.valueishtml="0" name=t_3 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=21 alignment="0" tabsequence=32766 border="5" color="255" x="456" y="121" height="16" width="92" format="[shortdate] [time]" html.valueishtml="0" name=invoice_tran_date pointer="" visible="1" editmask.mask="DD/MM/YY" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Debit Note Amount:" border="0" color="33554432" x="338" y="143" height="15" width="114" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=20 alignment="1" tabsequence=32766 border="5" color="255" x="457" y="143" height="15" width="91" format="0.000" html.valueishtml="0" name=debit_note_amt visible="1" editmask.mask="#,##,##,##,##,###.###" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Exchange Rate:" border="0" color="33554432" x="355" y="164" height="16" width="97" html.valueishtml="0" name=exch_rate_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=7 alignment="1" tabsequence=32766 border="5" color="255" x="456" y="164" height="16" width="92" format="[General]" html.valueishtml="0" name=exch_rate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Tran Id Drn:" border="0" color="33554432" x="355" y="187" height="16" width="97" html.valueishtml="0" name=tran_id__drn_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="255" x="456" y="186" height="16" width="93" format="[general]" html.valueishtml="0" name=tran_id__drn visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Period Code:" border="0" color="33554432" x="45" y="232" height="16" width="97" html.valueishtml="0" name=prd_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=19 alignment="0" tabsequence=32766 border="5" color="255" x="146" y="232" height="16" width="90" format="[general]" html.valueishtml="0" name=prd_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Rejection Remarks:" border="0" color="33554432" x="28" y="252" height="16" width="114" html.valueishtml="0" name=t_2 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=22 alignment="0" tabsequence=40 border="5" color="255" x="146" y="253" height="16" width="402" format="[general]" html.valueishtml="0" name=spl_sales_por_hdr_remarks visible="1" slideleft=yes edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Invoice Remarks:" border="0" color="33554432" x="43" y="274" height="16" width="99" html.valueishtml="0" name=t_5 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=23 alignment="0" tabsequence=32766 border="0" color="255" x="146" y="275" height="16" width="403" format="[general]" html.valueishtml="0" name=invoice_remarks visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=25 alignment="0" tabsequence=32766 border="5" color="255" x="242" y="100" height="16" width="307" format="[general]" html.valueishtml="0" name=cust_name_1 visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="UTF-8" name="d_spl_sales_por_hdr_edit" xml="<?xml version=~"1.0~" encoding=~"UTF-8~" standalone=~"no~"?><d_spl_sales_por_hdr_edit><d_spl_sales_por_hdr_edit_row __pbband=~"detail~"><tran_id/><tran_date>tran_date</tran_date><invoice_id>invoice_id</invoice_id><site_code/><cust_code>cust_code</cust_code><curr_code>curr_code</curr_code><exch_rate>exch_rate</exch_rate><amount>amount</amount><tran_id__drn>tran_id__drn</tran_id__drn><confirmed>confirmed</confirmed><conf_date>conf_date</conf_date><emp_code__aprv>emp_code__aprv</emp_code__aprv><wf_status>wf_status</wf_status><chg_date>chg_date</chg_date><chg_user>chg_user</chg_user><chg_term>chg_term</chg_term><cust_name>cust_name</cust_name><site_descr>site_descr</site_descr><prd_code/><debit_note_amt>debit_note_amt</debit_note_amt></d_spl_sales_por_hdr_edit_row></d_spl_sales_por_hdr_edit>"))
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_spl_sales_por_det_edit.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
header(height=2 color="536870912" )
summary(height=0 color="536870912" )
footer(height=91 color="536870912" )
detail(height=406 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_id dbname="spl_sales_por_det.tran_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="spl_sales_por_det.line_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__trace dbname="spl_sales_por_det.line_no__trace" )
column=(type=char(10) update=yes updatewhereclause=yes name=item_code dbname="spl_sales_por_det.item_code" )
column=(type=char(8) update=yes updatewhereclause=yes name=loc_code dbname="spl_sales_por_det.loc_code" )
column=(type=char(15) update=yes updatewhereclause=yes name=lot_no dbname="spl_sales_por_det.lot_no" )
column=(type=char(15) update=yes updatewhereclause=yes name=lot_sl dbname="spl_sales_por_det.lot_sl" )
column=(type=char(40) update=yes updatewhereclause=yes name=bill_no dbname="spl_sales_por_det.bill_no" )
column=(type=datetime update=yes updatewhereclause=yes name=bil_date dbname="spl_sales_por_det.bil_date" )
column=(type=decimal(4) update=yes updatewhereclause=yes name=rate__inv dbname="spl_sales_por_det.rate__inv" )
column=(type=decimal(4) update=yes updatewhereclause=yes name=rate__resale dbname="spl_sales_por_det.rate__resale" initial="0" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=quantity__inv dbname="spl_sales_por_det.quantity__inv" )
column=(type=char(0) updatewhereclause=yes name=item_ser__prom dbname="item_ser__prom" )
column=(type=char(0) updatewhereclause=yes name=prd_code dbname="prd_code" )
column=(type=char(120) updatewhereclause=yes name=descr dbname="item.descr" )
column=(type=char(100) update=yes updatewhereclause=yes name=remarks dbname="spl_sales_por_det.remarks" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=transit_day dbname="spl_sales_por_det.transit_day" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=debit_note_amt dbname="spl_sales_por_det.debit_note_amt" )
column=(type=decimal(4) update=yes updatewhereclause=yes name=aprv_rate dbname="spl_sales_por_det.aprv_rate" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=quantity__resale dbname="spl_sales_por_det.quantity__resale" initial="0" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=pend_qty dbname="spl_sales_por_det.pend_qty" )
column=(type=char(0) updatewhereclause=yes name=pend_temp dbname="pend_temp" )
column=(type=number updatewhereclause=yes name=bal_qty dbname="bal_qty" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"spl_sales_por_det~" ) TABLE(NAME=~"item~" ) COLUMN(NAME=~"spl_sales_por_det.tran_id~") COLUMN(NAME=~"spl_sales_por_det.line_no~") COLUMN(NAME=~"spl_sales_por_det.line_no__trace~") COLUMN(NAME=~"spl_sales_por_det.item_code~") COLUMN(NAME=~"spl_sales_por_det.loc_code~") COLUMN(NAME=~"spl_sales_por_det.lot_no~") COLUMN(NAME=~"spl_sales_por_det.lot_sl~") COLUMN(NAME=~"spl_sales_por_det.bill_no~") COLUMN(NAME=~"spl_sales_por_det.bil_date~") COLUMN(NAME=~"spl_sales_por_det.rate__inv~") COLUMN(NAME=~"spl_sales_por_det.rate__resale~") COLUMN(NAME=~"spl_sales_por_det.quantity__inv~") COMPUTE(NAME=~"'' item_ser__prom~") COMPUTE(NAME=~"'' prd_code~") COLUMN(NAME=~"item.descr~") COLUMN(NAME=~"spl_sales_por_det.remarks~") COLUMN(NAME=~"spl_sales_por_det.transit_day~") COLUMN(NAME=~"spl_sales_por_det.debit_note_amt~") COLUMN(NAME=~"spl_sales_por_det.aprv_rate~") COLUMN(NAME=~"spl_sales_por_det.quantity__resale~") COLUMN(NAME=~"spl_sales_por_det.pend_qty~") COMPUTE(NAME=~"'' pend_temp~") COMPUTE(NAME=~"ddf_get_balqty_pod(SPL_SALES_POR_DET.tran_id,SPL_SALES_POR_DET.line_no) as bal_qty~") JOIN (LEFT=~"item.item_code~" OP =~"=~"RIGHT=~"spl_sales_por_det.item_code~" )WHERE( EXP1 =~"spl_sales_por_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" LOGIC =~"And~" ) WHERE( EXP1 =~"spl_sales_por_det.line_no~" OP =~"=~" EXP2 =~":line_no~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) ARG(NAME = ~"line_no~" TYPE = number) " update="SPL_SALES_POR_DET" updatewhere=0 updatekeyinplace=no arguments=(("tran_id", string),("line_no", number)) )
text(band=detail alignment="1" text="Line No:" border="0" color="33554432" x="311" y="46" height="16" width="58" html.valueishtml="0" name=line_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="255" x="120" y="45" height="16" width="90" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=4 alignment="0" tabsequence=32766 border="5" color="255" x="121" y="92" height="16" width="80" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Transaction Id:" border="0" color="33554432" x="21" y="46" height="16" width="98" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Line No Trace:" border="0" color="33554432" x="21" y="69" height="16" width="98" html.valueishtml="0" name=line_no__trace_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Item Code:" border="0" color="33554432" x="21" y="92" height="16" width="98" html.valueishtml="0" name=item_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Lot No:" border="0" color="33554432" x="74" y="115" height="16" width="45" html.valueishtml="0" name=lot_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Invoice Rate:" border="0" color="33554432" x="21" y="138" height="15" width="98" html.valueishtml="0" name=rate__inv_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=10 alignment="1" tabsequence=32766 border="5" color="255" x="121" y="138" height="16" width="80" format="[General]" html.valueishtml="0" name=rate__inv visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Invoice Quantity:" border="0" color="33554432" x="21" y="160" height="15" width="98" html.valueishtml="0" name=quantity__inv_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Stockist Bill No:" border="0" color="33554432" x="21" y="182" height="16" width="98" html.valueishtml="0" name=bill_no_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=2 alignment="1" tabsequence=32766 border="5" color="255" x="371" y="46" height="16" width="80" format="[general]" html.valueishtml="0" name=line_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=15 alignment="0" tabsequence=32766 border="5" color="255" x="206" y="91" height="16" width="245" format="[general]" html.valueishtml="0" name=descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="255" x="371" y="115" height="16" width="80" format="[general]" html.valueishtml="0" name=lot_sl visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=11 alignment="1" tabsequence=20 border="5" color="33554432" x="371" y="138" height="16" width="80" format="[General]" html.valueishtml="0" name=rate__resale visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="1" tabsequence=10 border="5" color="255" x="121" y="69" height="16" width="80" format="[general]" html.valueishtml="0" name=line_no__trace visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="255" x="121" y="115" height="16" width="80" format="[general]" html.valueishtml="0" name=lot_no visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=12 alignment="1" tabsequence=32766 border="5" color="255" x="121" y="160" height="16" width="80" format="[General]" html.valueishtml="0" name=quantity__inv visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=8 alignment="0" tabsequence=40 border="5" color="33554432" x="121" y="182" height="16" width="80" format="0.00" html.valueishtml="0" name=bill_no visible="1" edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=20 alignment="1" tabsequence=30 border="5" color="33554432" x="371" y="160" height="16" width="80" format="[General]" html.valueishtml="0" name=quantity__resale visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=50 border="5" color="33554432" x="371" y="182" height="16" width="80" format="[shortdate] [time]" html.valueishtml="0" name=bil_date visible="1" editmask.mask="mm/dd/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Lot Sl:" border="0" color="33554432" x="327" y="115" height="16" width="43" html.valueishtml="0" name=lot_sl_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Resale rate:" border="0" color="33554432" x="272" y="138" height="15" width="98" html.valueishtml="0" name=rate__resale_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Resale Quantity:" border="0" color="33554432" x="272" y="160" height="15" width="98" html.valueishtml="0" name=quantity__resale_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Stockist Bill Date:" border="0" color="33554432" x="260" y="182" height="16" width="110" html.valueishtml="0" name=bil_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Item Ser Porm:" border="0" color="33554432" x="21" y="270" height="16" width="98" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Approved Rate:" border="0" color="33554432" x="16" y="292" height="15" width="102" html.valueishtml="0" name=amount_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=13 alignment="0" tabsequence=32766 border="5" color="255" x="121" y="270" height="16" width="48" format="[general]" html.valueishtml="0" name=item_ser__prom visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Loc Code:" border="0" color="33554432" x="327" y="270" height="16" width="62" html.valueishtml="0" name=loc_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="255" x="391" y="270" height="16" width="60" format="[general]" html.valueishtml="0" name=loc_code visible="1" edit.limit=8 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=19 alignment="1" tabsequence=32766 border="5" color="255" x="120" y="292" height="15" width="80" format="0.000" html.valueishtml="0" name=aprv_rate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Transit Day(s):" border="0" color="33554432" x="304" y="292" height="15" width="85" html.valueishtml="0" name=t_4 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=17 alignment="1" tabsequence=32766 border="5" color="255" x="391" y="292" height="15" width="60" format="[general]" html.valueishtml="0" name=transit_day visible="1" edit.limit=3 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Remarks:" border="0" color="33554432" x="43" y="250" height="15" width="76" html.valueishtml="0" name=t_2 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=16 alignment="0" tabsequence=60 border="5" color="0" x="121" y="248" height="16" width="330" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Debit Note Amount:" border="0" color="33554432" x="5" y="228" height="15" width="114" html.valueishtml="0" name=t_3 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=18 alignment="1" tabsequence=32766 border="5" color="255" x="121" y="228" height="15" width="80" format="0.000" html.valueishtml="0" name=debit_note_amt visible="1" editmask.useformat=yes editmask.mask="#,##,##,##,##,###.###" editmask.imemode=0 editmask.focusrectangle=no font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=21 alignment="1" tabsequence=32766 border="5" color="255" x="371" y="227" height="16" width="80" format="[general]" html.valueishtml="0" name=pend_qty visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Pending Quantity:" border="0" color="33554432" x="266" y="228" height="16" width="104" html.valueishtml="0" name=t_5 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=22 alignment="0" tabsequence=70 border="5" color="255" x="456" y="227" height="16" width="48" format="[general]" html.valueishtml="0" name=pend_temp visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=detail alignment="1" text="Balance Quantity:" border="0" color="33554432" x="9" y="205" height="16" width="110" html.valueishtml="0" name=t_6 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=23 alignment="1" tabsequence=32766 border="5" color="255" x="122" y="204" height="16" width="79" format="[general]" html.valueishtml="0" name=bal_qty visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 template=(comment="" encoding="UTF-8" name="d_spl_sales_por_det_edit" xml="<?xml version=~"1.0~" encoding=~"UTF-8~" standalone=~"no~"?><d_spl_sales_por_det_edit><d_spl_sales_por_det_edit_row __pbband=~"detail~"><tran_id>tran_id</tran_id><line_no>line_no</line_no><line_no__trace>line_no__trace</line_no__trace><item_code>item_code</item_code><loc_code>loc_code</loc_code><lot_no>lot_no</lot_no><lot_sl>lot_sl</lot_sl><bill_no>bill_no</bill_no><bil_date>bil_date</bil_date><rate__inv>rate__inv</rate__inv><rate__resale>rate__resale</rate__resale><quantity__inv>quantity__inv</quantity__inv><quantity__resale>quantity__resale</quantity__resale><amount/><item_ser__prom>item_ser__prom</item_ser__prom><prd_code>prd_code</prd_code><descr>descr</descr><remarks>remarks</remarks><transit_day>transit_day</transit_day><debit_note_amt>debit_note_amt</debit_note_amt></d_spl_sales_por_det_edit_row></d_spl_sales_por_det_edit>"))
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
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