Commit db21ac72 authored by SABURI PATEKAR's avatar SABURI PATEKAR
parents 8e466ae9 062a6f75
......@@ -3,39 +3,147 @@ package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.naming.InitialContext;
import ibase.system.config.AppConnectParm;
import ibase.system.config.ConnDriver;
import ibase.utility.BaseLogger;
import ibase.utility.UserInfoBean;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.MasterStatefulLocal;
import ibase.webitm.utility.ITMException;
public class SalesQuotationAcknowledge extends ActionHandlerEJB{
public String updateStatus(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
public class SalesQuotationAcknowledge extends ActionHandlerEJB {
public String updateStatus(String tranID, String xtraParams, String forcedFlag)
throws RemoteException, ITMException {
Connection conn = null;
String errString = "";
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
try
{
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationAcknowledge --> tranID MArch 9 2026["+tranID+"]");
String quotType = "", custCode = "";
StringBuffer processDynXmlString = new StringBuffer();
int domId = 0;
int lineNo = 0;
UserInfoBean userInfo = null;
ResultSet fetchHospitalMappingRs = null;
PreparedStatement insertPs = null;
try {
userInfo = getUserInfo();
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationAcknowledge --> tranID [" + tranID + "]");
conn = getConnection();
//Added by Ajit on 06-MARCH to update the status to "A" on click of Acknowledged button [Start]
// 🔹 Update status
String updateStatusSql = "update sales_quot set status = 'A' where QUOT_NO = ?";
PreparedStatement updateStatusPs = conn.prepareStatement(updateStatusSql);
updateStatusPs.setString(1, tranID);
int updateStatusCnt = updateStatusPs.executeUpdate();
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationAcknowledge --> updateStatusCnt ["+updateStatusCnt+"]");
if(updateStatusCnt>0) {
// 🔹 Fetch header data
String fetchSQuotDetSql = "select quot_type, cust_code from sales_quot where quot_no = ?";
PreparedStatement fetchSQuotDetPs = conn.prepareStatement(fetchSQuotDetSql);
fetchSQuotDetPs.setString(1, tranID);
ResultSet fetchSQuotDetRs = fetchSQuotDetPs.executeQuery();
while (fetchSQuotDetRs.next()) {
quotType = checkNull(fetchSQuotDetRs.getString("quot_type"));
custCode = checkNull(fetchSQuotDetRs.getString("cust_code"));
}
if (quotType.trim().equalsIgnoreCase("G")) {
String fetchHospitalMappingSql = "select CUST_CODE__STK, CUST_CODE__DIST from CUSTOMER_PREF_DIST where CUST_CODE = ?";
PreparedStatement fetchHospitalMappingPs = conn.prepareStatement(fetchHospitalMappingSql);
fetchHospitalMappingPs.setString(1, custCode);
fetchHospitalMappingRs = fetchHospitalMappingPs.executeQuery();
// Get max line_no
String lineSql = "SELECT NVL(MAX(line_no), 0) FROM sales_quot_stockist WHERE quot_no = ?";
PreparedStatement linePs = conn.prepareStatement(lineSql);
linePs.setString(1, tranID);
ResultSet lineRs = linePs.executeQuery();
if (lineRs.next()) {
lineNo = lineRs.getInt(1);
}
String insertSql = "INSERT INTO sales_quot_stockist (line_no, cust_code, cust_code__stk, cust_code__dist, quot_no) VALUES (?, ?, ?, ?, ?)";
insertPs = conn.prepareStatement(insertSql);
while (fetchHospitalMappingRs.next()) {
lineNo++;
String custCodeStk = fetchHospitalMappingRs.getString("CUST_CODE__STK");
String custCodeDist = fetchHospitalMappingRs.getString("CUST_CODE__DIST");
insertPs.setInt(1, lineNo);
insertPs.setString(2, custCode);
insertPs.setString(3, custCodeStk);
insertPs.setString(4, custCodeDist);
insertPs.setString(5, tranID);
insertPs.addBatch();
}
insertPs.executeBatch();
// close extra resources
if (lineRs != null) lineRs.close();
if (linePs != null) linePs.close();
if (fetchHospitalMappingPs != null) fetchHospitalMappingPs.close();
}
if (updateStatusCnt > 0) {
conn.commit();
return errString = itmDBAccessEJB.getErrorString("","SALESACK","","",conn);
return itmDBAccessEJB.getErrorString("", "SALESACK", "", "", conn);
}
}catch(Exception e) {
BaseLogger.log("3", getUserInfo(), null, "Exception from SalesQuotationAcknowledge updateStatus --["+e.getMessage()+"]");
e.printStackTrace();
if (fetchSQuotDetPs != null) {
fetchSQuotDetPs.close();
fetchSQuotDetPs = null;
}
if (fetchSQuotDetRs != null) {
fetchSQuotDetRs.close();
fetchSQuotDetRs = null;
}
if (insertPs != null) {
insertPs.close();
insertPs = null;
}
if (fetchHospitalMappingRs != null) {
fetchHospitalMappingRs.close();
fetchHospitalMappingRs = null;
}
} catch (Exception e) {
if (conn != null) {
try {
conn.rollback();
} catch (Exception ex) {
ex.printStackTrace();
}
}
BaseLogger.log("3", getUserInfo(), null, "Exception in updateStatus: [" + e.getMessage() + "]");
}
finally {
try {
if (insertPs != null) insertPs.close();
if (fetchHospitalMappingRs != null) fetchHospitalMappingRs.close();
} catch (Exception e) {}
}
return " ";
}
private String checkNull(String input) {
if (input == null) {
input = "";
}
return input;
}
}
......@@ -107,6 +107,11 @@ NOCOMPRESS
NO INMEMORY
NOPARALLEL;
ALTER TABLE sales_quot_req_det ADD (
revised_pts NUMBER(14, 3),
revised_ptd NUMBER(14, 3),
revised_ptr NUMBER(14, 3)
);
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,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('ITEM_SER','W_RFQ','SELECT ITEM_SER, DESCR FROM ITEMSER',null,'Item Series',0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System','1',null,null,1,'L',null,'0',null,null,1,'2',null,null,null,null,null,null,null,null,null,null,null,null,null);
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,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('SITE_CODE','W_RFQ','SELECT SITE_CODE , DESCR FROM SITE',null,null,0,0,to_date('03-FEB-26','DD-MON-RR'),'System ','System',null,null,null,2,null,null,null,null,null,0,'2',null,'2',null,null,null,'2 ',null,null,null,null,null,null,null);
......@@ -325,7 +330,10 @@ Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,AR
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 ('ppv_rfq_wiz',9,'FORM_NAME','I',null,'S',null,to_date('01-JUL-16','DD-MON-RR'),'AJIT','AJIT',null);
ALTER TABLE SALES_QUOT
ADD (
TRAN_ID__RFQ CHAR(10)
);
package ibase.webitm.ejb.dis;
import java.io.StringReader;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.rmi.RemoteException;
......@@ -15,8 +16,12 @@ import java.time.format.DateTimeFormatter;
import java.util.Date;
import javax.naming.InitialContext;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import ibase.ejb.CommonDBAccessEJB;
import ibase.system.config.AppConnectParm;
......@@ -76,7 +81,6 @@ public class ReqForQuotationAprv extends ValidatorEJB{
LocalDate tranDate = LocalDate.now();// for tranDate
LocalTime tranTime = LocalTime.now();
String tranDateStr = formatDateTime(tranDate, tranTime);
String tranId = "";
String reqId = "";
String custCode = "";
String quotType = "";
......@@ -201,7 +205,7 @@ public class ReqForQuotationAprv extends ValidatorEJB{
checkAppr2StatusRs = checkAppr2StatusPs.executeQuery();
while (checkAppr2StatusRs.next()) {
String wfStatus = checkAppr2StatusRs.getString("WF_STATUS");
String wfStatus = checkNull(checkAppr2StatusRs.getString("WF_STATUS"));
if (wfStatus.equalsIgnoreCase("A")) {
tranFlag = false;
......@@ -299,10 +303,30 @@ public class ReqForQuotationAprv extends ValidatorEJB{
resvisedRatePstmt.setString(1, itemCode);
ResultSet resvisedRateRs = resvisedRatePstmt.executeQuery();
while(resvisedRateRs.next()) {
int distMargin = resvisedRateRs.getInt("PHY_ATTRIB_13");
int stockMargin = resvisedRateRs.getInt("PHY_ATTRIB_14");
int retailMargin = resvisedRateRs.getInt("PHY_ATTRIB_15");
String distMarginStr = checkNull(resvisedRateRs.getString("PHY_ATTRIB_13"));
String stockMarginStr = checkNull(resvisedRateRs.getString("PHY_ATTRIB_14"));
String retailMarginStr = checkNull(resvisedRateRs.getString("PHY_ATTRIB_15"));
int distMargin = 0;
int stockMargin = 0;
int retailMargin = 0;
try {
distMargin = (distMarginStr != null && distMarginStr.trim().length() > 0)
? Integer.parseInt(distMarginStr.trim())
: 0;
stockMargin = (stockMarginStr != null && stockMarginStr.trim().length() > 0)
? Integer.parseInt(stockMarginStr.trim())
: 0;
retailMargin = (retailMarginStr != null && retailMarginStr.trim().length() > 0)
? Integer.parseInt(retailMarginStr.trim())
: 0;
} catch (Exception e) {
BaseLogger.log("3", null, null, "Error parsing margin values");
}
BigDecimal rateBD = new BigDecimal(rate);
BigDecimal hundred = new BigDecimal(100);
......@@ -361,6 +385,35 @@ public class ReqForQuotationAprv extends ValidatorEJB{
rfqDetPstmt = null;
}
//Detail3 XML Building start - 19 March
/*
* BaseLogger.log("3", null, null, "quotType::" + quotType.toString() + "]");
* BaseLogger.log("3", null, null, "custCode::" + custCode.toString() + "]");
*
* if(quotType.trim().equalsIgnoreCase("G")) { String fetchHospitalMappingSql =
* "select CUST_CODE__STK, CUST_CODE__DIST from CUSTOMER_PREF_DIST where CUST_CODE = ?"
* ; PreparedStatement fetchHospitalMappingPs =
* conn.prepareStatement(fetchHospitalMappingSql);
* fetchHospitalMappingPs.setString(1, custCode); ResultSet
* fetchHospitalMappingRs = fetchHospitalMappingPs.executeQuery();
* while(fetchHospitalMappingRs.next()) {
* processDynXmlString.append("<Detail3 dbID=':' domID='"
* +domId+"' objName=\"salesquot\" objContext=\"3\">"); processDynXmlString.
* append("<attribute pkNames=\"quot_no:line_no:\" selected=\"N\" updateFlag=\"A\" status=\"N\" />"
* ); processDynXmlString.append("<line_no><![CDATA[").append(lineNo).append(
* "]]></line_no>");
* processDynXmlString.append("<cust_code><![CDATA[").append(custCode).append(
* "]]></cust_code>");
* processDynXmlString.append("<cust_code__stk><![CDATA[").append(checkNull(
* fetchHospitalMappingRs.getString("CUST_CODE__STK"))).append(
* "]]></cust_code__stk>");
* processDynXmlString.append("<cust_code__dist><![CDATA[").append(checkNull(
* fetchHospitalMappingRs.getString("CUST_CODE__DIST"))).append(
* "]]></cust_code__dist>"); processDynXmlString.append("</Detail3>"); } }
*/
//Detail3 XML Building end - 19 March
processDynXmlString.append("</Header0></group0></DocumentRoot>");
......@@ -398,7 +451,63 @@ public class ReqForQuotationAprv extends ValidatorEJB{
processRequestResult = masterStateful.processRequest(userInfo, salesQuotXml, false, conn);
BaseLogger.log("3", null, null, "processRequest processRequestResultD" + processRequestResult + "]");
if(processRequestResult != null && processRequestResult.trim().length() > 0)
{
try
{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
InputSource is = new InputSource(new StringReader(processRequestResult));
Document doc = builder.parse(is);
// 🔹 Check SUCCESS
NodeList detailNodeList = doc.getElementsByTagName("Detail");
if(detailNodeList != null && detailNodeList.getLength() > 0)
{
String detailValue = detailNodeList.item(0).getTextContent();
if("Success".equalsIgnoreCase(detailValue))
{
BaseLogger.log("3", null, null, "Transaction SUCCESS");
// ✅ Success logic
String tranIdOfSalesQuotaion = doc.getElementsByTagName("TranID").item(0).getTextContent();
BaseLogger.log("3", null, null, "Generated Sales Quotaion TranID: " + tranIdOfSalesQuotaion);
BaseLogger.log("3", null, null, "RFQ TranID: " + tranID);
String UpdateRfqIdInSQuotSql = "update sales_quot set TRAN_ID__RFQ = ? where QUOT_NO = ?";
PreparedStatement UpdateRfqIdInSQuotPs = conn.prepareStatement(UpdateRfqIdInSQuotSql);
UpdateRfqIdInSQuotPs.setString(1, tranID);
UpdateRfqIdInSQuotPs.setString(2, tranIdOfSalesQuotaion);
int UpdateRfqIdInSQuotCount = UpdateRfqIdInSQuotPs.executeUpdate();
conn.commit();
BaseLogger.log("3", null, null, "Sales Quotation TRAN_ID__RFQ upadate count: "+UpdateRfqIdInSQuotCount);
String updateConfirm = "update sales_quot_req set confirmed = 'Y' where tran_id = ?";
PreparedStatement updateConfirmPs = conn.prepareStatement(updateConfirm);
updateConfirmPs.setString(1, tranID);
int updateConfirmCount = updateConfirmPs.executeUpdate();
conn.commit();
BaseLogger.log("3", null, null, "RFQ Confirmed Column update count: "+updateConfirmCount);
if (updateConfirmPs != null) {
updateConfirmPs.close();
updateConfirmPs = null;
}
}
}
else
{
BaseLogger.log("3", null, null, "Sales Quotation Generation Failed: ");
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
retString = processRequestResult;
}
......
package ibase.webitm.ejb.dis;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
......@@ -14,6 +15,7 @@ import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
......@@ -559,8 +561,9 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
}
}
valueXmlString.append("<descr><![CDATA[" + itemSerDescr + "]]></descr>\n");
setNodeValue(dom, "descr", itemSerDescr);
BaseLogger.log("0", null, userId, "case 1::: item_ser descr::"+itemSerDescr);
valueXmlString.append("<descr>").append("<![CDATA["+itemSerDescr+"]]>").append("</descr>\r\n");
}
valueXmlString.append("</Detail1>");
break;
......@@ -703,6 +706,10 @@ public class ReqForQuotationIC extends ValidatorEJB {
//PTR calculation end
valueXmlString.append("<rate_apprv>").append("<![CDATA["+MngmntAprvRate+"]]>").append("</rate_apprv>\r\n");
valueXmlString.append("<ptd>").append("<![CDATA["+ptd+"]]>").append("</ptd>\r\n");
valueXmlString.append("<pts>").append("<![CDATA["+pts+"]]>").append("</pts>\r\n");
......@@ -852,6 +859,21 @@ public class ReqForQuotationIC extends ValidatorEJB {
//Management rate block[End]
}
if ("item_code".equalsIgnoreCase(currentColumn.trim())) {
String itemDescr = "";
BaseLogger.log("3", null, null, "ReqForQuotationIC in item_code ");
String itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
String itemDescrSql = "select descr from item where item_code = ?";
PreparedStatement itemDescrPs = con.prepareStatement(itemDescrSql);
itemDescrPs.setString(1, itemCode);
ResultSet itemDescrRs = itemDescrPs.executeQuery();
while(itemDescrRs.next()) {
itemDescr = itemDescrRs.getString("descr");
}
valueXmlString.append("<descr>").append("<![CDATA["+itemDescr+"]]>").append("</descr>\r\n");
}
if ("ptr_flag".equalsIgnoreCase(currentColumn.trim())) {
BaseLogger.log("3", null, null, "ReqForQuotationIC in ptr_flag ");
String custCode = checkNull(genericUtility.getColumnValue("cust_code", dom1));
......@@ -874,11 +896,12 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
if ("rate_quot".equalsIgnoreCase(currentColumn.trim())) {
BaseLogger.log("3", null, null, "ReqForQuotationIC in rate_quot ::");
String rateQuot = genericUtility.getColumnValue("rate_quot", dom);
String rateQuot = checkNull(genericUtility.getColumnValue("rate_quot", dom));
String itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
String rateApprv = checkNull(genericUtility.getColumnValue("rate_apprv", dom));
String ratePtr = checkNull(genericUtility.getColumnValue("ptr", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC in rate_quot:: "+rateQuot+" rateApprv::"+rateApprv+ " ratePtr::"+ratePtr);
BaseLogger.log("3", null, null, "ReqForQuotationIC in rate_quot:: "+rateQuot+" rateApprv::"+rateApprv+ " ratePtr::"+ratePtr+" itemCode::"+itemCode);
if (!rateQuot.isEmpty() && !rateApprv.isEmpty()) {
......@@ -890,32 +913,35 @@ public class ReqForQuotationIC extends ValidatorEJB {
//added condition when ptr and rate_quot is same direct approval without management
/*
* if (ratePtrVal.compareTo(rateQuotVal) == 0) { BaseLogger.log("3", null, null,
* "in ratePtrVal == rateQuotVal condition"); String detail1Xml =
* "<Detail1><mgmnt_apprv><![CDATA[N]]></mgmnt_apprv><wf_status><![CDATA[A]]></wf_status></Detail1>";
*
* int pos = valueXmlString.indexOf("</header>");
*
* if (pos != -1) { pos += "</header>".length(); // move after </header>
* valueXmlString.insert(pos, detail1Xml); }
*
* BaseLogger.log("3", null, null,
* "in rateApprvVal greater condition updatedXml ::"+valueXmlString); }
*/
if (rateApprvVal.compareTo(rateQuotVal) > 0) {
BaseLogger.log("3", null, null, "in rateApprvVal greater condition");
BaseLogger.log("3", null, null, "in rateApprvVal greater condition valueXmlString::"+ valueXmlString);
String detail1Xml = "<mgmnt_apprv><![CDATA[Y]]></mgmnt_apprv><wf_status><![CDATA[P]]></wf_status>";
String detail1Xml = "<Detail1><mgmnt_apprv><![CDATA[Y]]></mgmnt_apprv><wf_status><![CDATA[P]]></wf_status></Detail1>";
int pos = valueXmlString.indexOf("</header>");
if (pos != -1) {
pos += "</header>".length(); // move after </header>
valueXmlString.insert(pos, detail1Xml);
}
BaseLogger.log("3", null, null, "in rateApprvVal greater condition updatedXml ::"+valueXmlString);
}
if (rateQuotVal.compareTo(rateApprvVal) > 0) {
BaseLogger.log("3", null, null, "in rateQuotVal greater condition");
BaseLogger.log("3", null, null, "in rateQuotVal greater condition valueXmlString::"+ valueXmlString);
int pos = valueXmlString.indexOf("<header>");
String detail1Xml = "<Detail1><mgmnt_apprv><![CDATA[]]></mgmnt_apprv><wf_status><![CDATA[]]></wf_status></Detail1>";
int pos = valueXmlString.indexOf("</header>");
if (pos != -1) {
pos += "<header>".length(); // move after </header>
pos += "</header>".length(); // move after </header>
valueXmlString.insert(pos, detail1Xml);
}
......@@ -924,21 +950,76 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
//Added condition if ptr and special rate is same direct create the sales quotation
}
//Calculating Revised PTR,PTD and PTS [Start]
/*
* if (rateQuotVal.compareTo(ratePtrVal) == 0) { BaseLogger.log("3", null, null,
* "In PTR and Special rate equal condition"); ReqForQuotationAprv
* reqForQuotationAprv = new ReqForQuotationAprv(); String domString =
* genericUtility.serializeDom(dom).toString(); BaseLogger.log("3", null, null,
* "domString>>>>> "+domString); String result =
* reqForQuotationAprv.updateWFStatus(domString, con, xtraParams);
* BaseLogger.log("3", null, null, "ReqForQuotationAprv result>>>>> "+result);
* String resvisedRateSql =
* "select PHY_ATTRIB_13,PHY_ATTRIB_14,PHY_ATTRIB_15 from item where item_code = ?"
* ; PreparedStatement resvisedRatePstmt =
* conn.prepareStatement(resvisedRateSql); resvisedRatePstmt.setString(1,
* itemCode); ResultSet resvisedRateRs = resvisedRatePstmt.executeQuery(); while
* (resvisedRateRs.next()) { String distMarginStr =
* checkNull(resvisedRateRs.getString("PHY_ATTRIB_13")); String stockMarginStr =
* checkNull(resvisedRateRs.getString("PHY_ATTRIB_14")); String retailMarginStr
* = checkNull(resvisedRateRs.getString("PHY_ATTRIB_15"));
*
* int distMargin = 0; int stockMargin = 0; int retailMargin = 0;
*
* try { distMargin = (distMarginStr != null && distMarginStr.trim().length() >
* 0) ? Integer.parseInt(distMarginStr.trim()) : 0;
*
* stockMargin = (stockMarginStr != null && stockMarginStr.trim().length() > 0)
* ? Integer.parseInt(stockMarginStr.trim()) : 0;
*
* retailMargin = (retailMarginStr != null && retailMarginStr.trim().length() >
* 0) ? Integer.parseInt(retailMarginStr.trim()) : 0;
*
* } catch (Exception e) { BaseLogger.log("3", null, null,
* "Error parsing margin values"); } BigDecimal rateBD = new
* BigDecimal(rateQuot);
*
* BigDecimal hundred = new BigDecimal(100);
*
* BigDecimal retailMarginBD = new BigDecimal(retailMargin); BigDecimal
* stockMarginBD = new BigDecimal(stockMargin); BigDecimal distMarginBD = new
* BigDecimal(distMargin);
*
* BaseLogger.log("3", null, null, "distMargin::" + distMargin +
* " stockMargin::" + stockMargin + " revisedPtd:: " + retailMargin + "rate:: "
* + rate + "]");
*
* BigDecimal revisedPtr =
* rateBD.divide(hundred.multiply(hundred.subtract(retailMarginBD)), 6,
* RoundingMode.HALF_UP);
*
* BigDecimal revisedPts =
* rateBD.divide(hundred.multiply(hundred.subtract(stockMarginBD)), 6,
* RoundingMode.HALF_UP);
*
* BigDecimal revisedPtd =
* rateBD.divide(hundred.multiply(hundred.subtract(distMarginBD)), 6,
* RoundingMode.HALF_UP);
*
* BaseLogger.log("3", null, null, "revisedPtr::" + revisedPtr + " revisedPts::"
* + revisedPts + " revisedPtd::" + revisedPtd); BaseLogger.log("3", null, null,
* "revisedPtr::" + revisedPtr + " revisedPts::" + revisedPts + " revisedPtd:: "
* + revisedPtd + "]");
* valueXmlString.append("<revised_ptr>").append("<![CDATA[" + revisedPtr +
* "]]>") .append("</revised_ptr>\r\n");
* valueXmlString.append("<revised_pts>").append("<![CDATA[" + revisedPts +
* "]]>") .append("</revised_pts>\r\n");
* valueXmlString.append("<revised_ptd>").append("<![CDATA[" + revisedPtd +
* "]]>") .append("</revised_ptd>\r\n");
*
* }
*/
}
//Calculating Revised PTR,PTD and PTS [End]
}
valueXmlString.append("</Detail2>\r\n");
......@@ -948,7 +1029,7 @@ public class ReqForQuotationIC extends ValidatorEJB {
BaseLogger.log("3", null, null, "in rateApprvVal greater condition reStr>>>>> "+reStr);
valueXmlString.append("</Root>\r\n");
} catch (Exception e) {
BaseLogger.log("3", getUserInfo(), null, "Exception :AssetAssign :itemChanged(Document,String):" + e.getMessage() + ":");
BaseLogger.log("3", getUserInfo(), null, "Exception :ReqForQuotationIC :itemChanged(Document,String):" + e.getMessage() + ":");
e.printStackTrace();
} finally {
......@@ -957,7 +1038,7 @@ public class ReqForQuotationIC extends ValidatorEJB {
closeResources(rs, psPriceList, conn);
}
BaseLogger.log("3", getUserInfo(), null, "asset_assign valueXmlString::"+valueXmlString.toString());
BaseLogger.log("3", getUserInfo(), null, "ReqForQuotationIC valueXmlString::"+valueXmlString.toString());
return valueXmlString.toString();
}
......@@ -993,7 +1074,24 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
return input;
}
private static void setNodeValue( Document dom, String nodeName, String nodeVal ) throws Exception
{
Node tempNode = dom.getElementsByTagName( nodeName ).item(0);
if( tempNode != null )
{
if( tempNode.getFirstChild() == null )
{
CDATASection cDataSection = dom.createCDATASection( nodeVal );
tempNode.appendChild( cDataSection );
}
else
{
tempNode.getFirstChild().setNodeValue(nodeVal);
}
}
tempNode = null;
}
public static boolean isDateInvalid(String validUptoStr)
{
try
......
......@@ -52,6 +52,8 @@ public class ReqForQuotationSubmit extends ActionHandlerEJB
ibase.utility.E12GenericUtility genericUtility= null;
ITMDBAccessEJB itmDBAccess = null;
String ptr="",rateQuot="";
BigDecimal ratePtrVal = null;
BigDecimal rateQuotVal = null;
try
{
......@@ -81,8 +83,16 @@ public class ReqForQuotationSubmit extends ActionHandlerEJB
}
BigDecimal ratePtrVal = new BigDecimal(ptr);
BigDecimal rateQuotVal = new BigDecimal(rateQuot);
if(ptr != null && ptr.trim().length() > 0)
{
ratePtrVal = new BigDecimal(ptr);
}
if(rateQuot != null && rateQuot.trim().length() > 0)
{
rateQuotVal = new BigDecimal(rateQuot);
}
String loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
BaseLogger.log("3", null, null,"loginCode>>>>:"+loginCode);
......
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<!-- Root -->
<xsl:template match="/">
<html>
<head>
<LINK type="text/css" rel="stylesheet" href="/ibase/css/display_budget.css"/>
<LINK type="text/css" rel="stylesheet" href="/ibase/css/workflowsign.css"/>
</head>
<body bgcolor="#EEEEEE">
<div class="allDisplayDiv" style="background:#efefef; padding:1px;">
<xsl:apply-templates select="//Detail1"/>
</div>
</body>
</html>
</xsl:template>
<!-- ========================= -->
<!-- RFQ HEADER : Detail1 -->
<!-- ========================= -->
<xsl:template match="Detail1">
<!-- ========================= -->
<!-- Variables -->
<!-- ========================= -->
<xsl:variable name="tran_id" select="TRAN_ID"/>
<xsl:variable name="tran_date" select="TRAN_DATE"/>
<xsl:variable name="quot_type" select="QUOT_TYPE"/>
<xsl:variable name="cust_code" select="CUST_CODE"/>
<xsl:variable name="contact_pers" select="CONTACT_PERS"/>
<xsl:variable name="item_ser" select="ITEM_SER"/>
<xsl:variable name="req_date" select="REQ_DATE"/>
<xsl:variable name="valid_upto" select="VALID_UPTO"/>
<xsl:variable name="sales_pers" select="SALES_PERS"/>
<xsl:variable name="confirmed" select="CONFIRMED"/>
<!-- ========================= -->
<!-- Header Section -->
<!-- ========================= -->
<div style="margin:8px; background:#fff; border:1px solid #dcdcdc; border-radius:6px; padding:10px;">
<div class="tTitleR" style="margin-bottom:10px; font-weight:bold;">
REQUEST FOR QUOTATION
</div>
<div class="headDiv" style="display:flex; flex-wrap:wrap;">
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">RFQ No :</span>
<span class="viewData">
<xsl:value-of select="tran_id"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">RFQ Date :</span>
<span class="viewData">
<xsl:value-of select="tran_date"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Quotation Type :</span>
<span class="viewData">
<xsl:value-of select="quot_type"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Customer Code :</span>
<span class="viewData">
<xsl:value-of select="cust_code"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Contact Person :</span>
<span class="viewData">
<xsl:value-of select="contact_pers"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Item Series :</span>
<span class="viewData">
<xsl:value-of select="item_ser"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Required Date :</span>
<span class="viewData">
<xsl:value-of select="req_date"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Valid Upto :</span>
<span class="viewData">
<xsl:value-of select="valid_upto"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Sales Person :</span>
<span class="viewData">
<xsl:value-of select="sales_pers"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Confirmed :</span>
<span class="viewData">
<xsl:value-of select="confirmed"/>
</span>
</div>
</div>
</div>
<!-- ========================= -->
<!-- Item Details : Detail2 -->
<!-- ========================= -->
<table width="100%" border="0">
<tr>
<td class="tTitleR" style="background:#fff; border:1px solid #ccc;">
Item Details
</td>
</tr>
</table>
<div style="max-height:400px; overflow:auto;">
<table width="100%" border="1" cellpadding="5" cellspacing="0"
style="border-collapse:collapse; background:#f9f9f9;">
<tr>
<th class="tLabel">Line No</th>
<th class="tLabel">Item Code</th>
<th class="tLabel">Qty</th>
<th class="tLabel">Unit</th>
<th class="tLabel">Pack</th>
<th class="tLabel">Special Rate</th>
<th class="tLabel">Approved Rate</th>
<th class="tLabel">PTS (Price To Seller)</th>
<th class="tLabel">PTD (Price To Dealer)</th>
<th class="tLabel">Near Expiry</th>
<th class="tLabel">Remarks</th>
</tr>
<xsl:for-each select="//Detail2">
<xsl:variable name="dbID">
<xsl:value-of select="@dbID" />
</xsl:variable>
<xsl:variable name="domID">
<xsl:value-of select="@domID" />
</xsl:variable>
<xsl:variable name="rate_quot">
<xsl:value-of select="rate_quot" />
</xsl:variable>
<tr>
<td>
<xsl:value-of select="line_no"/>
</td>
<td>
<xsl:value-of select="item_code"/>
</td>
<td style="text-align:right;">
<xsl:value-of select="qty_quot"/>
</td>
<td>
<xsl:value-of select="unit"/>
</td>
<td>
<xsl:value-of select="pack_code"/>
</td>
<td style="text-align:right;">
<xsl:value-of select="rate_quot"/>
</td>
<td style="text-align:right;">
<xsl:value-of select="rate_apprv"/>
</td>
<td>
<xsl:value-of select="pts"/>
</td>
<td>
<xsl:value-of select="ptd"/>
</td>
<td>
<xsl:value-of select="near_expiry"/>
</td>
<td>
<xsl:value-of select="remarks"/>
</td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:template>
</xsl:stylesheet>
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<LINK type="text/css" rel="stylesheet" href="/ibase/css/display_budget.css"/>
<LINK type="text/css" rel="stylesheet" href="/ibase/css/workflowsign.css"/>
<style>
body{
background:#f5f6fa;
font-family:Arial, Helvetica, sans-serif;
}
.card{
margin:10px;
background:#fff;
border:1px solid #ddd;
border-radius:6px;
padding:15px;
}
.title{
font-size:18px;
font-weight:bold;
margin-bottom:15px;
border-bottom:1px solid #eee;
padding-bottom:8px;
text-align:left;
}
.grid{
display:flex;
flex-wrap:wrap;
}
.field{
width:50%;
margin-bottom:10px;
}
.label{
font-weight:bold;
width:150px;
display:inline-block;
color:#444;
}
.value{
color:#000;
}
.tableCard{
margin:10px;
background:#fff;
border:1px solid #ddd;
border-radius:6px;
padding:10px;
}
.tableTitle{
font-weight:bold;
margin-bottom:8px;
}
.tbl{
width:100%;
border-collapse:collapse;
}
.tbl th{
background:#f3f5f9;
padding:8px;
border:1px solid #ddd;
font-size:13px;
}
.tbl td{
padding:8px;
border:1px solid #ddd;
font-size:13px;
}
.tbl tr:nth-child(even){
background:#fafafa;
}
.tbl tr:hover{
background:#eef3ff;
}
.right{
text-align:right;
}
</style>
</head>
<body>
<div>
<xsl:apply-templates select="//Detail1"/>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="Detail1">
<div class="card">
<div class="title">REQUEST FOR QUOTATION</div>
<div class="grid">
<div class="field">
<span class="label">RFQ No :</span>
<span class="value"><xsl:value-of select="tran_id"/></span>
</div>
<div class="field">
<span class="label">RFQ Date :</span>
<span class="value"><xsl:value-of select="tran_date"/></span>
</div>
<div class="field">
<span class="label">Quotation Type :</span>
<span class="value">
<xsl:choose>
<xsl:when test="quot_type = 'C'">Customer</xsl:when>
<xsl:when test="quot_type = 'I'">Institute</xsl:when>
<xsl:when test="quot_type = 'G'">Group</xsl:when>
<xsl:otherwise><xsl:value-of select="quot_type"/></xsl:otherwise>
</xsl:choose>
</span>
</div>
<div class="field">
<span class="label">Customer :</span>
<span class="value"><xsl:value-of select="cust_code"/></span>
</div>
<div class="field">
<span class="label">Contact Person :</span>
<span class="value"><xsl:value-of select="contact_pers"/></span>
</div>
<div class="field">
<span class="label">Item Series :</span>
<span class="value"><xsl:value-of select="item_ser"/></span>
</div>
<div class="field">
<span class="label">Required Date :</span>
<span class="value"><xsl:value-of select="req_date"/></span>
</div>
<div class="field">
<span class="label">Valid Upto :</span>
<span class="value"><xsl:value-of select="valid_upto"/></span>
</div>
<div class="field">
<span class="label">Sales Person :</span>
<span class="value"><xsl:value-of select="sales_pers"/></span>
</div>
</div>
</div>
<div class="tableCard">
<div class="tableTitle">Item Details</div>
<div style="max-height:400px; overflow:auto;">
<table class="tbl">
<tr>
<th>Line</th>
<th>Item</th>
<th>Qty</th>
<th>Unit</th>
<th>Pack</th>
<th>Competitor Item</th>
<th>Competitor Name</th>
<th>Competitor Rate</th>
<th>Special Rate</th>
<th>Approved</th>
<th>PTS</th>
<th>PTD</th>
<th>PTR</th>
<th>Remarks</th>
</tr>
<xsl:for-each select="//Detail2">
<tr>
<td><xsl:value-of select="line_no"/></td>
<td>
<xsl:value-of select="item_code"/>
<xsl:text> - </xsl:text>
<xsl:value-of select="descr"/>
</td>
<td class="right">
<xsl:value-of select="format-number(qty_quot,'0')"/>
</td>
<td><xsl:value-of select="unit"/></td>
<td><xsl:value-of select="pack_code"/></td>
<td><xsl:value-of select="competitor_item"/></td>
<td><xsl:value-of select="competitor_name"/></td>
<td class="right">
<xsl:value-of select="format-number(competitor_rate,'0')"/>
</td>
<td class="right">
<xsl:value-of select="format-number(rate_quot,'0')"/>
</td>
<td class="right">
<xsl:value-of select="format-number(rate_apprv,'0')"/>
</td>
<td class="right"><xsl:value-of select="pts"/></td>
<td class="right"><xsl:value-of select="ptd"/></td>
<td class="right"><xsl:value-of select="ptr"/></td>
<td><xsl:value-of select="remarks"/></td>
</tr>
</xsl:for-each>
</table>
</div>
</div>
</xsl:template>
</xsl:stylesheet>
......@@ -252,7 +252,13 @@
<name>mgmnt_apprv</name>
<dbname>sales_quot_req.mgmnt_apprv</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;)) </retrieve>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>itemser.descr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) TABLE(NAME=&quot;itemser&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) JOIN (LEFT=&quot;sales_quot_req.item_ser&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; OUTER1 =&quot;sales_quot_req.item_ser&quot; )) </retrieve>
<update>sales_quot_req</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -2037,6 +2043,63 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>0</alignment>
<tabsequence>280</tabsequence>
<border>0</border>
<color>33554432</color>
<x>5946</x>
<y>1</y>
<height>16</height>
<width>238</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</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>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Descr</text>
<border>0</border>
<color>33554432</color>
<x>5945</x>
<y>1</y>
<height>16</height>
<width>239</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_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>
......
......@@ -32,7 +32,7 @@
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<height>17</height>
<color>536870912</color>
</Header>
<Summary>
......@@ -179,7 +179,25 @@
<name>descr</name>
<dbname>item.descr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req_det&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;sales_quot_req_det.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req_det.line_no&quot;) COLUMN(NAME=&quot;sales_quot_req_det.item_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.qty_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.unit&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pack_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.near_expiry&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_rate&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_item&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_name&quot;) COLUMN(NAME=&quot;sales_quot_req_det.spec_instr&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_apprv&quot;) COLUMN(NAME=&quot;sales_quot_req_det.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr_flag&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pts&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptd&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr&quot;) COLUMN(NAME=&quot;item.descr&quot;) JOIN (LEFT=&quot;sales_quot_req_det.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;sales_quot_req_det.item_code&quot; )WHERE( EXP1 =&quot;sales_quot_req_det.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>revised_pts</name>
<dbname>sales_quot_req_det.revised_pts</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>revised_ptd</name>
<dbname>sales_quot_req_det.revised_ptd</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<updatewhereclause>yes</updatewhereclause>
<name>revised_ptr</name>
<dbname>sales_quot_req_det.revised_ptr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req_det&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;sales_quot_req_det.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req_det.line_no&quot;) COLUMN(NAME=&quot;sales_quot_req_det.item_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.qty_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.unit&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pack_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.near_expiry&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_rate&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_item&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_name&quot;) COLUMN(NAME=&quot;sales_quot_req_det.spec_instr&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_apprv&quot;) COLUMN(NAME=&quot;sales_quot_req_det.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr_flag&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pts&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptd&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;sales_quot_req_det.revised_pts&quot;) COLUMN(NAME=&quot;sales_quot_req_det.revised_ptd&quot;) COLUMN(NAME=&quot;sales_quot_req_det.revised_ptr&quot;) JOIN (LEFT=&quot;sales_quot_req_det.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;sales_quot_req_det.item_code&quot; )WHERE( EXP1 =&quot;sales_quot_req_det.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = string) </retrieve>
<argument>
<name>tran_id</name>
<type>string</type>
......@@ -474,7 +492,7 @@
<x>841</x>
<y>2</y>
<height>16</height>
<width>1023</width>
<width>112</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -499,10 +517,10 @@
<text>Special Instruction</text>
<border>2</border>
<color>0</color>
<x>1866</x>
<x>955</x>
<y>2</y>
<height>16</height>
<width>1023</width>
<width>102</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -527,7 +545,7 @@
<text>Approval Rate</text>
<border>2</border>
<color>0</color>
<x>2891</x>
<x>1059</x>
<y>2</y>
<height>16</height>
<width>85</width>
......@@ -555,10 +573,10 @@
<text>Remarks</text>
<border>2</border>
<color>0</color>
<x>2978</x>
<x>1146</x>
<y>2</y>
<height>16</height>
<width>1023</width>
<width>79</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -583,7 +601,7 @@
<text>Price To Retailer Flag</text>
<border>0</border>
<color>33554432</color>
<x>4003</x>
<x>1227</x>
<y>1</y>
<height>19</height>
<width>156</width>
......@@ -611,7 +629,7 @@
<text>Price To Stockist</text>
<border>0</border>
<color>33554432</color>
<x>4161</x>
<x>1385</x>
<y>0</y>
<height>19</height>
<width>138</width>
......@@ -639,7 +657,7 @@
<text>Price To Distributor</text>
<border>0</border>
<color>33554432</color>
<x>4301</x>
<x>1525</x>
<y>1</y>
<height>19</height>
<width>148</width>
......@@ -667,7 +685,7 @@
<text>Price To Retailer</text>
<border>0</border>
<color>33554432</color>
<x>4451</x>
<x>1675</x>
<y>1</y>
<height>19</height>
<width>128</width>
......@@ -689,6 +707,34 @@
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Description</text>
<border>0</border>
<color>33554432</color>
<x>1805</x>
<y>1</y>
<height>19</height>
<width>87</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
......@@ -1079,7 +1125,7 @@
<x>841</x>
<y>2</y>
<height>19</height>
<width>1023</width>
<width>112</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -1114,10 +1160,10 @@
<tabsequence>120</tabsequence>
<border>2</border>
<color>33554432</color>
<x>1866</x>
<x>955</x>
<y>2</y>
<height>19</height>
<width>1023</width>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -1152,7 +1198,7 @@
<tabsequence>130</tabsequence>
<border>2</border>
<color>33554432</color>
<x>2891</x>
<x>1059</x>
<y>2</y>
<height>19</height>
<width>85</width>
......@@ -1190,10 +1236,10 @@
<tabsequence>140</tabsequence>
<border>2</border>
<color>33554432</color>
<x>2978</x>
<x>1146</x>
<y>2</y>
<height>19</height>
<width>1023</width>
<width>79</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -1228,7 +1274,7 @@
<tabsequence>150</tabsequence>
<border>0</border>
<color>33554432</color>
<x>4003</x>
<x>1227</x>
<y>1</y>
<height>16</height>
<width>156</width>
......@@ -1264,7 +1310,7 @@
<tabsequence>160</tabsequence>
<border>0</border>
<color>33554432</color>
<x>4161</x>
<x>1385</x>
<y>1</y>
<height>16</height>
<width>138</width>
......@@ -1300,7 +1346,7 @@
<tabsequence>170</tabsequence>
<border>0</border>
<color>33554432</color>
<x>4301</x>
<x>1525</x>
<y>1</y>
<height>16</height>
<width>148</width>
......@@ -1336,7 +1382,7 @@
<tabsequence>180</tabsequence>
<border>0</border>
<color>33554432</color>
<x>4451</x>
<x>1675</x>
<y>1</y>
<height>16</height>
<width>128</width>
......@@ -1372,15 +1418,51 @@
<tabsequence>190</tabsequence>
<border>0</border>
<color>33554432</color>
<x>4582</x>
<x>1805</x>
<y>1</y>
<height>16</height>
<width>87</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>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>
<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>20</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1895</x>
<y>1</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>revised_pts</name>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-10</height>
......@@ -1397,18 +1479,132 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Item Description</text>
<text>Revised Pts</text>
<border>0</border>
<color>33554432</color>
<x>4581</x>
<x>1894</x>
<y>1</y>
<height>19</height>
<width>88</width>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr_t</name>
<visible>1</visible>
<name>revised_pts_t</name>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1983</x>
<y>1</y>
<height>16</height>
<width>93</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>revised_ptd</name>
<visible>0</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>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Revised Ptd</text>
<border>0</border>
<color>33554432</color>
<x>1982</x>
<y>1</y>
<height>19</height>
<width>94</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>revised_ptd_t</name>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>2079</x>
<y>1</y>
<height>16</height>
<width>85</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>revised_ptr</name>
<visible>0</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>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Revised Ptr</text>
<border>0</border>
<color>33554432</color>
<x>2078</x>
<y>1</y>
<height>19</height>
<width>86</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>revised_ptr_t</name>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-12</height>
......
......@@ -30,6 +30,10 @@
<overrideprintjob>no</overrideprintjob>
</print>
</BaseDefinition>
<Header>
<height>65</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
......@@ -266,7 +270,7 @@
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>spname</name>
<name>descr</name>
<dbname>itemser.descr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) TABLE(NAME=&quot;itemser&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) JOIN (LEFT=&quot;sales_quot_req.item_ser&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; OUTER1 =&quot;sales_quot_req.item_ser&quot; )WHERE( EXP1 =&quot;sales_quot_req.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
......@@ -962,78 +966,6 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>491</x>
<y>116</y>
<height>16</height>
<width>41</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>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>
<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>30</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>492</x>
<y>166</y>
<height>16</height>
<width>57</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>spname</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>
<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>
......@@ -2192,6 +2124,35 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>571</x>
<y>94</y>
<height>16</height>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</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>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -181,7 +181,28 @@
<name>descr</name>
<dbname>item.descr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req_det&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;sales_quot_req_det.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req_det.line_no&quot;) COLUMN(NAME=&quot;sales_quot_req_det.item_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.qty_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.unit&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pack_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.near_expiry&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_rate&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_item&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_name&quot;) COLUMN(NAME=&quot;sales_quot_req_det.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req_det.spec_instr&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr_flag&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_apprv&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pts&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptd&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr&quot;) COLUMN(NAME=&quot;item.descr&quot;) JOIN (LEFT=&quot;sales_quot_req_det.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;sales_quot_req_det.item_code&quot; )WHERE( EXP1 =&quot;sales_quot_req_det.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>revised_pts</name>
<dbname>sales_quot_req_det.revised_pts</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>revised_ptd</name>
<dbname>sales_quot_req_det.revised_ptd</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>revised_ptr</name>
<dbname>sales_quot_req_det.revised_ptr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req_det&quot; ) TABLE(NAME=&quot;item&quot; ) COLUMN(NAME=&quot;sales_quot_req_det.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req_det.line_no&quot;) COLUMN(NAME=&quot;sales_quot_req_det.item_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.qty_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.unit&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pack_code&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_quot&quot;) COLUMN(NAME=&quot;sales_quot_req_det.near_expiry&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_rate&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_item&quot;) COLUMN(NAME=&quot;sales_quot_req_det.competitor_name&quot;) COLUMN(NAME=&quot;sales_quot_req_det.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req_det.spec_instr&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr_flag&quot;) COLUMN(NAME=&quot;sales_quot_req_det.rate_apprv&quot;) COLUMN(NAME=&quot;sales_quot_req_det.pts&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptd&quot;) COLUMN(NAME=&quot;sales_quot_req_det.ptr&quot;) COLUMN(NAME=&quot;item.descr&quot;) COLUMN(NAME=&quot;sales_quot_req_det.revised_pts&quot;) COLUMN(NAME=&quot;sales_quot_req_det.revised_ptd&quot;) COLUMN(NAME=&quot;sales_quot_req_det.revised_ptr&quot;) JOIN (LEFT=&quot;sales_quot_req_det.item_code&quot; OP =&quot;=&quot;RIGHT=&quot;item.item_code&quot; OUTER1 =&quot;sales_quot_req_det.item_code&quot; )WHERE( EXP1 =&quot;sales_quot_req_det.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<update>sales_quot_req_det</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -246,7 +267,7 @@
<x>62</x>
<y>389</y>
<height>100</height>
<width>601</width>
<width>750</width>
<name>gb_6</name>
<visible>1</visible>
<font>
......@@ -1407,11 +1428,18 @@
<y>197</y>
<height>16</height>
<width>71</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>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>
......@@ -1489,6 +1517,93 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>21</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>682</x>
<y>416</y>
<height>16</height>
<width>70</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>revised_ptd</name>
<visible>0</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>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>20</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>680</x>
<y>440</y>
<height>16</height>
<width>72</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>revised_pts</name>
<visible>0</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>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>22</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>684</x>
<y>460</y>
<height>16</height>
<width>67</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>revised_ptr</name>
<visible>0</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>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -34,7 +34,8 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(40) update=yes updatewhereclause=yes name=addr3 dbname="addr3" )
column=(type=char(10) update=yes updatewhereclause=yes name=site_code dbname="sales_quot_req.site_code" )
column=(type=char(1) update=yes updatewhereclause=yes name=mgmnt_apprv dbname="sales_quot_req.mgmnt_apprv" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~")) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no )
column=(type=char(40) updatewhereclause=yes name=descr dbname="itemser.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) TABLE(NAME=~"itemser~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~") COLUMN(NAME=~"itemser.descr~") JOIN (LEFT=~"sales_quot_req.item_ser~" OP =~"=~"RIGHT=~"itemser.item_ser~" OUTER1 =~"sales_quot_req.item_ser~" )) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no )
text(band=header alignment="2" text="Transaction Id" border="2" color="33554432" x="2" y="2" height="16" width="91" 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" )
text(band=header alignment="2" text="Transaction Date" border="2" color="33554432" x="95" y="2" height="16" width="114" 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="536870912" )
text(band=header alignment="2" text="Quotation Type" border="2" color="33554432" x="211" y="2" height="16" width="98" html.valueishtml="0" name=quot_type_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" )
......@@ -62,6 +63,7 @@ text(band=header alignment="2" text="Customer Name" border="2" color="33554432"
text(band=header alignment="2" text="Address" border="2" color="33554432" x="5431" y="2" height="16" width="246" html.valueishtml="0" name=addr1_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" )
text(band=header alignment="2" text="Site " border="2" color="33554432" x="5679" y="2" height="16" width="66" 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="536870912" )
text(band=header alignment="0" text="Management Approval " border="0" color="33554432" x="5747" y="1" height="19" width="196" html.valueishtml="0" name=mgmnt_apprv_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Descr" border="0" color="33554432" x="5945" y="1" height="16" width="238" 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="2" color="33554432" x="2" y="2" height="19" width="91" 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="2" color="33554432" x="95" y="2" height="19" width="114" 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="2" color="33554432" x="211" y="2" height="19" width="98" format="[general]" html.valueishtml="0" name=quot_type 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" )
......@@ -89,6 +91,7 @@ column(band=detail id=24 alignment="0" tabsequence=240 border="2" color="3355443
column(band=detail id=25 alignment="0" tabsequence=250 border="2" color="33554432" x="5431" y="2" height="19" width="246" format="[general]" html.valueishtml="0" name=addr1 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=28 alignment="0" tabsequence=260 border="2" color="33554432" x="5679" y="2" height="19" width="66" format="[general]" html.valueishtml="0" name=site_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=29 alignment="0" tabsequence=270 border="0" color="33554432" x="5747" y="1" height="16" width="196" format="[general]" html.valueishtml="0" name=mgmnt_apprv 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=30 alignment="0" tabsequence=280 border="0" color="33554432" x="5945" y="1" height="16" width="238" 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 )
......
$PBExportHeader$vhb_sales_quot_req_det_brow.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 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=20 color="536870912" )
header(height=17 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
......@@ -24,7 +24,10 @@ table(column=(type=char(10) update=yes updatewhereclause=yes name=tran_id dbname
column=(type=decimal(3) update=yes updatewhereclause=yes name=ptd dbname="sales_quot_req_det.ptd" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=ptr dbname="sales_quot_req_det.ptr" )
column=(type=char(130) updatewhereclause=yes name=descr dbname="item.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req_det~" ) TABLE(NAME=~"item~" ) COLUMN(NAME=~"sales_quot_req_det.tran_id~") COLUMN(NAME=~"sales_quot_req_det.line_no~") COLUMN(NAME=~"sales_quot_req_det.item_code~") COLUMN(NAME=~"sales_quot_req_det.qty_quot~") COLUMN(NAME=~"sales_quot_req_det.unit~") COLUMN(NAME=~"sales_quot_req_det.pack_code~") COLUMN(NAME=~"sales_quot_req_det.rate_quot~") COLUMN(NAME=~"sales_quot_req_det.near_expiry~") COLUMN(NAME=~"sales_quot_req_det.competitor_rate~") COLUMN(NAME=~"sales_quot_req_det.competitor_item~") COLUMN(NAME=~"sales_quot_req_det.competitor_name~") COLUMN(NAME=~"sales_quot_req_det.spec_instr~") COLUMN(NAME=~"sales_quot_req_det.rate_apprv~") COLUMN(NAME=~"sales_quot_req_det.remarks~") COLUMN(NAME=~"sales_quot_req_det.ptr_flag~") COLUMN(NAME=~"sales_quot_req_det.pts~") COLUMN(NAME=~"sales_quot_req_det.ptd~") COLUMN(NAME=~"sales_quot_req_det.ptr~") COLUMN(NAME=~"item.descr~") JOIN (LEFT=~"sales_quot_req_det.item_code~" OP =~"=~"RIGHT=~"item.item_code~" OUTER1 =~"sales_quot_req_det.item_code~" )WHERE( EXP1 =~"sales_quot_req_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) " arguments=(("tran_id", string)) )
column=(type=decimal(3) updatewhereclause=yes name=revised_pts dbname="sales_quot_req_det.revised_pts" )
column=(type=decimal(3) updatewhereclause=yes name=revised_ptd dbname="sales_quot_req_det.revised_ptd" )
column=(type=decimal(3) updatewhereclause=yes name=revised_ptr dbname="sales_quot_req_det.revised_ptr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req_det~" ) TABLE(NAME=~"item~" ) COLUMN(NAME=~"sales_quot_req_det.tran_id~") COLUMN(NAME=~"sales_quot_req_det.line_no~") COLUMN(NAME=~"sales_quot_req_det.item_code~") COLUMN(NAME=~"sales_quot_req_det.qty_quot~") COLUMN(NAME=~"sales_quot_req_det.unit~") COLUMN(NAME=~"sales_quot_req_det.pack_code~") COLUMN(NAME=~"sales_quot_req_det.rate_quot~") COLUMN(NAME=~"sales_quot_req_det.near_expiry~") COLUMN(NAME=~"sales_quot_req_det.competitor_rate~") COLUMN(NAME=~"sales_quot_req_det.competitor_item~") COLUMN(NAME=~"sales_quot_req_det.competitor_name~") COLUMN(NAME=~"sales_quot_req_det.spec_instr~") COLUMN(NAME=~"sales_quot_req_det.rate_apprv~") COLUMN(NAME=~"sales_quot_req_det.remarks~") COLUMN(NAME=~"sales_quot_req_det.ptr_flag~") COLUMN(NAME=~"sales_quot_req_det.pts~") COLUMN(NAME=~"sales_quot_req_det.ptd~") COLUMN(NAME=~"sales_quot_req_det.ptr~") COLUMN(NAME=~"item.descr~") COLUMN(NAME=~"sales_quot_req_det.revised_pts~") COLUMN(NAME=~"sales_quot_req_det.revised_ptd~") COLUMN(NAME=~"sales_quot_req_det.revised_ptr~") JOIN (LEFT=~"sales_quot_req_det.item_code~" OP =~"=~"RIGHT=~"item.item_code~" OUTER1 =~"sales_quot_req_det.item_code~" )WHERE( EXP1 =~"sales_quot_req_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = string) " arguments=(("tran_id", string)) )
text(band=header alignment="2" text="Transaction Id" border="2" color="0" x="2" y="2" height="16" width="93" 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" )
text(band=header alignment="2" text="Line No" border="2" color="0" x="97" y="2" height="16" width="66" 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="1" background.color="536870912" )
text(band=header alignment="2" text="Item Code" border="2" color="0" x="165" y="2" height="16" width="66" 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="1" background.color="536870912" )
......@@ -35,14 +38,15 @@ text(band=header alignment="2" text="Rate Quote" border="2" color="0" x="472" y=
text(band=header alignment="2" text="Near Expiry" border="2" color="0" x="546" y="2" height="16" width="84" html.valueishtml="0" name=near_expiry_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" )
text(band=header alignment="2" text="Competitor Rate" border="2" color="0" x="632" y="2" height="16" width="104" html.valueishtml="0" name=competitor_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="536870912" )
text(band=header alignment="2" text="Competitor Item" border="2" color="0" x="738" y="2" height="16" width="101" html.valueishtml="0" name=competitor_item_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" )
text(band=header alignment="2" text="Competitor Name" border="2" color="0" x="841" y="2" height="16" width="1023" html.valueishtml="0" name=competitor_name_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" )
text(band=header alignment="2" text="Special Instruction" border="2" color="0" x="1866" y="2" height="16" width="1023" html.valueishtml="0" name=spec_instr_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" )
text(band=header alignment="2" text="Approval Rate" border="2" color="0" x="2891" y="2" height="16" width="85" html.valueishtml="0" name=rate_apprv_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" )
text(band=header alignment="2" text="Remarks" border="2" color="0" x="2978" y="2" height="16" width="1023" 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="1" background.color="536870912" )
text(band=header alignment="0" text="Price To Retailer Flag" border="0" color="33554432" x="4003" y="1" height="19" width="156" html.valueishtml="0" name=ptr_flag_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Stockist" border="0" color="33554432" x="4161" y="0" height="19" width="138" html.valueishtml="0" name=pts_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Distributor" border="0" color="33554432" x="4301" y="1" height="19" width="148" html.valueishtml="0" name=ptd_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Retailer" border="0" color="33554432" x="4451" y="1" height="19" width="128" html.valueishtml="0" name=ptr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="2" text="Competitor Name" border="2" color="0" x="841" y="2" height="16" width="112" html.valueishtml="0" name=competitor_name_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" )
text(band=header alignment="2" text="Special Instruction" border="2" color="0" x="955" y="2" height="16" width="102" html.valueishtml="0" name=spec_instr_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" )
text(band=header alignment="2" text="Approval Rate" border="2" color="0" x="1059" y="2" height="16" width="85" html.valueishtml="0" name=rate_apprv_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" )
text(band=header alignment="2" text="Remarks" border="2" color="0" x="1146" y="2" height="16" width="79" 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="1" background.color="536870912" )
text(band=header alignment="0" text="Price To Retailer Flag" border="0" color="33554432" x="1227" y="1" height="19" width="156" html.valueishtml="0" name=ptr_flag_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Stockist" border="0" color="33554432" x="1385" y="0" height="19" width="138" html.valueishtml="0" name=pts_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Distributor" border="0" color="33554432" x="1525" y="1" height="19" width="148" html.valueishtml="0" name=ptd_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Retailer" border="0" color="33554432" x="1675" y="1" height="19" width="128" html.valueishtml="0" name=ptr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Item Description" border="0" color="33554432" x="1805" y="1" height="19" width="87" html.valueishtml="0" name=descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=1 alignment="0" tabsequence=10 border="2" color="33554432" x="2" y="2" height="19" width="93" 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="2" color="33554432" x="97" y="2" height="19" width="66" 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="0" tabsequence=30 border="2" color="33554432" x="165" y="2" height="19" width="66" 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" )
......@@ -53,16 +57,21 @@ column(band=detail id=7 alignment="1" tabsequence=70 border="2" color="33554432"
column(band=detail id=8 alignment="0" tabsequence=80 border="2" color="33554432" x="546" y="2" height="19" width="84" format="[general]" html.valueishtml="0" name=near_expiry 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=9 alignment="1" tabsequence=90 border="2" color="33554432" x="632" y="2" height="19" width="104" format="[general]" html.valueishtml="0" name=competitor_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="0" tabsequence=100 border="2" color="33554432" x="738" y="2" height="19" width="101" format="[general]" html.valueishtml="0" name=competitor_item 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=11 alignment="0" tabsequence=110 border="2" color="33554432" x="841" y="2" height="19" width="1023" format="[general]" html.valueishtml="0" name=competitor_name visible="1" edit.limit=250 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="2" color="33554432" x="1866" y="2" height="19" width="1023" format="[general]" html.valueishtml="0" name=spec_instr visible="1" edit.limit=2500 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="1" tabsequence=130 border="2" color="33554432" x="2891" y="2" height="19" width="85" format="[general]" html.valueishtml="0" name=rate_apprv 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=14 alignment="0" tabsequence=140 border="2" color="33554432" x="2978" y="2" height="19" width="1023" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=2500 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="4003" y="1" height="16" width="156" format="[general]" html.valueishtml="0" name=ptr_flag 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=16 alignment="0" tabsequence=160 border="0" color="33554432" x="4161" y="1" height="16" width="138" format="[general]" html.valueishtml="0" name=pts 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="4301" y="1" height="16" width="148" format="[general]" html.valueishtml="0" name=ptd 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="4451" y="1" height="16" width="128" format="[general]" html.valueishtml="0" name=ptr 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=19 alignment="0" tabsequence=190 border="0" color="33554432" x="4582" y="1" height="16" width="87" html.valueishtml="0" name=descr 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" )
text(band=header alignment="0" text="Item Description" border="0" color="33554432" x="4581" y="1" height="19" width="88" html.valueishtml="0" name=descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=11 alignment="0" tabsequence=110 border="2" color="33554432" x="841" y="2" height="19" width="112" format="[general]" html.valueishtml="0" name=competitor_name visible="1" edit.limit=250 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="2" color="33554432" x="955" y="2" height="19" width="102" format="[general]" html.valueishtml="0" name=spec_instr visible="1" edit.limit=2500 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="1" tabsequence=130 border="2" color="33554432" x="1059" y="2" height="19" width="85" format="[general]" html.valueishtml="0" name=rate_apprv 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=14 alignment="0" tabsequence=140 border="2" color="33554432" x="1146" y="2" height="19" width="79" format="[general]" html.valueishtml="0" name=remarks visible="1" edit.limit=2500 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="1227" y="1" height="16" width="156" format="[general]" html.valueishtml="0" name=ptr_flag 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=16 alignment="0" tabsequence=160 border="0" color="33554432" x="1385" y="1" height="16" width="138" format="[general]" html.valueishtml="0" name=pts 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="1525" y="1" height="16" width="148" format="[general]" html.valueishtml="0" name=ptd 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="1675" y="1" height="16" width="128" format="[general]" html.valueishtml="0" name=ptr 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=19 alignment="0" tabsequence=190 border="0" color="33554432" x="1805" y="1" height="16" width="87" 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" )
column(band=detail id=20 alignment="0" tabsequence=32766 border="0" color="33554432" x="1895" y="1" height="16" width="85" html.valueishtml="0" name=revised_pts visible="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=header alignment="0" text="Revised Pts" border="0" color="33554432" x="1894" y="1" height="19" width="86" html.valueishtml="0" name=revised_pts_t visible="0" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=21 alignment="0" tabsequence=32766 border="0" color="33554432" x="1983" y="1" height="16" width="93" html.valueishtml="0" name=revised_ptd visible="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=header alignment="0" text="Revised Ptd" border="0" color="33554432" x="1982" y="1" height="19" width="94" html.valueishtml="0" name=revised_ptd_t visible="0" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=22 alignment="0" tabsequence=32766 border="0" color="33554432" x="2079" y="1" height="16" width="85" html.valueishtml="0" name=revised_ptr visible="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=header alignment="0" text="Revised Ptr" border="0" color="33554432" x="2078" y="1" height="19" width="86" html.valueishtml="0" name=revised_ptr_t visible="0" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
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 )
......
......@@ -23,10 +23,13 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=decimal(3) update=yes updatewhereclause=yes name=ptd dbname="sales_quot_req_det.ptd" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=ptr dbname="sales_quot_req_det.ptr" )
column=(type=char(130) updatewhereclause=yes name=descr dbname="item.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req_det~" ) TABLE(NAME=~"item~" ) COLUMN(NAME=~"sales_quot_req_det.tran_id~") COLUMN(NAME=~"sales_quot_req_det.line_no~") COLUMN(NAME=~"sales_quot_req_det.item_code~") COLUMN(NAME=~"sales_quot_req_det.qty_quot~") COLUMN(NAME=~"sales_quot_req_det.unit~") COLUMN(NAME=~"sales_quot_req_det.pack_code~") COLUMN(NAME=~"sales_quot_req_det.rate_quot~") COLUMN(NAME=~"sales_quot_req_det.near_expiry~") COLUMN(NAME=~"sales_quot_req_det.competitor_rate~") COLUMN(NAME=~"sales_quot_req_det.competitor_item~") COLUMN(NAME=~"sales_quot_req_det.competitor_name~") COLUMN(NAME=~"sales_quot_req_det.remarks~") COLUMN(NAME=~"sales_quot_req_det.spec_instr~") COLUMN(NAME=~"sales_quot_req_det.ptr_flag~") COLUMN(NAME=~"sales_quot_req_det.rate_apprv~") COLUMN(NAME=~"sales_quot_req_det.pts~") COLUMN(NAME=~"sales_quot_req_det.ptd~") COLUMN(NAME=~"sales_quot_req_det.ptr~") COLUMN(NAME=~"item.descr~") JOIN (LEFT=~"sales_quot_req_det.item_code~" OP =~"=~"RIGHT=~"item.item_code~" OUTER1 =~"sales_quot_req_det.item_code~" )WHERE( EXP1 =~"sales_quot_req_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req_det" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
column=(type=decimal(3) update=yes updatewhereclause=yes name=revised_pts dbname="sales_quot_req_det.revised_pts" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=revised_ptd dbname="sales_quot_req_det.revised_ptd" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=revised_ptr dbname="sales_quot_req_det.revised_ptr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req_det~" ) TABLE(NAME=~"item~" ) COLUMN(NAME=~"sales_quot_req_det.tran_id~") COLUMN(NAME=~"sales_quot_req_det.line_no~") COLUMN(NAME=~"sales_quot_req_det.item_code~") COLUMN(NAME=~"sales_quot_req_det.qty_quot~") COLUMN(NAME=~"sales_quot_req_det.unit~") COLUMN(NAME=~"sales_quot_req_det.pack_code~") COLUMN(NAME=~"sales_quot_req_det.rate_quot~") COLUMN(NAME=~"sales_quot_req_det.near_expiry~") COLUMN(NAME=~"sales_quot_req_det.competitor_rate~") COLUMN(NAME=~"sales_quot_req_det.competitor_item~") COLUMN(NAME=~"sales_quot_req_det.competitor_name~") COLUMN(NAME=~"sales_quot_req_det.remarks~") COLUMN(NAME=~"sales_quot_req_det.spec_instr~") COLUMN(NAME=~"sales_quot_req_det.ptr_flag~") COLUMN(NAME=~"sales_quot_req_det.rate_apprv~") COLUMN(NAME=~"sales_quot_req_det.pts~") COLUMN(NAME=~"sales_quot_req_det.ptd~") COLUMN(NAME=~"sales_quot_req_det.ptr~") COLUMN(NAME=~"item.descr~") COLUMN(NAME=~"sales_quot_req_det.revised_pts~") COLUMN(NAME=~"sales_quot_req_det.revised_ptd~") COLUMN(NAME=~"sales_quot_req_det.revised_ptr~") JOIN (LEFT=~"sales_quot_req_det.item_code~" OP =~"=~"RIGHT=~"item.item_code~" OUTER1 =~"sales_quot_req_det.item_code~" )WHERE( EXP1 =~"sales_quot_req_det.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req_det" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
groupbox(band=detail text="General"border="2" color="33554432" x="104" y="34" height="120" width="604" name=gb_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
groupbox(band=detail text="Quantity"border="2" color="0" x="78" y="283" height="95" width="630" name=gb_3 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="1073741824" )
groupbox(band=detail text="Price List"border="2" color="0" x="62" y="389" height="100" width="601" name=gb_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="1073741824" )
groupbox(band=detail text="Price List"border="2" color="0" x="62" y="389" height="100" width="750" name=gb_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="1073741824" )
groupbox(band=detail text="Competitor"border="2" color="0" x="58" y="509" height="100" width="630" name=gb_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="1073741824" )
text(band=detail alignment="1" text="Line No:" border="2" color="0" x="134" y="57" height="16" width="105" 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="1" background.color="536870912" )
column(band=detail id=2 alignment="1" tabsequence=32766 border="2" color="33554432" x="243" y="57" height="19" width="72" 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" )
......@@ -62,9 +65,12 @@ text(band=detail alignment="1" text="Competitor Name:" border="2" color="0" x="4
column(band=detail id=11 alignment="0" tabsequence=80 border="2" color="33554432" x="512" y="528" height="19" width="118" format="[general]" html.valueishtml="0" name=competitor_name visible="1" edit.limit=250 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="Competitor Item:" border="2" color="0" x="135" y="562" height="16" width="105" html.valueishtml="0" name=competitor_item_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=10 alignment="0" tabsequence=70 border="2" color="33554432" x="244" y="562" height="19" width="66" format="[general]" html.valueishtml="0" name=competitor_item 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=19 alignment="0" tabsequence=32766 border="0" color="33554432" x="300" y="197" height="16" width="71" html.valueishtml="0" name=descr 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=19 alignment="0" tabsequence=32766 border="0" color="33554432" x="300" y="197" height="16" width="71" 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" )
text(band=detail alignment="1" text="Near Expiry:" border="2" color="0" x="111" y="236" height="16" width="105" html.valueishtml="0" name=near_expiry_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=8 alignment="0" tabsequence=32766 border="2" color="33554432" x="220" y="236" height="19" width="99" format="[general]" html.valueishtml="0" name=near_expiry 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="1" background.color="536870912" )
column(band=detail id=21 alignment="0" tabsequence=32766 border="2" color="33554432" x="682" y="416" height="16" width="70" html.valueishtml="0" name=revised_ptd visible="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=32766 border="2" color="33554432" x="680" y="440" height="16" width="72" html.valueishtml="0" name=revised_pts visible="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=32766 border="2" color="33554432" x="684" y="460" height="16" width="67" html.valueishtml="0" name=revised_ptr visible="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 )
......
$PBExportHeader$vhb_sales_quot_req_edit.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 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=65 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=1073 color="536870912" )
......@@ -33,7 +34,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(40) update=yes updatewhereclause=yes name=addr3 dbname="addr3" )
column=(type=char(10) update=yes updatewhereclause=yes name=site_code dbname="sales_quot_req.site_code" )
column=(type=char(1) update=yes updatewhereclause=yes name=mgmnt_apprv dbname="sales_quot_req.mgmnt_apprv" )
column=(type=char(40) updatewhereclause=yes name=spname dbname="itemser.descr" )
column=(type=char(40) updatewhereclause=yes name=descr dbname="itemser.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) TABLE(NAME=~"itemser~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~") COLUMN(NAME=~"itemser.descr~") JOIN (LEFT=~"sales_quot_req.item_ser~" OP =~"=~"RIGHT=~"itemser.item_ser~" OUTER1 =~"sales_quot_req.item_ser~" )WHERE( EXP1 =~"sales_quot_req.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
groupbox(band=detail text="Basic"border="2" color="0" x="9" y="21" height="165" width="854" name=gb_3 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="1073741824" )
groupbox(band=detail text="Basic"border="2" color="0" x="9" y="21" height="165" width="854" name=gb_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="1073741824" )
......@@ -57,8 +58,6 @@ text(band=detail alignment="1" text="Add Term:" border="2" color="0" x="79" y="5
column(band=detail id=20 alignment="0" tabsequence=32766 border="2" color="0" x="178" y="585" height="19" width="79" format="[general]" html.valueishtml="0" name=add_term visible="1" edit.limit=215 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="Change Term:" border="2" color="0" x="396" y="585" height="16" width="95" 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="536870912" )
column(band=detail id=23 alignment="0" tabsequence=32766 border="2" color="0" x="495" y="585" height="19" width="77" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=215 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=30 alignment="0" tabsequence=32766 border="2" color="0" x="491" y="116" height="16" width="41" 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" )
column(band=detail id=30 alignment="0" tabsequence=32766 border="2" color="0" x="492" y="166" height="16" width="57" format="[general]" html.valueishtml="0" name=spname 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" )
text(band=detail alignment="1" text="Request Date:" border="2" color="0" x="112" y="46" height="16" width="95" html.valueishtml="0" name=req_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="536870912" )
column(band=detail id=7 alignment="0" tabsequence=60 border="2" color="0" x="217" y="46" height="19" width="76" format="[shortdate] [time]" html.valueishtml="0" name=req_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" )
text(band=detail alignment="1" text="Valid Up To:" border="2" color="0" x="114" y="92" height="16" width="95" html.valueishtml="0" name=valid_upto_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" )
......@@ -94,6 +93,7 @@ column(band=detail id=5 alignment="0" tabsequence=40 border="2" color="0" x="436
text(band=detail alignment="1" text="Customer:" border="2" color="0" x="15" y="260" height="16" width="95" 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="536870912" )
column(band=detail id=4 alignment="0" tabsequence=20 border="2" color="0" x="120" y="260" height="19" width="66" format="[general]" html.valueishtml="0" name=cust_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.required=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=24 alignment="0" tabsequence=32766 border="2" color="0" x="201" y="260" height="19" width="100" format="[general]" html.valueishtml="0" name=cust_name visible="1" edit.limit=50 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=30 alignment="0" tabsequence=32766 border="2" color="0" x="571" y="94" height="16" width="84" html.valueishtml="0" name=descr 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 )
......
......@@ -19,6 +19,8 @@ import java.sql.*;
import java.text.DateFormat;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
......@@ -124,6 +126,11 @@ public class ReqForQuotationWiz extends ValidatorEJB{
int noOfChilds = 0;
ArrayList prdList = new ArrayList();
String paramValue="";
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
String errCode = "";
String errorType = "";
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
try
{
......@@ -180,8 +187,10 @@ public class ReqForQuotationWiz extends ValidatorEJB{
int custCodeCont = checkCustCodeRs.getInt("custCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationWiz custCode wfValData case 1 custCodeCont::[" + custCodeCont + "]");
if(custCodeCont<=0) {
errString = getErrorString("cust_code", "VTCUST1", userId);
break;
//errString = getErrorString("cust_code", "VTCUST1", userId);
errCode="VTCUST1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
......@@ -209,8 +218,10 @@ public class ReqForQuotationWiz extends ValidatorEJB{
int siteCodeCont = checkSiteCodeRs.getInt("siteCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationWiz siteCode wfValData case 1 siteCodeCont::[" + siteCodeCont + "]");
if(siteCodeCont<=0) {
errString = getErrorString("site_code", "VTSITCD1", userId);
break;
//errString = getErrorString("site_code", "VTSITCD1", userId);
errCode="VTSITCD1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
......@@ -249,8 +260,10 @@ public class ReqForQuotationWiz extends ValidatorEJB{
pstmt.close();
pstmt = null;
if (count == 0) {
errString = getErrorString("item_ser", "VTITEMSER1", userId);
break;
//errString = getErrorString("item_ser", "VTITEMSER1", userId);
errCode="VTITEMSER1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
......@@ -267,6 +280,21 @@ public class ReqForQuotationWiz extends ValidatorEJB{
rs = null;
}
}
if( childNodeName.equalsIgnoreCase("valid_upto") )
{
String validUptoStr = checkNull(genericUtility.getColumnValue("valid_upto", dom));
BaseLogger.log("3", null, null, "ReqForQuotationIC validUptoStr wfValData case 1 [" + validUptoStr + "]");
if(isDateInvalid(validUptoStr))
{
//errString = getErrorString("valid_upto", "VTINUPTO", userId);
errCode="VTINUPTO";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}//end of inner for loop
}//end of first for loop
......@@ -299,6 +327,11 @@ public class ReqForQuotationWiz extends ValidatorEJB{
childNodeName = childNode.getNodeName();
BaseLogger.log("3", null, null, "ReqForQuotationWiz childNodeName [" + childNodeName + "]");
if(childNodeName.trim().length()<=0) {
BaseLogger.log("3", null, null, "ReqForQuotationWiz detail 2 is blank");
}
if( childNodeName.equalsIgnoreCase("item_code") )
{
String itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
......@@ -311,11 +344,14 @@ public class ReqForQuotationWiz extends ValidatorEJB{
int itemCodeCont = checkItemCodeRs.getInt("itemCodeCount");
BaseLogger.log("3", null, null, "ReqForQuotationWiz itemCode wfValData case 1 itemCodeCont::[" + itemCodeCont + "]");
if(itemCodeCont<=0) {
errString = getErrorString("item_code", "STKVALITNE", userId);
break;
errCode="STKVALITNE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
//errString = getErrorString("item_code", "STKVALITNE", userId);
}
}
if(checkItemCodeRs != null)
{
checkItemCodeRs.close();
......@@ -329,6 +365,41 @@ public class ReqForQuotationWiz extends ValidatorEJB{
}
//Removed the validation from Quoted Quantity as it can be zero
/*
* if( childNodeName.equalsIgnoreCase("qty_quot") ) { int qty = 0; String
* quotQuantity = checkNull(genericUtility.getColumnValue("qty_quot", dom));
* BaseLogger.log("3", null, null,
* "ReqForQuotationWiz qty_quot wfValData case 2 [" + quotQuantity + "]");
* if(quotQuantity != null && quotQuantity.trim().length() > 0) { qty =
* Integer.parseInt(quotQuantity);
*
* }
*
* if(qty<=0) { errString = getErrorString("qty_quot", "NULNQUAN", userId);
* BaseLogger.log("3", null, null,
* "ReqForQuotationWiz in qty_quot < 0 errString:: [" + errString + "]"); break;
* } }
*/
if( childNodeName.equalsIgnoreCase("rate_quot") )
{
int quotedRate = 0;
String rateQuot = checkNull(genericUtility.getColumnValue("rate_quot", dom));
BaseLogger.log("3", null, null, "ReqForQuotationWiz rate_quot wfValData case 2 [" + rateQuot + "]");
if(rateQuot != null && rateQuot.trim().length() > 0)
{
quotedRate = Integer.parseInt(rateQuot);
}
if(quotedRate<=0) {
//errString = getErrorString("rate_quot", "NULNQRATE", userId);
errCode="NULNQRATE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", null, null, "ReqForQuotationWiz in qty_quot < 0 errString:: [" + errString + "]");
}
}
if( childNodeName.equalsIgnoreCase("ptr_flag") )
{
String ptrFlag = checkNull(genericUtility.getColumnValue("ptr_flag", dom));
......@@ -349,9 +420,11 @@ public class ReqForQuotationWiz extends ValidatorEJB{
|| (competitorItem == null || competitorItem.trim().isEmpty())
|| (competitorName == null || competitorName.trim().isEmpty())) {
BaseLogger.log("3", null, null, "ReqForQuotationWiz in competitor details null [" + ptrFlag + "]");
errString = getErrorString("ptr_flag", "COMPDETM", userId);
//errString = getErrorString("ptr_flag", "COMPDETM", userId);
errCode="COMPDETM";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", null, null, "ReqForQuotationWiz in competitor details null errString:: [" + errString + "]");
break;
}
}
......@@ -362,7 +435,42 @@ public class ReqForQuotationWiz extends ValidatorEJB{
break;
}
}//end of validation of first form
int errListSize = errList.size();
BaseLogger.log("3", getUserInfo(), null, "errListSize::::::::::"+errListSize);
int count = 0;
String errFldName = null;
if (errList != null && errListSize > 0)
{
for (count = 0; count < errListSize; count++)
{
errCode = errList.get(count);
errFldName = errFields.get(count);
BaseLogger.log("3", getUserInfo(), null, " testing :errCode .:" + errCode+"errString>>>>>>>>>"+errString);
errString = getErrorString(errFldName, errCode, userId);
errorType = errorType(conn, errCode);
if (errString.length() > 0)
{
String bifurErrString = errString.substring(errString.indexOf("<Errors>") + 8, errString.indexOf("<trace>"));
bifurErrString = bifurErrString + errString.substring(errString.indexOf("</trace>") + 8, errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString);
errString = "";
}
if (errorType.equalsIgnoreCase("E"))
{
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors> </Root> \r\n");
}//end of if for errList
else
{
errStringXml = new StringBuffer("");
}
errString = errStringXml.toString();
}//end of Try block wfvalData
catch(Exception e)
{
......@@ -464,7 +572,7 @@ public class ReqForQuotationWiz extends ValidatorEJB{
}
}
}//end of finally block of wfvalData
System.out.println("errString wfvalData ["+errString+"]");
System.out.println("errString wfvalData ReqForQuotationWiz:: ["+errString+"]");
return errString;
}//End WfValData
......@@ -935,20 +1043,22 @@ public class ReqForQuotationWiz extends ValidatorEJB{
valueXmlString.append( "<Detail"+ objContext+" domID='"+domId +"' objContext = '"+currentFormNo+"' objName=\"rfq_wiz\" selected=\"N\">\r\n" );
valueXmlString.append( "<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"tran_id:line_no\"/>\r\n" );
valueXmlString.append( "<tran_id/>" );
valueXmlString.append("<line_no protect = '1'><![CDATA[").append(lineNo).append("]]></line_no>");
valueXmlString.append("<line_no><![CDATA[").append(lineNo).append("]]></line_no>");
valueXmlString.append("<item_code><![CDATA[").append(itemCode).append("]]></item_code>");
valueXmlString.append("<rate_apprv protect = '1'>").append("<![CDATA["+MngmntAprvRate+"]]>").append("</rate_apprv>\r\n");
valueXmlString.append("<ptd protect = '1'>").append("<![CDATA["+ptd+"]]>").append("</ptd>\r\n");
valueXmlString.append("<pts protect = '1'>").append("<![CDATA["+pts+"]]>").append("</pts>\r\n");
valueXmlString.append("<ptr protect = '1'>").append("<![CDATA["+rate+"]]>").append("</ptr>\r\n");
valueXmlString.append("<rate_quot protect = '0'>").append("<![CDATA[]]>").append("</rate_quot>");
valueXmlString.append("<qty_quot protect = '0'>").append("<![CDATA[]]>").append("</qty_quot>");
valueXmlString.append("<competitor_rate protect = '0'>").append("<![CDATA[]]>").append("</competitor_rate>");
valueXmlString.append("<competitor_name protect = '0'>").append("<![CDATA[]]>").append("</competitor_name>");
valueXmlString.append("<competitor_item protect = '0'>").append("<![CDATA[]]>").append("</competitor_item>");
valueXmlString.append("<remarks protect = '0'>").append("<![CDATA[]]>").append("</remarks>");
valueXmlString.append("<spec_instr protect = '0'>").append("<![CDATA[]]>").append("</spec_instr>");
valueXmlString.append("<descr protect = '1'>").append("<![CDATA["+itemDescr+"]]>").append("</descr>");
valueXmlString.append("<rate_apprv>").append("<![CDATA["+MngmntAprvRate+"]]>").append("</rate_apprv>\r\n");
valueXmlString.append("<ptd>").append("<![CDATA["+ptd+"]]>").append("</ptd>\r\n");
valueXmlString.append("<pts>").append("<![CDATA["+pts+"]]>").append("</pts>\r\n");
valueXmlString.append("<ptr>").append("<![CDATA["+rate+"]]>").append("</ptr>\r\n");
valueXmlString.append("<rate_quot>").append("<![CDATA[]]>").append("</rate_quot>");
valueXmlString.append("<qty_quot>").append("<![CDATA[]]>").append("</qty_quot>");
valueXmlString.append("<competitor_rate>").append("<![CDATA[]]>").append("</competitor_rate>");
valueXmlString.append("<competitor_name>").append("<![CDATA[]]>").append("</competitor_name>");
valueXmlString.append("<competitor_item>").append("<![CDATA[]]>").append("</competitor_item>");
valueXmlString.append("<remarks>").append("<![CDATA[]]>").append("</remarks>");
valueXmlString.append("<pack_code>").append("<![CDATA[]]>").append("</pack_code>");
valueXmlString.append("<unit>").append("<![CDATA[]]>").append("</unit>");
valueXmlString.append("<spec_instr>").append("<![CDATA[]]>").append("</spec_instr>");
valueXmlString.append("<descr>").append("<![CDATA["+itemDescr+"]]>").append("</descr>");
valueXmlString.append("</Detail"+objContext+">");
}
......@@ -1111,7 +1221,27 @@ public class ReqForQuotationWiz extends ValidatorEJB{
return objName;
}
public static boolean isDateInvalid(String validUptoStr)
{
try
{
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yy");
LocalDate validDate = LocalDate.parse(validUptoStr, formatter);
LocalDate currentDate = LocalDate.now();
if(validDate.isBefore(currentDate))
{
return true;
}
}
catch(Exception e)
{
BaseLogger.log("3", null, null, "Exception in date validation [" + e + "]");
}
return false;
}
private String checkNull( String inputVal )
{
......@@ -1121,4 +1251,51 @@ public class ReqForQuotationWiz extends ValidatorEJB{
}
return inputVal;
}
private String errorType(Connection conn , String errorCode)
{
String msgType = "";
PreparedStatement pstmt = null ;
ResultSet rs = null;
try
{
String sql = "SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,errorCode);
rs = pstmt.executeQuery();
while(rs.next())
{
msgType = rs.getString("MSG_TYPE");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
catch(Exception ex)
{
ex.printStackTrace();
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
return msgType;
}
}
......@@ -457,7 +457,7 @@
<valueishtml>0</valueishtml>
</html>
<name>rate_apprv_t</name>
<visible>1</visible>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-12</height>
......@@ -695,6 +695,34 @@
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Transaction ID</text>
<border>0</border>
<color>33554432</color>
<x>1318</x>
<y>1</y>
<height>16</height>
<width>58</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>0</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>
......@@ -1037,7 +1065,7 @@
<valueishtml>0</valueishtml>
</html>
<name>rate_apprv</name>
<visible>1</visible>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
......@@ -1381,34 +1409,6 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Transaction ID</text>
<border>0</border>
<color>33554432</color>
<x>1318</x>
<y>1</y>
<height>16</height>
<width>58</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>tran_id_t</name>
<visible>0</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>
......
......@@ -519,7 +519,7 @@
<valueishtml>0</valueishtml>
</html>
<name>rate_apprv</name>
<visible>1</visible>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
......@@ -589,7 +589,7 @@
<valueishtml>0</valueishtml>
</html>
<name>rate_apprv_t</name>
<visible>1</visible>
<visible>0</visible>
<font>
<face>Arial</face>
<height>-10</height>
......
......@@ -34,7 +34,7 @@ text(band=header alignment="0" text="Special Rate" border="0" color="33554432" x
text(band=header alignment="0" text="Competitor Rate" border="0" color="33554432" x="471" y="1" height="19" width="58" html.valueishtml="0" name=competitor_rate_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Competitor Item" border="0" color="33554432" x="531" y="1" height="19" width="58" html.valueishtml="0" name=competitor_item_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Competitor Name" border="0" color="33554432" x="591" y="1" height="19" width="90" html.valueishtml="0" name=competitor_name_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Management Approved Rate" border="0" color="33554432" x="683" y="1" height="19" width="76" html.valueishtml="0" name=rate_apprv_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Management Approved Rate" border="0" color="33554432" x="683" y="1" height="19" width="76" html.valueishtml="0" name=rate_apprv_t visible="0" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Stockist" border="0" color="33554432" x="761" y="1" height="19" width="78" html.valueishtml="0" name=pts_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Distributor" border="0" color="33554432" x="841" y="1" height="19" width="84" html.valueishtml="0" name=ptd_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Price To Retailer" border="0" color="33554432" x="927" y="1" height="19" width="83" html.valueishtml="0" name=ptr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
......@@ -43,6 +43,7 @@ text(band=header alignment="0" text="Special Instruction" border="0" color="3355
text(band=header alignment="0" text="Ptr Flag" border="0" color="33554432" x="1223" y="1" height="19" width="55" html.valueishtml="0" name=ptr_flag_t visible="0" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Near Expiry" border="0" color="33554432" x="1280" y="1" height="19" width="36" html.valueishtml="0" name=near_expiry_t visible="0" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Line No" border="0" color="33554432" x="1173" y="1" height="16" width="48" 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="1" background.color="536870912" )
text(band=header alignment="0" text="Transaction ID" border="0" color="33554432" x="1318" y="1" height="16" width="58" html.valueishtml="0" name=tran_id_t visible="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=1 alignment="0" tabsequence=32766 border="2" color="33554432" x="2" y="2" height="19" width="69" 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=2 alignment="0" tabsequence=32766 border="0" color="33554432" x="73" y="1" height="16" width="165" 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" )
column(band=detail id=3 alignment="0" tabsequence=10 border="0" color="33554432" x="240" y="1" height="16" width="58" format="[general]" html.valueishtml="0" name=pack_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" )
......@@ -52,7 +53,7 @@ column(band=detail id=6 alignment="0" tabsequence=40 border="0" color="33554432"
column(band=detail id=7 alignment="0" tabsequence=50 border="0" color="33554432" x="471" y="1" height="16" width="58" format="[general]" html.valueishtml="0" name=competitor_rate 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=8 alignment="0" tabsequence=60 border="0" color="33554432" x="531" y="1" height="16" width="58" format="[general]" html.valueishtml="0" name=competitor_item 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=9 alignment="0" tabsequence=70 border="0" color="33554432" x="591" y="1" height="16" width="90" format="[general]" html.valueishtml="0" name=competitor_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=10 alignment="0" tabsequence=32766 border="0" color="33554432" x="683" y="1" height="16" width="76" format="[general]" html.valueishtml="0" name=rate_apprv 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=32766 border="0" color="33554432" x="683" y="1" height="16" width="76" format="[general]" html.valueishtml="0" name=rate_apprv 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="1" background.color="536870912" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="0" color="33554432" x="761" y="1" height="16" width="78" format="[general]" html.valueishtml="0" name=pts 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=12 alignment="0" tabsequence=32766 border="0" color="33554432" x="841" y="1" height="16" width="84" format="[general]" html.valueishtml="0" name=ptd 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=13 alignment="0" tabsequence=32766 border="0" color="33554432" x="927" y="1" height="16" width="83" format="[general]" html.valueishtml="0" name=ptr 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" )
......@@ -62,7 +63,6 @@ column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="33554
column(band=detail id=17 alignment="0" tabsequence=32766 border="0" color="33554432" x="1280" y="1" height="16" width="36" format="[general]" html.valueishtml="0" name=near_expiry 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="1" background.color="536870912" )
column(band=detail id=18 alignment="0" tabsequence=32766 border="0" color="33554432" x="1173" y="1" height="16" width="48" format="[general]" html.valueishtml="0" name=line_no 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=19 alignment="0" tabsequence=32766 border="0" color="33554432" x="1318" y="1" height="16" width="58" format="[general]" html.valueishtml="0" name=tran_id 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="1" background.color="536870912" )
text(band=header alignment="0" text="Transaction ID" border="0" color="33554432" x="1318" y="1" height="16" width="58" html.valueishtml="0" name=tran_id_t visible="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 )
......
......@@ -36,9 +36,9 @@ text(band=detail alignment="1" text="Special Rate:" border="2" color="0" x="427"
column(band=detail id=7 alignment="0" tabsequence=50 border="2" color="0" x="531" y="288" height="16" width="64" format="[general]" html.valueishtml="0" name=rate_quot 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" )
text(band=detail alignment="1" text="Pack Code:" border="2" color="0" x="204" y="312" height="16" width="99" html.valueishtml="0" name=pack_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="536870912" )
column(band=detail id=6 alignment="0" tabsequence=40 border="2" color="0" x="308" y="312" height="16" width="60" format="[general]" html.valueishtml="0" name=pack_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=12 alignment="0" tabsequence=32766 border="2" color="0" x="308" y="446" height="16" width="65" format="[general]" html.valueishtml="0" name=rate_apprv 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=12 alignment="0" tabsequence=32766 border="2" color="0" x="308" y="446" height="16" width="65" format="[general]" html.valueishtml="0" name=rate_apprv 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="1" background.color="536870912" )
column(band=detail id=16 alignment="0" tabsequence=32766 border="2" color="0" x="574" y="446" height="16" width="28" format="[general]" html.valueishtml="0" name=ptr 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" )
text(band=detail alignment="1" text="Management Approval Rate:" border="2" color="0" x="137" y="447" height="16" width="163" html.valueishtml="0" name=rate_apprv_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" )
text(band=detail alignment="1" text="Management Approval Rate:" border="2" color="0" x="137" y="447" height="16" width="163" html.valueishtml="0" name=rate_apprv_t visible="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="Price To Retailer (PTR):" border="2" color="0" x="414" y="447" height="16" width="152" 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="536870912" )
column(band=detail id=11 alignment="0" tabsequence=80 border="2" color="0" x="288" y="559" height="16" width="128" format="[general]" html.valueishtml="0" name=competitor_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" )
text(band=detail alignment="1" text="Competitor Name:" border="2" color="0" x="161" y="559" height="16" width="116" html.valueishtml="0" name=competitor_name_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" )
......
$PBExportHeader$salesquot13.srd
$PBExportHeader$salesquot23.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 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=20 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=23 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=quot_no dbname="quot_stockist.quot_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="quot_stockist.line_no" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="quot_stockist.cust_code" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code__stk dbname="quot_stockist.cust_code__stk" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code__dist dbname="quot_stockist.cust_code__dist" )
column=(type=char(50) updatewhereclause=yes name=stockist_name dbname="stockist_name" )
column=(type=char(20) updatewhereclause=yes name=city_name dbname="city_name" )
column=(type=char(50) updatewhereclause=yes name=distributor_name dbname="distributor_name" )
column=(type=char(5) updatewhereclause=yes name=site_code dbname="site_code" )
column=(type=char(50) updatewhereclause=yes name=hospital_name dbname="hospital_name" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"quot_stockist~" ) COLUMN(NAME=~"quot_stockist.quot_no~") COLUMN(NAME=~"quot_stockist.line_no~") COLUMN(NAME=~"quot_stockist.cust_code~") COLUMN(NAME=~"quot_stockist.cust_code__stk~") COLUMN(NAME=~"quot_stockist.cust_code__dist~") COMPUTE(NAME=~"(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__STK) as stockist_name~") COMPUTE(NAME=~"(select city from customer where cust_code = quot_stockist.CUST_CODE) as city_name~") COMPUTE(NAME=~"(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__DIST) as distributor_name~") COMPUTE(NAME=~"(select SITE_CODE__PBUS from customer where cust_code = quot_stockist.CUST_CODE__DIST) as site_code~") COMPUTE(NAME=~"(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as hospital_name~")WHERE( EXP1 =~"quot_stockist.quot_no~" OP =~"=~" EXP2 =~":quot_no~" ) ) ARG(NAME = ~"quot_no~" TYPE = string) " update="quot_stockist" updatewhere=0 updatekeyinplace=no arguments=(("quot_no", string)) )
text(band=header alignment="2" text="Quote No" border="2" color="0" x="2" y="2" height="16" width="72" html.valueishtml="0" name=quot_no_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" )
text(band=header alignment="2" text="Line No" border="2" color="0" x="76" y="2" height="16" width="72" 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="1" background.color="536870912" )
text(band=header alignment="2" text="Customer" border="2" color="0" x="150" y="2" height="16" width="63" 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="536870912" )
text(band=header alignment="2" text="Stockist" border="2" color="0" x="215" y="2" height="16" width="77" html.valueishtml="0" name=cust_code__stk_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" )
text(band=header alignment="2" text="Distributor" border="2" color="0" x="294" y="2" height="16" width="80" html.valueishtml="0" name=cust_code__dist_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" )
text(band=header alignment="0" text="Distributor Name" border="0" color="33554432" x="376" y="1" height="19" width="211" html.valueishtml="0" name=distributor_name_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Stockist Name" border="0" color="33554432" x="589" y="1" height="19" width="195" html.valueishtml="0" name=stockist_name_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Site" border="0" color="33554432" x="786" y="1" height="19" width="75" html.valueishtml="0" name=site_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Hospital Name" border="0" color="33554432" x="863" y="1" height="19" width="169" html.valueishtml="0" name=hospital_name_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="City Name" border="0" color="33554432" x="1034" y="1" height="19" width="130" html.valueishtml="0" name=city_name_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="2" color="33554432" x="2" y="2" height="19" width="72" format="[general]" html.valueishtml="0" name=quot_no 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=32766 border="2" color="33554432" x="76" y="2" height="19" width="72" 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="0" tabsequence=32766 border="2" color="33554432" x="150" y="2" height="19" width="63" 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=4 alignment="0" tabsequence=32766 border="2" color="33554432" x="215" y="2" height="19" width="77" format="[general]" html.valueishtml="0" name=cust_code__stk 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=32766 border="2" color="33554432" x="294" y="2" height="19" width="80" format="[general]" html.valueishtml="0" name=cust_code__dist 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=32766 border="0" color="33554432" x="376" y="1" height="16" width="211" format="[general]" html.valueishtml="0" name=distributor_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=6 alignment="0" tabsequence=32766 border="0" color="33554432" x="589" y="1" height="16" width="195" format="[general]" html.valueishtml="0" name=stockist_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=9 alignment="0" tabsequence=32766 border="0" color="33554432" x="786" y="1" height="16" width="75" format="[general]" html.valueishtml="0" name=site_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=10 alignment="0" tabsequence=32766 border="0" color="33554432" x="863" y="1" height="16" width="169" format="[general]" html.valueishtml="0" name=hospital_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=7 alignment="0" tabsequence=32766 border="0" color="33554432" x="1034" y="1" height="16" width="130" format="[general]" html.valueishtml="0" name=city_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" )
datawindow(units=1 timer_interval=0 color=1073741824 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=2 color="536870912" )
footer(height=1 color="536870912" )
detail(height=489 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=quot_no dbname="sales_quot_stockist.quot_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="sales_quot_stockist.line_no" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="sales_quot_stockist.cust_code" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code__stk dbname="sales_quot_stockist.cust_code__stk" )
column=(type=char(10) updatewhereclause=yes name=sales_quot_quot_no dbname="sales_quot.quot_no" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code__dist dbname="sales_quot_stockist.cust_code__dist" )
column=(type=char(20) updatewhereclause=yes name=customer_city dbname="customer.city" )
column=(type=char(50) updatewhereclause=yes name=cust_name dbname="customer.cust_name" )
column=(type=char(50) updatewhereclause=yes name=stockist_name dbname="customer.cust_name" )
column=(type=char(50) updatewhereclause=yes name=distributor_name dbname="customer.cust_name" )
column=(type=char(5) updatewhereclause=yes name=site_code__pbus dbname="customer.site_code__pbus" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_stockist~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_a~" ) TABLE(NAME=~"sales_quot~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_b~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_c~" ) COLUMN(NAME=~"sales_quot_stockist.quot_no~") COLUMN(NAME=~"sales_quot_stockist.line_no~") COLUMN(NAME=~"sales_quot_stockist.cust_code~") COLUMN(NAME=~"sales_quot_stockist.cust_code__stk~") COLUMN(NAME=~"sales_quot.quot_no~") COLUMN(NAME=~"sales_quot_stockist.cust_code__dist~") COLUMN(NAME=~"customer_a.city~") COLUMN(NAME=~"customer_a.cust_name~") COLUMN(NAME=~"customer_b.cust_name~") COLUMN(NAME=~"customer_c.cust_name~") COLUMN(NAME=~"customer_c.site_code__pbus~") JOIN (LEFT=~"sales_quot_stockist.cust_code~" OP =~"=~"RIGHT=~"customer_a.cust_code~" ) JOIN (LEFT=~"sales_quot.quot_no~" OP =~"=~"RIGHT=~"sales_quot_stockist.quot_no~" ) JOIN (LEFT=~"sales_quot_stockist.cust_code__stk~" OP =~"=~"RIGHT=~"customer_b.cust_code~" ) JOIN (LEFT=~"sales_quot_stockist.cust_code__dist~" OP =~"=~"RIGHT=~"customer_c.cust_code~" )WHERE( EXP1 =~"sales_quot_stockist.quot_no~" OP =~"=~" EXP2 =~":quot_no~" ) ) ARG(NAME = ~"quot_no~" TYPE = string) " update="sales_quot_stockist" updatewhere=0 updatekeyinplace=no arguments=(("quot_no", string)) )
groupbox(band=detail text="General "border="2" color="0" x="219" y="39" height="350" width="346" name=gb_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="1073741824" )
text(band=detail alignment="1" text="Quotation No.:" border="2" color="0" x="259" y="60" height="16" width="113" html.valueishtml="0" name=quot_no_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="2" color="33554432" x="398" y="60" height="16" width="60" format="[general]" html.valueishtml="0" name=quot_no 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" )
text(band=detail alignment="1" text="Line No:" border="2" color="0" x="259" y="92" height="16" width="96" 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="1" background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="2" color="33554432" x="392" y="92" height="16" width="61" format="[general]" html.valueishtml="0" name=line_no 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" )
text(band=detail alignment="1" text="Customer:" border="2" color="0" x="261" y="130" height="16" width="96" 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="536870912" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="2" color="33554432" x="394" y="130" height="16" width="60" format="[general]" html.valueishtml="0" name=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" )
text(band=detail alignment="1" text="Distributor:" border="2" color="0" x="263" y="283" height="16" width="77" html.valueishtml="0" name=cust_code__dist_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=6 alignment="0" tabsequence=32766 border="2" color="33554432" x="380" y="283" height="16" width="108" format="[general]" html.valueishtml="0" name=cust_code__dist 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" )
text(band=detail alignment="1" text="Stockist:" border="2" color="0" x="264" y="227" height="16" width="65" html.valueishtml="0" name=cust_code__stk_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=4 alignment="0" tabsequence=10 border="2" color="33554432" x="376" y="227" height="16" width="102" format="[general]" html.valueishtml="0" name=cust_code__stk 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=32766 border="2" color="33554432" x="386" y="192" height="16" width="120" format="[general]" html.valueishtml="0" name=customer_city 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=8 alignment="0" tabsequence=32766 border="2" color="33554432" x="386" y="156" height="16" width="140" 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="1" background.color="536870912" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="2" color="33554432" x="373" y="251" height="16" width="152" format="[general]" html.valueishtml="0" name=stockist_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=10 alignment="0" tabsequence=32766 border="2" color="33554432" x="372" y="309" height="16" width="154" format="[general]" html.valueishtml="0" name=distributor_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" )
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 )
......
......@@ -32,7 +32,7 @@
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<height>22</height>
<color>536870912</color>
</Header>
<Summary>
......@@ -54,7 +54,7 @@
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>quot_no</name>
<dbname>quot_stockist.quot_no</dbname>
<dbname>sales_quot_stockist.quot_no</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
......@@ -62,62 +62,68 @@
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>line_no</name>
<dbname>quot_stockist.line_no</dbname>
<dbname>sales_quot_stockist.line_no</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code</name>
<dbname>quot_stockist.cust_code</dbname>
<dbname>sales_quot_stockist.cust_code</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code__stk</name>
<dbname>quot_stockist.cust_code__stk</dbname>
<dbname>sales_quot_stockist.cust_code__stk</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code__dist</name>
<dbname>quot_stockist.cust_code__dist</dbname>
<dbname>sales_quot_stockist.cust_code__dist</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>stockist_name</name>
<dbname>stockist_name</dbname>
<name>cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>city_name</name>
<dbname>city_name</dbname>
<name>customer_city</name>
<dbname>customer.city</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>distributor_name</name>
<dbname>distributor_name</dbname>
<name>sales_quot_quot_no</name>
<dbname>sales_quot.quot_no</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
<name>stockist_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>hospital_name</name>
<dbname>hospital_name</dbname>
<name>distributor_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;quot_stockist&quot; ) COLUMN(NAME=&quot;quot_stockist.quot_no&quot;) COLUMN(NAME=&quot;quot_stockist.line_no&quot;) COLUMN(NAME=&quot;quot_stockist.cust_code&quot;) COLUMN(NAME=&quot;quot_stockist.cust_code__stk&quot;) COLUMN(NAME=&quot;quot_stockist.cust_code__dist&quot;) COMPUTE(NAME=&quot;(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__STK) as stockist_name&quot;) COMPUTE(NAME=&quot;(select city from customer where cust_code = quot_stockist.CUST_CODE) as city_name&quot;) COMPUTE(NAME=&quot;(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__DIST) as distributor_name&quot;) COMPUTE(NAME=&quot;(select SITE_CODE__PBUS from customer where cust_code = quot_stockist.CUST_CODE__DIST) as site_code&quot;) COMPUTE(NAME=&quot;(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as hospital_name&quot;)WHERE( EXP1 =&quot;quot_stockist.quot_no&quot; OP =&quot;=&quot; EXP2 =&quot;:quot_no&quot; ) ) ARG(NAME = &quot;quot_no&quot; TYPE = string) </retrieve>
<update>quot_stockist</update>
<updatewhere>0</updatewhere>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code__pbus</name>
<dbname>customer.site_code__pbus</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_stockist&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;sales_quot&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_c&quot; ) COLUMN(NAME=&quot;sales_quot_stockist.quot_no&quot;) COLUMN(NAME=&quot;sales_quot_stockist.line_no&quot;) COLUMN(NAME=&quot;sales_quot_stockist.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_stockist.cust_code__stk&quot;) COLUMN(NAME=&quot;sales_quot_stockist.cust_code__dist&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;customer_a.city&quot;) COLUMN(NAME=&quot;sales_quot.quot_no&quot;) COLUMN(NAME=&quot;customer_c.cust_name&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;customer_c.site_code__pbus&quot;) JOIN (LEFT=&quot;sales_quot_stockist.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer_a.cust_code&quot; ) JOIN (LEFT=&quot;sales_quot_stockist.quot_no&quot; OP =&quot;=&quot;RIGHT=&quot;sales_quot.quot_no&quot; ) JOIN (LEFT=&quot;sales_quot_stockist.cust_code__stk&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; ) JOIN (LEFT=&quot;sales_quot_stockist.cust_code__dist&quot; OP =&quot;=&quot;RIGHT=&quot;customer_c.cust_code&quot; )WHERE( EXP1 =&quot;sales_quot_stockist.quot_no&quot; OP =&quot;=&quot; EXP2 =&quot;:quot_no&quot; ) ) ARG(NAME = &quot;quot_no&quot; TYPE = string) </retrieve>
<update>sales_quot_stockist</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>quot_no</name>
......@@ -126,14 +132,14 @@
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Quote No</text>
<border>2</border>
<color>0</color>
<alignment>0</alignment>
<text>Quotation No.</text>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>72</width>
<y>1</y>
<height>19</height>
<width>113</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -141,27 +147,27 @@
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Line No</text>
<border>2</border>
<color>0</color>
<x>76</x>
<y>2</y>
<height>16</height>
<width>72</width>
<alignment>0</alignment>
<text>Line No.</text>
<border>0</border>
<color>33554432</color>
<x>117</x>
<y>1</y>
<height>19</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -169,115 +175,31 @@
<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>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Customer</text>
<border>2</border>
<color>0</color>
<x>150</x>
<y>2</y>
<height>16</height>
<width>63</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code_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>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Stockist</text>
<border>2</border>
<color>0</color>
<x>215</x>
<y>2</y>
<height>16</height>
<width>77</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__stk_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>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Distributor</text>
<border>2</border>
<color>0</color>
<x>294</x>
<y>2</y>
<height>16</height>
<width>80</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dist_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Distributor Name</text>
<text>Customer</text>
<border>0</border>
<color>33554432</color>
<x>376</x>
<x>208</x>
<y>1</y>
<height>19</height>
<width>211</width>
<width>84</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>distributor_name_t</name>
<name>cust_code_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -295,17 +217,17 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Stockist Name</text>
<text>Stockist</text>
<border>0</border>
<color>33554432</color>
<x>589</x>
<x>294</x>
<y>1</y>
<height>19</height>
<width>195</width>
<width>68</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stockist_name_t</name>
<name>cust_code__stk_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -323,17 +245,17 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Site</text>
<text>Distributor</text>
<border>0</border>
<color>33554432</color>
<x>786</x>
<x>364</x>
<y>1</y>
<height>19</height>
<width>75</width>
<width>178</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code_t</name>
<name>cust_code__dist_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -351,17 +273,17 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Hospital Name</text>
<text>Customer Name</text>
<border>0</border>
<color>33554432</color>
<x>863</x>
<x>544</x>
<y>1</y>
<height>19</height>
<width>169</width>
<width>161</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hospital_name_t</name>
<name>cust_name_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -379,17 +301,17 @@
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>City Name</text>
<text>City</text>
<border>0</border>
<color>33554432</color>
<x>1034</x>
<x>707</x>
<y>1</y>
<height>19</height>
<width>130</width>
<width>115</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>city_name_t</name>
<name>city_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
......@@ -409,12 +331,12 @@
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<border>0</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<y>1</y>
<height>19</height>
<width>72</width>
<width>113</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -422,37 +344,35 @@
<name>quot_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<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>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>1</alignment>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<border>0</border>
<color>33554432</color>
<x>76</x>
<y>2</y>
<x>117</x>
<y>1</y>
<height>19</height>
<width>72</width>
<width>89</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -462,22 +382,20 @@
<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>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -485,12 +403,12 @@
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<border>0</border>
<color>33554432</color>
<x>150</x>
<y>2</y>
<x>208</x>
<y>1</y>
<height>19</height>
<width>63</width>
<width>84</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -498,24 +416,22 @@
<name>cust_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<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>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -523,12 +439,12 @@
<id>4</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<border>0</border>
<color>33554432</color>
<x>215</x>
<y>2</y>
<x>294</x>
<y>1</y>
<height>19</height>
<width>77</width>
<width>68</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -536,24 +452,22 @@
<name>cust_code__stk</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<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>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -561,55 +475,17 @@
<id>5</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>294</x>
<y>2</y>
<height>19</height>
<width>80</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dist</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>
<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>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>376</x>
<x>364</x>
<y>1</y>
<height>16</height>
<width>211</width>
<height>19</height>
<width>178</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>distributor_name</name>
<name>cust_code__dist</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -619,15 +495,15 @@
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -637,87 +513,15 @@
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>589</x>
<y>1</y>
<height>16</height>
<width>195</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stockist_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>
<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>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>786</x>
<x>544</x>
<y>1</y>
<height>16</height>
<width>75</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</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>
<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>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>863</x>
<y>1</y>
<height>16</height>
<width>169</width>
<height>19</height>
<width>161</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hospital_name</name>
<name>cust_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -727,15 +531,15 @@
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
......@@ -745,15 +549,15 @@
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>1034</x>
<x>707</x>
<y>1</y>
<height>16</height>
<width>130</width>
<height>19</height>
<width>115</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>city_name</name>
<name>customer_city</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -763,15 +567,15 @@
</EditStyle>
<font>
<face>Arial</face>
<height>-10</height>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1073741824</color>
</background>
</ColumnObject>
<HtmlTable>
......
......@@ -4,36 +4,33 @@ datawindow(units=1 timer_interval=0 color=1073741824 processing=0 HTMLDW=no prin
summary(height=2 color="536870912" )
footer(height=1 color="536870912" )
detail(height=489 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes name=cust_code__dist dbname="quot_stockist.cust_code__dist" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code__stk dbname="quot_stockist.cust_code__stk" )
column=(type=char(10) update=yes updatewhereclause=yes key=yes name=quot_no dbname="quot_stockist.quot_no" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="quot_stockist.cust_code" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="quot_stockist.line_no" )
column=(type=char(50) updatewhereclause=yes name=distributor_name dbname="distributor_name" )
column=(type=char(50) updatewhereclause=yes name=stockist_name dbname="stockist_name" )
column=(type=char(20) updatewhereclause=yes name=city_name dbname="city_name" )
column=(type=char(5) updatewhereclause=yes name=site_code dbname="site_code" )
column=(type=char(50) updatewhereclause=yes name=hospital_name dbname="hospital_name" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="cust_code" )
column=(type=char(50) updatewhereclause=yes name=cust_code_desc dbname="cust_code_desc" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"quot_stockist~" ) COLUMN(NAME=~"quot_stockist.cust_code__dist~") COLUMN(NAME=~"quot_stockist.cust_code__stk~") COLUMN(NAME=~"quot_stockist.quot_no~") COLUMN(NAME=~"quot_stockist.cust_code~") COLUMN(NAME=~"quot_stockist.line_no~") COMPUTE(NAME=~"(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__DIST) as distributor_name~") COMPUTE(NAME=~"(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__STK) as stockist_name~") COMPUTE(NAME=~"(select city from customer where cust_code = quot_stockist.CUST_CODE) as city_name~") COMPUTE(NAME=~"(select SITE_CODE__PBUS from customer where cust_code = quot_stockist.CUST_CODE__DIST) as site_code~") COMPUTE(NAME=~"(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as hospital_name~") COMPUTE(NAME=~"(select cust_code from customer where cust_code = quot_stockist.CUST_CODE) as cust_code~") COMPUTE(NAME=~"(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as cust_code_desc~")) " update="quot_stockist" updatewhere=0 updatekeyinplace=no )
groupbox(band=detail text="General "border="2" color="0" x="211" y="41" height="337" width="346" name=gb_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="1073741824" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=quot_no dbname="sales_quot_stockist.quot_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="sales_quot_stockist.line_no" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code dbname="sales_quot_stockist.cust_code" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code__stk dbname="sales_quot_stockist.cust_code__stk" )
column=(type=char(10) updatewhereclause=yes name=sales_quot_quot_no dbname="sales_quot.quot_no" )
column=(type=char(10) update=yes updatewhereclause=yes name=cust_code__dist dbname="sales_quot_stockist.cust_code__dist" )
column=(type=char(20) updatewhereclause=yes name=customer_city dbname="customer.city" )
column=(type=char(50) updatewhereclause=yes name=cust_name dbname="customer.cust_name" )
column=(type=char(50) updatewhereclause=yes name=stockist_name dbname="customer.cust_name" )
column=(type=char(50) updatewhereclause=yes name=distributor_name dbname="customer.cust_name" )
column=(type=char(5) updatewhereclause=yes name=site_code__pbus dbname="customer.site_code__pbus" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_stockist~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_a~" ) TABLE(NAME=~"sales_quot~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_b~" ) TABLE(NAME=~"customer~" ALIAS=~"customer_c~" ) COLUMN(NAME=~"sales_quot_stockist.quot_no~") COLUMN(NAME=~"sales_quot_stockist.line_no~") COLUMN(NAME=~"sales_quot_stockist.cust_code~") COLUMN(NAME=~"sales_quot_stockist.cust_code__stk~") COLUMN(NAME=~"sales_quot.quot_no~") COLUMN(NAME=~"sales_quot_stockist.cust_code__dist~") COLUMN(NAME=~"customer_a.city~") COLUMN(NAME=~"customer_a.cust_name~") COLUMN(NAME=~"customer_b.cust_name~") COLUMN(NAME=~"customer_c.cust_name~") COLUMN(NAME=~"customer_c.site_code__pbus~") JOIN (LEFT=~"sales_quot_stockist.cust_code~" OP =~"=~"RIGHT=~"customer_a.cust_code~" ) JOIN (LEFT=~"sales_quot.quot_no~" OP =~"=~"RIGHT=~"sales_quot_stockist.quot_no~" ) JOIN (LEFT=~"sales_quot_stockist.cust_code__stk~" OP =~"=~"RIGHT=~"customer_b.cust_code~" ) JOIN (LEFT=~"sales_quot_stockist.cust_code__dist~" OP =~"=~"RIGHT=~"customer_c.cust_code~" )WHERE( EXP1 =~"sales_quot_stockist.quot_no~" OP =~"=~" EXP2 =~":quot_no~" ) ) ARG(NAME = ~"quot_no~" TYPE = string) " update="sales_quot_stockist" updatewhere=0 updatekeyinplace=no arguments=(("quot_no", string)) )
groupbox(band=detail text="General "border="2" color="0" x="219" y="39" height="350" width="346" name=gb_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="1073741824" )
text(band=detail alignment="1" text="Quotation No.:" border="2" color="0" x="259" y="60" height="16" width="113" html.valueishtml="0" name=quot_no_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=3 alignment="0" tabsequence=32766 border="2" color="33554432" x="395" y="60" height="19" width="66" format="[general]" html.valueishtml="0" name=quot_no 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=1 alignment="0" tabsequence=32766 border="2" color="33554432" x="398" y="60" height="16" width="60" format="[general]" html.valueishtml="0" name=quot_no 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" )
text(band=detail alignment="1" text="Line No:" border="2" color="0" x="259" y="92" height="16" width="96" 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="1" background.color="536870912" )
column(band=detail id=5 alignment="1" tabsequence=32766 border="2" color="33554432" x="398" y="92" height="19" width="72" 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=2 alignment="0" tabsequence=32766 border="2" color="33554432" x="392" y="92" height="16" width="61" format="[general]" html.valueishtml="0" name=line_no 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" )
text(band=detail alignment="1" text="Customer:" border="2" color="0" x="261" y="130" height="16" width="96" 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="536870912" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="2" color="33554432" x="402" y="130" height="16" width="60" format="[general]" html.valueishtml="0" name=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=12 alignment="0" tabsequence=32766 border="2" color="33554432" x="366" y="163" height="16" width="108" html.valueishtml="0" name=cust_code_desc 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=7 alignment="0" tabsequence=32766 border="2" color="33554432" x="269" y="274" height="17" width="104" format="[general]" html.valueishtml="0" name=stockist_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=8 alignment="0" tabsequence=32766 border="2" color="33554432" x="265" y="202" height="17" width="88" format="[general]" html.valueishtml="0" name=city_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=10 alignment="0" tabsequence=32766 border="2" color="33554432" x="399" y="202" height="19" width="92" format="[general]" html.valueishtml="0" name=hospital_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" )
text(band=detail alignment="1" text="Stockist:" border="2" color="0" x="267" y="240" height="16" width="65" html.valueishtml="0" name=cust_code__stk_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=10 border="2" color="33554432" x="401" y="240" height="19" width="66" format="[general]" html.valueishtml="0" name=cust_code__stk 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" )
text(band=detail alignment="1" text="Distributor:" border="2" color="0" x="267" y="307" height="16" width="77" html.valueishtml="0" name=cust_code__dist_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="2" color="33554432" x="407" y="307" height="19" width="66" format="[general]" html.valueishtml="0" name=cust_code__dist 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=6 alignment="0" tabsequence=32766 border="2" color="33554432" x="396" y="344" height="21" width="115" format="[general]" html.valueishtml="0" name=distributor_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=9 alignment="0" tabsequence=32766 border="2" color="33554432" x="267" y="344" height="17" width="110" format="[general]" html.valueishtml="0" name=site_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=3 alignment="0" tabsequence=32766 border="2" color="33554432" x="394" y="130" height="16" width="60" format="[general]" html.valueishtml="0" name=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" )
text(band=detail alignment="1" text="Distributor:" border="2" color="0" x="263" y="283" height="16" width="77" html.valueishtml="0" name=cust_code__dist_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=6 alignment="0" tabsequence=32766 border="2" color="33554432" x="380" y="283" height="16" width="108" format="[general]" html.valueishtml="0" name=cust_code__dist 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" )
text(band=detail alignment="1" text="Stockist:" border="2" color="0" x="264" y="227" height="16" width="65" html.valueishtml="0" name=cust_code__stk_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=4 alignment="0" tabsequence=10 border="2" color="33554432" x="376" y="227" height="16" width="102" format="[general]" html.valueishtml="0" name=cust_code__stk 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=32766 border="2" color="33554432" x="386" y="192" height="16" width="120" format="[general]" html.valueishtml="0" name=customer_city 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=8 alignment="0" tabsequence=32766 border="2" color="33554432" x="386" y="156" height="16" width="140" 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="1" background.color="536870912" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="2" color="33554432" x="373" y="251" height="16" width="152" format="[general]" html.valueishtml="0" name=stockist_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=10 alignment="0" tabsequence=32766 border="2" color="33554432" x="372" y="309" height="16" width="154" format="[general]" html.valueishtml="0" name=distributor_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" )
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 )
......
......@@ -47,95 +47,92 @@
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code__dist</name>
<dbname>quot_stockist.cust_code__dist</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code__stk</name>
<dbname>quot_stockist.cust_code__stk</dbname>
<key>yes</key>
<name>quot_no</name>
<dbname>sales_quot_stockist.quot_no</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<type precision="0">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>quot_no</name>
<dbname>quot_stockist.quot_no</dbname>
<name>line_no</name>
<dbname>sales_quot_stockist.line_no</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code</name>
<dbname>quot_stockist.cust_code</dbname>
<dbname>sales_quot_stockist.cust_code</dbname>
</table_column>
<table_column>
<type precision="0">decimal</type>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>line_no</name>
<dbname>quot_stockist.line_no</dbname>
<name>cust_code__stk</name>
<dbname>sales_quot_stockist.cust_code__stk</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>distributor_name</name>
<dbname>distributor_name</dbname>
<name>sales_quot_quot_no</name>
<dbname>sales_quot.quot_no</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>stockist_name</name>
<dbname>stockist_name</dbname>
<name>cust_code__dist</name>
<dbname>sales_quot_stockist.cust_code__dist</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>city_name</name>
<dbname>city_name</dbname>
<name>customer_city</name>
<dbname>customer.city</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code</name>
<dbname>site_code</dbname>
<name>cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>hospital_name</name>
<dbname>hospital_name</dbname>
<name>stockist_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code</name>
<dbname>cust_code</dbname>
<name>distributor_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code_desc</name>
<dbname>cust_code_desc</dbname>
<name>site_code__pbus</name>
<dbname>customer.site_code__pbus</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;quot_stockist&quot; ) COLUMN(NAME=&quot;quot_stockist.cust_code__dist&quot;) COLUMN(NAME=&quot;quot_stockist.cust_code__stk&quot;) COLUMN(NAME=&quot;quot_stockist.quot_no&quot;) COLUMN(NAME=&quot;quot_stockist.cust_code&quot;) COLUMN(NAME=&quot;quot_stockist.line_no&quot;) COMPUTE(NAME=&quot;(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__DIST) as distributor_name&quot;) COMPUTE(NAME=&quot;(select cust_name from customer where cust_code = quot_stockist.CUST_CODE__STK) as stockist_name&quot;) COMPUTE(NAME=&quot;(select city from customer where cust_code = quot_stockist.CUST_CODE) as city_name&quot;) COMPUTE(NAME=&quot;(select SITE_CODE__PBUS from customer where cust_code = quot_stockist.CUST_CODE__DIST) as site_code&quot;) COMPUTE(NAME=&quot;(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as hospital_name&quot;) COMPUTE(NAME=&quot;(select cust_code from customer where cust_code = quot_stockist.CUST_CODE) as cust_code&quot;) COMPUTE(NAME=&quot;(select cust_name from customer where cust_code = quot_stockist.CUST_CODE) as cust_code_desc&quot;)) </retrieve>
<update>quot_stockist</update>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_stockist&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;sales_quot&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_c&quot; ) COLUMN(NAME=&quot;sales_quot_stockist.quot_no&quot;) COLUMN(NAME=&quot;sales_quot_stockist.line_no&quot;) COLUMN(NAME=&quot;sales_quot_stockist.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_stockist.cust_code__stk&quot;) COLUMN(NAME=&quot;sales_quot.quot_no&quot;) COLUMN(NAME=&quot;sales_quot_stockist.cust_code__dist&quot;) COLUMN(NAME=&quot;customer_a.city&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;customer_c.cust_name&quot;) COLUMN(NAME=&quot;customer_c.site_code__pbus&quot;) JOIN (LEFT=&quot;sales_quot_stockist.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer_a.cust_code&quot; ) JOIN (LEFT=&quot;sales_quot.quot_no&quot; OP =&quot;=&quot;RIGHT=&quot;sales_quot_stockist.quot_no&quot; ) JOIN (LEFT=&quot;sales_quot_stockist.cust_code__stk&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; ) JOIN (LEFT=&quot;sales_quot_stockist.cust_code__dist&quot; OP =&quot;=&quot;RIGHT=&quot;customer_c.cust_code&quot; )WHERE( EXP1 =&quot;sales_quot_stockist.quot_no&quot; OP =&quot;=&quot; EXP2 =&quot;:quot_no&quot; ) ) ARG(NAME = &quot;quot_no&quot; TYPE = string) </retrieve>
<update>sales_quot_stockist</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>quot_no</name>
<type>string</type>
</argument>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<text>General </text>
<border>2</border>
<color>0</color>
<x>211</x>
<y>41</y>
<height>337</height>
<x>219</x>
<y>39</y>
<height>350</height>
<width>346</width>
<name>gb_1</name>
<visible>1</visible>
......@@ -182,15 +179,15 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>395</x>
<x>398</x>
<y>60</y>
<height>19</height>
<width>66</width>
<height>16</height>
<width>60</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -198,11 +195,9 @@
<name>quot_no</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -248,15 +243,15 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>5</id>
<alignment>1</alignment>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>398</x>
<x>392</x>
<y>92</y>
<height>19</height>
<width>72</width>
<height>16</height>
<width>61</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -266,9 +261,7 @@
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -314,12 +307,12 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>402</x>
<x>394</x>
<y>130</y>
<height>16</height>
<width>60</width>
......@@ -348,94 +341,21 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<alignment>1</alignment>
<text>Distributor:</text>
<border>2</border>
<color>33554432</color>
<x>366</x>
<y>163</y>
<color>0</color>
<x>263</x>
<y>283</y>
<height>16</height>
<width>108</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code_desc</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>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>269</x>
<y>274</y>
<height>17</height>
<width>104</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stockist_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>
<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>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>265</x>
<y>202</y>
<height>17</height>
<width>88</width>
<format>[general]</format>
<width>77</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>city_name</name>
<name>cust_code__dist_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>
......@@ -448,23 +368,23 @@
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<id>6</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>399</x>
<y>202</y>
<height>19</height>
<width>92</width>
<x>380</x>
<y>283</y>
<height>16</height>
<width>108</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hospital_name</name>
<name>cust_code__dist</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -491,8 +411,8 @@
<text>Stockist:</text>
<border>2</border>
<color>0</color>
<x>267</x>
<y>240</y>
<x>264</x>
<y>227</y>
<height>16</height>
<width>65</width>
<html>
......@@ -515,15 +435,15 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>4</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>2</border>
<color>33554432</color>
<x>401</x>
<y>240</y>
<height>19</height>
<width>66</width>
<x>376</x>
<y>227</y>
<height>16</height>
<width>102</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -531,11 +451,9 @@
<name>cust_code__stk</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -551,21 +469,29 @@
<color>536870912</color>
</background>
</ColumnObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Distributor:</text>
<id>7</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>267</x>
<y>307</y>
<color>33554432</color>
<x>386</x>
<y>192</y>
<height>16</height>
<width>77</width>
<width>120</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dist_t</name>
<name>customer_city</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>
......@@ -578,30 +504,28 @@
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
<id>8</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>407</x>
<y>307</y>
<height>19</height>
<width>66</width>
<x>386</x>
<y>156</y>
<height>16</height>
<width>140</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dist</name>
<name>cust_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -619,20 +543,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>6</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>396</x>
<y>344</y>
<height>21</height>
<width>115</width>
<x>373</x>
<y>251</y>
<height>16</height>
<width>152</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>distributor_name</name>
<name>stockist_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -655,20 +579,20 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>267</x>
<y>344</y>
<height>17</height>
<width>110</width>
<x>372</x>
<y>309</y>
<height>16</height>
<width>154</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code</name>
<name>distributor_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......
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