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
......@@ -82,6 +82,13 @@ var isAnyRecordSelected = false;
<xsl:value-of select='dr_amt'/><xsl:text> </xsl:text>
</span>
<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>
</xsl:if>
......@@ -115,17 +122,17 @@ var isAnyRecordSelected = false;
<div class="eachSection alighrt">
<div class="eachSection alighlt ">Total Debit:
<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>
<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 class="eachSection alighlt ">Total Credit:
<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>
<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>
......@@ -137,3 +144,4 @@ var isAnyRecordSelected = false;
</xsl:template>
</xsl:stylesheet>
......@@ -236,8 +236,14 @@
<name>costctr_descr</name>
<dbname>costctr.descr</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; ) 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>
<update>gltrace</update>
<table_column>
<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>
<updatekeyinplace>no</updatekeyinplace>
<argument>
......@@ -1037,6 +1043,34 @@
<color>67108864</color>
</background>
</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>
<band>Detail</band>
<id>1</id>
......@@ -2088,6 +2122,42 @@
<color>16777215</color>
</background>
</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>
<border>1</border>
</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