Commit 4ecc8e79 authored by Mohammed Dohadwala's avatar Mohammed Dohadwala

Committed on 16th March

parent 067d09e0
-- Table creation for Quotation Stockist (Third detail form in Sales Quotation)
CREATE TABLE SALES_QUOT_STOCKIST ( QUOT_NO CHAR(10) NOT NULL, LINE_NO NUMBER(4) NOT NULL, CUST_CODE CHAR(10), CUST_CODE__STK CHAR(10), CUST_CODE__DIST CHAR(10), CONSTRAINT PK_SALES_QUOT_STK PRIMARY KEY (QUOT_NO, LINE_NO) );
-- Form metadata entry for Quotation Stockist detail form in Sales Quotation screen
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,DEFAULT_ROW_CNT,FREEZE_COL_POS,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_NAME,FORM_ICON,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN,ACTION_ARG,VALUE_COL,NO_ART_COL,CHG_DATE,CHG_USER,CHG_TERM) values ('w_salesquot','Quotation Stockist','Exam11','Exam21',null,null,null,null,'3','T',null,null,null,null,null,null,null,null,null,null,null,null,null,'line_no','quantity','rate',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'DetailForm.png',null,null,null,null,null,null,null,null,null);
-- Pophelp configuration for selecting Stockist from Customer Preferred Distributor mapping
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 ('CUST_CODE__STK','W_SALESQUOT','SELECT DISTINCT CPD.CUST_CODE__STK AS CUST_CODE, STK.CUST_NAME FROM CUSTOMER_PREF_DIST CPD JOIN CUSTOMER STK ON STK.CUST_CODE = CPD.CUST_CODE__STK',null,'Stockist Details',0,0,null,null,null,'1',null,null,1,'L',null,null,null,null,0,'1',null,'9',null,null,null,null,null,null,null,null,null,null,null);
-- Item change configuration for Stockist field in Sales Quotation form
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('salesquot','3 ','cust_code__stk','Y',null,null);
-- Item change configuration for default item logic in Sales Quotation form
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('salesquot','3 ','itm_default','Y',null,null);
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
$PBExportHeader$salesquot23.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 )
summary(height=0 color="536870912" )
footer(height=1 color="536870912" )
detail(height=432 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" )
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~")) " update="quot_stockist" updatewhere=0 updatekeyinplace=no )
groupbox(band=detail text="General "border="2" color="0" x="216" y="34" height="378" width="412" 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 Number:" border="2" color="0" x="278" y="55" 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="416" y="55" 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" )
text(band=detail alignment="1" text="Line No:" border="2" color="0" x="277" y="89" 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="414" y="91" 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" )
text(band=detail alignment="1" text="Customer Code:" border="2" color="0" x="277" y="127" 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" )
text(band=detail alignment="1" text="Customer Code Stockist:" border="2" color="0" x="267" y="208" height="16" width="146" 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="434" y="206" 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="Customer Code Distributor:" border="2" color="0" x="268" y="276" height="16" width="161" 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="442" y="275" 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="397" y="313" 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=7 alignment="0" tabsequence=32766 border="2" color="33554432" x="270" y="243" height="17" width="233" 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="2" color="33554432" x="275" y="315" 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=8 alignment="0" tabsequence=32766 border="2" color="33554432" x="275" y="167" 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="382" y="166" 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" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="2" color="33554432" x="414" y="130" height="16" width="60" html.valueishtml="0" name=cust_code visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
This diff is collapsed.
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