TransPort_Tracking
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.bestray.transtracking.reports;
import java.math.BigDecimal;
import net.sf.jasperreports.engine.JRDefaultScriptlet;
/**
*
* @author dell
*/
public class ReportCalculation extends JRDefaultScriptlet{
public String findBalance(BigDecimal balance){
System.out.println("Hi...");
Double bal = balance.doubleValue();
if(bal>0){
return bal+"Dr";
}else{
return ((-1)*bal)+"Cr";
}
}
public String hi(){
System.out.println("Hi...");
return "Hello";
}
}
|
Revision |
Author |
Commited |
Message |
1
|
girijabapi
|
Sat 28 Jul, 2018 05:29:14 +0000 |
|