You are on page 1of 2

pg_RESET

----------------<?for-each@section:G_1?>
Number_format
---------------<?format-NUMBER:AMOUNT_PAID;'999G99OD99'?>
date_format
--------------<?INVOICE?><?Sort:Concat(20,Substring
(C_CHECK_DATE,8,4),(String-length(Substring-before('XXXJANFEBMARAPRMAY JUNJULAUG
SETOCTNOVDEC',Substring(C_CHECK_DATE,4,3)))div 3)+10,
Substring(C_CHECK_DATE,1,2));'ascending';
data-type='number'?>
Pagetotal
-------------<?add-page-total:pt;'AMOUNT_PAID'?>
<?show-page-total:pt;'#,##0.00'i'(#,##0.00)'?>
Runningtotal
-----------------<?sum(C_BASE_AMOUNT)+sum(C_CHECK_AMOUNT)?>
<?xdoxslt:set-variable($XDOCTX,'A',SUM(AMOUNT_PAID))?><?xdoxslt:set-variable($XD
OCTX,'B',SUM(INVOICE_AMOUNT))?><?xdoslt:set-variable
($_XDOCTX,'C',xdoslt:get-variable($_XDOCTX,'A')+xdoslt:get-variable($_XDOCTX,'B'
))?><?format-NUMBER:xdoslt:get-variable($-XDOCTX,'C');'9999D99'?>
Cond formating
--------------<?if:INVOICE_AMOUNT>30000?>
<xsl:attribute xdofo:ctx="block"
name="background-color">red</xsl:attribute>
<?end if?>
--when choose otherwise
-----------------------------<?choose:?><?when:Type='STANDERD'?>INVOICE_ID:<?End when?><?otherwise?>INVOICE_I
D<?endotherwise?><?end choose?>
display amt in words
---------------------<?xdoxslt:towardsamount(sum(INVOICE_AMOUNT))?>
broughfwd
-----------<xdofo:inline-total display-condition="exceptfirst" name="pt">Brought Forward:
<xdofo:show-brought-forward name="pt"
format="99G999G9999D00"/>
<?/xdofo:inline-total?>
need to put below above code after end each
<?template:bf ?>
Brought forward code needs to write in a text

<?template?>
call the template from footer<call:bf>
carryfwd
----------<xdofo:inline-total display-condition="except last" name="pt">Carry Forward:
<xdofo:show-carry-forward name="pt"
format-number="99G999G9999D00"/>
<?/xdofo:inline-total?>
limit records perpage
--------------------<?if:position()mod 4=0?>
<?split-by-page-break:?><?endif?>
no data found end of the report
----------------------------------------<?if:count(invoice_num)?<1?> ******no data found*****<?endif?>
<?if:count(invoice_num)>1?> *****end of report****<?endif?>
hiding field dynamically
--------------------------------<?if:invoice_num!=''?>-- instead of single codde we can take parameter
Supplier:<?CF_SUPPLIER_PARAMETER?><?end if?>

<?call:C_INVOICE_AMOUNT?><xdofo:running_total display-condition= except last

Name= Running total >Carried forward:<xdofo:show-carry-forward name= Running total = 99G99


9G999D00 /></xdofo:Running totl>

You might also like