18 package org.turro.financials.model.document;
20 import org.turro.contacts.Contact;
21 import org.turro.contacts.db.ContactsPU;
22 import org.turro.util.CompareUtil;
30 private String opKey, contractor, view;
31 private double operationsAmount[];
36 this.contractor = contractor;
37 operationsAmount =
new double[4];
49 return operationsAmount[quarter - 1];
53 this.operationsAmount[quarter - 1] += operationsAmount;
58 for(
int i = 0; i < 4; i++) {
59 result += operationsAmount[i];
70 int result = CompareUtil.compare(view, o.view);
72 result = CompareUtil.compare(opKey, o.opKey);
75 result = CompareUtil.compare(contractor, o.contractor);
void addOperationsAmount(int quarter, double operationsAmount)
double getOperationsAmount(int quarter)
double getOperationsAmountSum()
AnnualTransaction(String view, String opKey, String contractor)
int compareTo(AnnualTransaction o)