Commit 9613d783 authored by ngadkari's avatar ngadkari

changes in currency code set as basecurrency for accounting effects

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@189359 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 56657923
...@@ -33,7 +33,8 @@ table(column=(type=char(12) update=yes updatewhereclause=yes key=yes name=tran_i ...@@ -33,7 +33,8 @@ table(column=(type=char(12) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(4000) updatewhereclause=yes name=sundry_name dbname="sundry_name" ) column=(type=char(4000) updatewhereclause=yes name=sundry_name dbname="sundry_name" )
column=(type=number updatewhereclause=yes name=dr_cr dbname="dr_cr" ) column=(type=number updatewhereclause=yes name=dr_cr dbname="dr_cr" )
column=(type=char(40) updatewhereclause=yes name=costctr_descr dbname="costctr.descr" ) column=(type=char(40) updatewhereclause=yes name=costctr_descr dbname="costctr.descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"accounts~" ) TABLE(NAME=~"gltrace~" ) TABLE(NAME=~"sundry_type~" ) TABLE(NAME=~"refser~" ) TABLE(NAME=~"costctr~" ) COLUMN(NAME=~"gltrace.tran_id~") COLUMN(NAME=~"gltrace.eff_date~") COLUMN(NAME=~"gltrace.ref_ser~") COLUMN(NAME=~"gltrace.ref_id~") COLUMN(NAME=~"gltrace.acct_code~") COLUMN(NAME=~"gltrace.dr_amt~") COLUMN(NAME=~"gltrace.cr_amt~") COLUMN(NAME=~"gltrace.site_code~") COLUMN(NAME=~"gltrace.fin_entity~") COLUMN(NAME=~"gltrace.sundry_code~") COLUMN(NAME=~"gltrace.sundry_type~") COLUMN(NAME=~"gltrace.remarks~") COLUMN(NAME=~"gltrace.cctr_code~") COLUMN(NAME=~"gltrace.curr_code~") COLUMN(NAME=~"gltrace.exch_rate~") COLUMN(NAME=~"gltrace.tran_date~") COLUMN(NAME=~"gltrace.emp_code~") COLUMN(NAME=~"gltrace.anal_code~") COLUMN(NAME=~"gltrace.ref_type~") COLUMN(NAME=~"accounts.descr~") COMPUTE(NAME=~"(gltrace.dr_amt * gltrace.exch_rate) as dr_amt__bc~") COMPUTE(NAME=~"(gltrace.cr_amt * gltrace.exch_rate) as cr_amt__bc~") COLUMN(NAME=~"sundry_type.tname~") COMPUTE(NAME=~" (~~~"REFSER~~~".~~~"DESCR~~~") as refser~") COMPUTE(NAME=~" (~~~"SUNDRY_TYPE~~~".~~~"DESCR~~~") as sundrydescr~") COMPUTE(NAME=~"DDF_GET_SUNDRY_NAME(~~~"GLTRACE~~~".~~~"SUNDRY_CODE~~~",~~~"GLTRACE~~~".~~~"SUNDRY_TYPE~~~") as sundry_name~") COMPUTE(NAME=~"case when dr_amt > 0 then 1 else 2 end dr_cr~") COLUMN(NAME=~"costctr.descr~") JOIN (LEFT=~"gltrace.sundry_type~" OP =~"=~"RIGHT=~"sundry_type.sundry_type~" OUTER1 =~"gltrace.sundry_type~" ) JOIN (LEFT=~"gltrace.ref_ser~" OP =~"=~"RIGHT=~"refser.ref_ser~" OUTER1 =~"gltrace.ref_ser~" ) JOIN (LEFT=~"gltrace.cctr_code~" OP =~"=~"RIGHT=~"costctr.cctr_code~" OUTER1 =~"gltrace.cctr_code~" ) JOIN (LEFT=~"gltrace.acct_code~" OP =~"=~"RIGHT=~"accounts.acct_code~" )WHERE( EXP1 =~"gltrace.ref_ser~" OP =~"=~" EXP2 =~":ref_ser~" LOGIC =~"And~" ) WHERE( EXP1 =~"gltrace.ref_id~" OP =~">=~" EXP2 =~":ref_id__fr~" LOGIC =~"and~" ) WHERE( EXP1 =~"gltrace.ref_id~" OP =~"<=~" EXP2 =~":ref_id__to~" ) ) ORDER(NAME=~"27~" ASC=yes ) ARG(NAME = ~"ref_ser~" TYPE = string) ARG(NAME = ~"ref_id__fr~" TYPE = string) ARG(NAME = ~"ref_id__to~" TYPE = string) " update="gltrace" updatewhere=1 updatekeyinplace=no arguments=(("ref_ser", string),("ref_id__fr", string),("ref_id__to", string)) ) column=(type=char(5) updatewhereclause=yes name=finent_curr_code dbname="finent.curr_code" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"accounts~" ) TABLE(NAME=~"gltrace~" ) TABLE(NAME=~"sundry_type~" ) TABLE(NAME=~"refser~" ) TABLE(NAME=~"costctr~" ) TABLE(NAME=~"finent~" ) COLUMN(NAME=~"gltrace.tran_id~") COLUMN(NAME=~"gltrace.eff_date~") COLUMN(NAME=~"gltrace.ref_ser~") COLUMN(NAME=~"gltrace.ref_id~") COLUMN(NAME=~"gltrace.acct_code~") COLUMN(NAME=~"gltrace.dr_amt~") COLUMN(NAME=~"gltrace.cr_amt~") COLUMN(NAME=~"gltrace.site_code~") COLUMN(NAME=~"gltrace.fin_entity~") COLUMN(NAME=~"gltrace.sundry_code~") COLUMN(NAME=~"gltrace.sundry_type~") COLUMN(NAME=~"gltrace.remarks~") COLUMN(NAME=~"gltrace.cctr_code~") COLUMN(NAME=~"gltrace.curr_code~") COLUMN(NAME=~"gltrace.exch_rate~") COLUMN(NAME=~"gltrace.tran_date~") COLUMN(NAME=~"gltrace.emp_code~") COLUMN(NAME=~"gltrace.anal_code~") COLUMN(NAME=~"gltrace.ref_type~") COLUMN(NAME=~"accounts.descr~") COMPUTE(NAME=~"(gltrace.dr_amt * gltrace.exch_rate) as dr_amt__bc~") COMPUTE(NAME=~"(gltrace.cr_amt * gltrace.exch_rate) as cr_amt__bc~") COLUMN(NAME=~"sundry_type.tname~") COMPUTE(NAME=~" (~~~"REFSER~~~".~~~"DESCR~~~") as refser~") COMPUTE(NAME=~" (~~~"SUNDRY_TYPE~~~".~~~"DESCR~~~") as sundrydescr~") COMPUTE(NAME=~"DDF_GET_SUNDRY_NAME(~~~"GLTRACE~~~".~~~"SUNDRY_CODE~~~",~~~"GLTRACE~~~".~~~"SUNDRY_TYPE~~~") as sundry_name~") COMPUTE(NAME=~"case when dr_amt > 0 then 1 else 2 end dr_cr~") COLUMN(NAME=~"costctr.descr~") COLUMN(NAME=~"finent.curr_code~") JOIN (LEFT=~"gltrace.sundry_type~" OP =~"=~"RIGHT=~"sundry_type.sundry_type~" OUTER1 =~"gltrace.sundry_type~" ) JOIN (LEFT=~"gltrace.ref_ser~" OP =~"=~"RIGHT=~"refser.ref_ser~" OUTER1 =~"gltrace.ref_ser~" ) JOIN (LEFT=~"gltrace.cctr_code~" OP =~"=~"RIGHT=~"costctr.cctr_code~" OUTER1 =~"gltrace.cctr_code~" ) JOIN (LEFT=~"gltrace.acct_code~" OP =~"=~"RIGHT=~"accounts.acct_code~" ) JOIN (LEFT=~"gltrace.fin_entity~" OP =~"=~"RIGHT=~"finent.fin_entity~" )WHERE( EXP1 =~"gltrace.ref_ser~" OP =~"=~" EXP2 =~":ref_ser~" LOGIC =~"And~" ) WHERE( EXP1 =~"gltrace.ref_id~" OP =~">=~" EXP2 =~":ref_id__fr~" LOGIC =~"and~" ) WHERE( EXP1 =~"gltrace.ref_id~" OP =~"<=~" EXP2 =~":ref_id__to~" ) ) ORDER(NAME=~"27~" ASC=yes ) ARG(NAME = ~"ref_ser~" TYPE = string) ARG(NAME = ~"ref_id__fr~" TYPE = string) ARG(NAME = ~"ref_id__to~" TYPE = string) " update="GLTRACE" updatewhere=1 updatekeyinplace=no arguments=(("ref_ser", string),("ref_id__fr", string),("ref_id__to", string)) )
text(band=header alignment="2" text="Tran Id" border="6" color="33554432" x="2" y="2" height="16" width="79" html.valueishtml="0" name=tran_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Tran Id" border="6" color="33554432" x="2" y="2" height="16" width="79" html.valueishtml="0" name=tran_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Eff Date" border="6" color="33554432" x="1628" y="2" height="16" width="85" html.valueishtml="0" name=eff_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Eff Date" border="6" color="33554432" x="1628" y="2" height="16" width="85" html.valueishtml="0" name=eff_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Ref Ser" border="6" color="33554432" x="217" y="2" height="16" width="53" html.valueishtml="0" name=ref_ser_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Ref Ser" border="6" color="33554432" x="217" y="2" height="16" width="53" html.valueishtml="0" name=ref_ser_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
...@@ -62,6 +63,7 @@ text(band=header alignment="0" text="Sundrydescr" border="6" color="0" x="2318" ...@@ -62,6 +63,7 @@ text(band=header alignment="0" text="Sundrydescr" border="6" color="0" x="2318"
text(band=header alignment="0" text="Sundry Name" border="6" color="33554432" x="2478" y="1" height="16" width="164" html.valueishtml="0" name=sundry_name_t visible="1" font.face="Liberation Sans" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) text(band=header alignment="0" text="Sundry Name" border="6" color="33554432" x="2478" y="1" height="16" width="164" html.valueishtml="0" name=sundry_name_t visible="1" font.face="Liberation Sans" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Dr Cr" border="6" color="0" x="2644" y="1" height="16" width="213" html.valueishtml="0" name=dr_cr_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) text(band=header alignment="0" text="Dr Cr" border="6" color="0" x="2644" y="1" height="16" width="213" html.valueishtml="0" name=dr_cr_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Costctr Descr" border="6" color="33554432" x="2859" y="1" height="16" width="198" html.valueishtml="0" name=costctr_descr_t visible="1" font.face="Arial" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) text(band=header alignment="0" text="Costctr Descr" border="6" color="33554432" x="2859" y="1" height="16" width="198" html.valueishtml="0" name=costctr_descr_t visible="1" font.face="Arial" font.height="-11" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="0" text="Base Curr Code" border="6" color="33554432" x="3059" y="1" height="16" width="121" html.valueishtml="0" name=finent_curr_code_t visible="1" font.face="Liberation Sans" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="2" y="2" height="16" width="79" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="2" y="2" height="16" width="79" format="[general]" html.valueishtml="0" name=tran_id visible="1" edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="0" x="1628" y="2" height="16" width="85" format="[shortdate] [time]" html.valueishtml="0" name=eff_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="0" x="1628" y="2" height="16" width="85" format="[shortdate] [time]" html.valueishtml="0" name=eff_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="0" x="217" y="2" height="16" width="53" format="[general]" html.valueishtml="0" name=ref_ser visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="5" color="0" x="217" y="2" height="16" width="53" format="[general]" html.valueishtml="0" name=ref_ser visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
...@@ -90,6 +92,7 @@ column(band=detail id=25 alignment="0" tabsequence=32766 border="0" color="0" x= ...@@ -90,6 +92,7 @@ column(band=detail id=25 alignment="0" tabsequence=32766 border="0" color="0" x=
column(band=detail id=26 alignment="0" tabsequence=32766 border="0" color="0" x="2478" y="2" height="15" width="164" format="[general]" html.valueishtml="0" name=sundry_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=26 alignment="0" tabsequence=32766 border="0" color="0" x="2478" y="2" height="15" width="164" format="[general]" html.valueishtml="0" name=sundry_name visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=27 alignment="0" tabsequence=32766 border="0" color="0" x="2644" y="1" height="16" width="213" format="[general]" html.valueishtml="0" name=dr_cr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=27 alignment="0" tabsequence=32766 border="0" color="0" x="2644" y="1" height="16" width="213" format="[general]" html.valueishtml="0" name=dr_cr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=28 alignment="0" tabsequence=32766 border="0" color="0" x="2859" y="1" height="16" width="198" format="[general]" html.valueishtml="0" name=costctr_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=28 alignment="0" tabsequence=32766 border="0" color="0" x="2859" y="1" height="16" width="198" format="[general]" html.valueishtml="0" name=costctr_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=29 alignment="0" tabsequence=32766 border="0" color="0" x="3059" y="1" height="16" width="121" format="[general]" html.valueishtml="0" name=finent_curr_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) 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 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
...@@ -82,6 +82,13 @@ var isAnyRecordSelected = false; ...@@ -82,6 +82,13 @@ var isAnyRecordSelected = false;
<xsl:value-of select='dr_amt'/><xsl:text> </xsl:text> <xsl:value-of select='dr_amt'/><xsl:text> </xsl:text>
</span> </span>
<xsl:value-of select='curr_code'/> <xsl:value-of select='curr_code'/>
<xsl:if test="$exchangeRate != '1'">
<xsl:text></xsl:text>
@<xsl:value-of select='exch_rate'/>
</xsl:if>
<xsl:if test="$exchangeRate > '1'">
</xsl:if>
</div> </div>
</xsl:if> </xsl:if>
...@@ -115,17 +122,17 @@ var isAnyRecordSelected = false; ...@@ -115,17 +122,17 @@ var isAnyRecordSelected = false;
<div class="eachSection alighrt"> <div class="eachSection alighrt">
<div class="eachSection alighlt ">Total Debit: <div class="eachSection alighlt ">Total Debit:
<span class="dr-amt">Dr <span class="dr-amt">Dr
<xsl:value-of select= "sum(/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/dr_amt)"/> <xsl:value-of select= "sum(/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/dr_amt__bc)"/>
</span> </span>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
<xsl:value-of select="/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/curr_code"/> <xsl:value-of select="/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/finent_curr_code"/>
</div> </div>
<div class="eachSection alighlt ">Total Credit: <div class="eachSection alighlt ">Total Credit:
<span class="cr-amt">Cr <span class="cr-amt">Cr
<xsl:value-of select="sum(/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/cr_amt)"/> <xsl:value-of select="sum(/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/cr_amt__bc)"/>
</span> </span>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
<xsl:value-of select="/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/curr_code"/> <xsl:value-of select="/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/finent_curr_code"/>
</div> </div>
</div> </div>
</div> </div>
...@@ -137,3 +144,4 @@ var isAnyRecordSelected = false; ...@@ -137,3 +144,4 @@ var isAnyRecordSelected = false;
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
...@@ -236,8 +236,14 @@ ...@@ -236,8 +236,14 @@
<name>costctr_descr</name> <name>costctr_descr</name>
<dbname>costctr.descr</dbname> <dbname>costctr.descr</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;accounts&quot; ) TABLE(NAME=&quot;gltrace&quot; ) TABLE(NAME=&quot;sundry_type&quot; ) TABLE(NAME=&quot;refser&quot; ) TABLE(NAME=&quot;costctr&quot; ) COLUMN(NAME=&quot;gltrace.tran_id&quot;) COLUMN(NAME=&quot;gltrace.eff_date&quot;) COLUMN(NAME=&quot;gltrace.ref_ser&quot;) COLUMN(NAME=&quot;gltrace.ref_id&quot;) COLUMN(NAME=&quot;gltrace.acct_code&quot;) COLUMN(NAME=&quot;gltrace.dr_amt&quot;) COLUMN(NAME=&quot;gltrace.cr_amt&quot;) COLUMN(NAME=&quot;gltrace.site_code&quot;) COLUMN(NAME=&quot;gltrace.fin_entity&quot;) COLUMN(NAME=&quot;gltrace.sundry_code&quot;) COLUMN(NAME=&quot;gltrace.sundry_type&quot;) COLUMN(NAME=&quot;gltrace.remarks&quot;) COLUMN(NAME=&quot;gltrace.cctr_code&quot;) COLUMN(NAME=&quot;gltrace.curr_code&quot;) COLUMN(NAME=&quot;gltrace.exch_rate&quot;) COLUMN(NAME=&quot;gltrace.tran_date&quot;) COLUMN(NAME=&quot;gltrace.emp_code&quot;) COLUMN(NAME=&quot;gltrace.anal_code&quot;) COLUMN(NAME=&quot;gltrace.ref_type&quot;) COLUMN(NAME=&quot;accounts.descr&quot;) COMPUTE(NAME=&quot;(gltrace.dr_amt * gltrace.exch_rate) as dr_amt__bc&quot;) COMPUTE(NAME=&quot;(gltrace.cr_amt * gltrace.exch_rate) as cr_amt__bc&quot;) COLUMN(NAME=&quot;sundry_type.tname&quot;) COMPUTE(NAME=&quot; (~&quot;REFSER~&quot;.~&quot;DESCR~&quot;) as refser&quot;) COMPUTE(NAME=&quot; (~&quot;SUNDRY_TYPE~&quot;.~&quot;DESCR~&quot;) as sundrydescr&quot;) COMPUTE(NAME=&quot;DDF_GET_SUNDRY_NAME(~&quot;GLTRACE~&quot;.~&quot;SUNDRY_CODE~&quot;,~&quot;GLTRACE~&quot;.~&quot;SUNDRY_TYPE~&quot;) as sundry_name&quot;) COMPUTE(NAME=&quot;case when dr_amt &gt; 0 then 1 else 2 end dr_cr&quot;) COLUMN(NAME=&quot;costctr.descr&quot;) JOIN (LEFT=&quot;gltrace.sundry_type&quot; OP =&quot;=&quot;RIGHT=&quot;sundry_type.sundry_type&quot; OUTER1 =&quot;gltrace.sundry_type&quot; ) JOIN (LEFT=&quot;gltrace.ref_ser&quot; OP =&quot;=&quot;RIGHT=&quot;refser.ref_ser&quot; OUTER1 =&quot;gltrace.ref_ser&quot; ) JOIN (LEFT=&quot;gltrace.cctr_code&quot; OP =&quot;=&quot;RIGHT=&quot;costctr.cctr_code&quot; OUTER1 =&quot;gltrace.cctr_code&quot; ) JOIN (LEFT=&quot;gltrace.acct_code&quot; OP =&quot;=&quot;RIGHT=&quot;accounts.acct_code&quot; )WHERE( EXP1 =&quot;gltrace.ref_ser&quot; OP =&quot;=&quot; EXP2 =&quot;:ref_ser&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;gltrace.ref_id&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:ref_id__fr&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;gltrace.ref_id&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:ref_id__to&quot; ) ) ORDER(NAME=&quot;27&quot; ASC=yes ) ARG(NAME = &quot;ref_ser&quot; TYPE = string) ARG(NAME = &quot;ref_id__fr&quot; TYPE = string) ARG(NAME = &quot;ref_id__to&quot; TYPE = string) </retrieve> <table_column>
<update>gltrace</update> <type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>finent_curr_code</name>
<dbname>finent.curr_code</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;accounts&quot; ) TABLE(NAME=&quot;gltrace&quot; ) TABLE(NAME=&quot;sundry_type&quot; ) TABLE(NAME=&quot;refser&quot; ) TABLE(NAME=&quot;costctr&quot; ) TABLE(NAME=&quot;finent&quot; ) COLUMN(NAME=&quot;gltrace.tran_id&quot;) COLUMN(NAME=&quot;gltrace.eff_date&quot;) COLUMN(NAME=&quot;gltrace.ref_ser&quot;) COLUMN(NAME=&quot;gltrace.ref_id&quot;) COLUMN(NAME=&quot;gltrace.acct_code&quot;) COLUMN(NAME=&quot;gltrace.dr_amt&quot;) COLUMN(NAME=&quot;gltrace.cr_amt&quot;) COLUMN(NAME=&quot;gltrace.site_code&quot;) COLUMN(NAME=&quot;gltrace.fin_entity&quot;) COLUMN(NAME=&quot;gltrace.sundry_code&quot;) COLUMN(NAME=&quot;gltrace.sundry_type&quot;) COLUMN(NAME=&quot;gltrace.remarks&quot;) COLUMN(NAME=&quot;gltrace.cctr_code&quot;) COLUMN(NAME=&quot;gltrace.curr_code&quot;) COLUMN(NAME=&quot;gltrace.exch_rate&quot;) COLUMN(NAME=&quot;gltrace.tran_date&quot;) COLUMN(NAME=&quot;gltrace.emp_code&quot;) COLUMN(NAME=&quot;gltrace.anal_code&quot;) COLUMN(NAME=&quot;gltrace.ref_type&quot;) COLUMN(NAME=&quot;accounts.descr&quot;) COMPUTE(NAME=&quot;(gltrace.dr_amt * gltrace.exch_rate) as dr_amt__bc&quot;) COMPUTE(NAME=&quot;(gltrace.cr_amt * gltrace.exch_rate) as cr_amt__bc&quot;) COLUMN(NAME=&quot;sundry_type.tname&quot;) COMPUTE(NAME=&quot; (~&quot;REFSER~&quot;.~&quot;DESCR~&quot;) as refser&quot;) COMPUTE(NAME=&quot; (~&quot;SUNDRY_TYPE~&quot;.~&quot;DESCR~&quot;) as sundrydescr&quot;) COMPUTE(NAME=&quot;DDF_GET_SUNDRY_NAME(~&quot;GLTRACE~&quot;.~&quot;SUNDRY_CODE~&quot;,~&quot;GLTRACE~&quot;.~&quot;SUNDRY_TYPE~&quot;) as sundry_name&quot;) COMPUTE(NAME=&quot;case when dr_amt &gt; 0 then 1 else 2 end dr_cr&quot;) COLUMN(NAME=&quot;costctr.descr&quot;) COLUMN(NAME=&quot;finent.curr_code&quot;) JOIN (LEFT=&quot;gltrace.sundry_type&quot; OP =&quot;=&quot;RIGHT=&quot;sundry_type.sundry_type&quot; OUTER1 =&quot;gltrace.sundry_type&quot; ) JOIN (LEFT=&quot;gltrace.ref_ser&quot; OP =&quot;=&quot;RIGHT=&quot;refser.ref_ser&quot; OUTER1 =&quot;gltrace.ref_ser&quot; ) JOIN (LEFT=&quot;gltrace.cctr_code&quot; OP =&quot;=&quot;RIGHT=&quot;costctr.cctr_code&quot; OUTER1 =&quot;gltrace.cctr_code&quot; ) JOIN (LEFT=&quot;gltrace.acct_code&quot; OP =&quot;=&quot;RIGHT=&quot;accounts.acct_code&quot; ) JOIN (LEFT=&quot;gltrace.fin_entity&quot; OP =&quot;=&quot;RIGHT=&quot;finent.fin_entity&quot; )WHERE( EXP1 =&quot;gltrace.ref_ser&quot; OP =&quot;=&quot; EXP2 =&quot;:ref_ser&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;gltrace.ref_id&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:ref_id__fr&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;gltrace.ref_id&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:ref_id__to&quot; ) ) ORDER(NAME=&quot;27&quot; ASC=yes ) ARG(NAME = &quot;ref_ser&quot; TYPE = string) ARG(NAME = &quot;ref_id__fr&quot; TYPE = string) ARG(NAME = &quot;ref_id__to&quot; TYPE = string) </retrieve>
<update>GLTRACE</update>
<updatewhere>1</updatewhere> <updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
<argument> <argument>
...@@ -1037,6 +1043,34 @@ ...@@ -1037,6 +1043,34 @@
<color>67108864</color> <color>67108864</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Base Curr Code</text>
<border>6</border>
<color>33554432</color>
<x>3059</x>
<y>1</y>
<height>16</height>
<width>121</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>finent_curr_code_t</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>67108864</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -2088,6 +2122,42 @@ ...@@ -2088,6 +2122,42 @@
<color>16777215</color> <color>16777215</color>
</background> </background>
</ColumnObject> </ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>29</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>0</border>
<color>0</color>
<x>3059</x>
<y>1</y>
<height>16</height>
<width>121</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>finent_curr_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
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