neu: | ").append(df.format(invoices.get(Invoice.STATUS_NEW))).append(" |
");
@@ -758,7 +759,7 @@ public void setEntry(CaseForContactEntry entry) {
sb.append("bezahlt: | ").append(df.format(invoices.get(Invoice.STATUS_PAID))).append(" |
");
sb.append("storniert: | ").append(df.format(invoices.get(Invoice.STATUS_CANCELLED))).append(" |
");
this.lblTotal.setText(df.format(total));
- if(total>0)
+ if(total.compareTo(BigDecimal.ZERO)>0)
this.lblTotal.setForeground(DefaultColorTheme.COLOR_LOGO_RED);
else
this.lblTotal.setForeground(DefaultColorTheme.COLOR_LOGO_GREEN);
diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchivalDialog.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchivalDialog.java
index eb9af8ffd..8c72f6e8a 100644
--- a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchivalDialog.java
+++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchivalDialog.java
@@ -673,6 +673,7 @@ You should also get your employer (if you work as a programmer) or school,
import com.jdimension.jlawyer.persistence.Timesheet;
import com.jdimension.jlawyer.services.CalendarServiceRemote;
import com.jdimension.jlawyer.services.JLawyerServiceLocator;
+import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
@@ -709,7 +710,7 @@ public class ArchivalDialog extends javax.swing.JDialog {
* @param totalEscrowDiff
* @param totalExpendituresDiff
*/
- public ArchivalDialog(java.awt.Frame parent, boolean modal, String caseId, JTable tblReviews, JPanel invoicesPanel, JPanel timesheetsPanel, float totalEscrowDiff, float totalExpendituresDiff) {
+ public ArchivalDialog(java.awt.Frame parent, boolean modal, String caseId, JTable tblReviews, JPanel invoicesPanel, JPanel timesheetsPanel, BigDecimal totalEscrowDiff, BigDecimal totalExpendituresDiff) {
super(parent, modal);
initComponents();
@@ -818,13 +819,13 @@ public ArchivalDialog(java.awt.Frame parent, boolean modal, String caseId, JTabl
}
- if(totalEscrowDiff!=0) {
+ if(!totalEscrowDiff.equals(BigDecimal.ZERO)) {
this.lblEscrow.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/cancel.png")));
this.chkEscrow.setEnabled(true);
this.lblEscrow.setText("Aktenkonto: Fremdgelder nicht ausgeglichen");
}
- if(totalExpendituresDiff!=0) {
+ if(!totalExpendituresDiff.equals(BigDecimal.ZERO)) {
this.lblExpenditures.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/cancel.png")));
this.chkExpenditures.setEnabled(true);
this.lblExpenditures.setText("Aktenkonto: Auslagen nicht ausgeglichen");
@@ -1194,7 +1195,7 @@ public static void main(String args[]) {
/* Create and display the dialog */
java.awt.EventQueue.invokeLater(() -> {
- ArchivalDialog dialog = new ArchivalDialog(new javax.swing.JFrame(), true, null, null, null, null, 0f, 0f);
+ ArchivalDialog dialog = new ArchivalDialog(new javax.swing.JFrame(), true, null, null, null, null, BigDecimal.ZERO, BigDecimal.ZERO);
dialog.addWindowListener(new java.awt.event.WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent e) {
diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchiveFilePanel.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchiveFilePanel.java
index a90e7b7a4..389ed4e92 100755
--- a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchiveFilePanel.java
+++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchiveFilePanel.java
@@ -784,6 +784,7 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
+import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
@@ -4457,15 +4458,15 @@ private void loadAccountEntries() {
ClientSettings settings = ClientSettings.getInstance();
JLawyerServiceLocator locator = JLawyerServiceLocator.getInstance(settings.getLookupProperties());
ArchiveFileServiceRemote fileService = locator.lookupArchiveFileServiceRemote();
- HashMap