private String getSummaryTax(INVOrder invOrder) { String summaryTaxAmount = ""; Summary summary = invOrder.getSummary(); if (summary != null) { MonetaryTaxSummary monetaryTaxSummary = summary.getMonetaryTaxSummary(); if (monetaryTaxSummary != null) { MonetaryTaxSummaryDetails monetaryTaxSummaryDetails = monetaryTaxSummary.getMonetaryTaxSummaryDetails(); if (monetaryTaxSummaryDetails != null && "124".equals(monetaryTaxSummaryDetails.getAmountType())) { summaryTaxAmount = monetaryTaxSummaryDetails.getAmount(); } } } return summaryTaxAmount; }
private boolean getChangeDirection(String symbol, boolean[] set1, boolean[] set2) { double[] exp = expMan.get(symbol); if (exp == null) return false; boolean[] cnUnchanged = null; if (USE_COPY_NUMBER_UNCHANGED) { cnUnchanged = getCopyNumberUnchanged(symbol); if (cnUnchanged == null) return false; } double[] vals1 = getSubset(exp, set1, cnUnchanged); double[] vals2 = getSubset(exp, set2, cnUnchanged); return Summary.calcChangeOfMean(vals1, vals2) > 0; }