hg merge release-2.0 (merge release2 into development)

This commit is contained in:
Carlos Ruiz 2014-01-08 22:03:33 -05:00
commit 536f700fa4
5 changed files with 3196 additions and 2 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -266,6 +266,7 @@ public abstract class Doc
log.severe(msg);
throw new IllegalArgumentException(msg);
}
p_po.load(p_po.get_TrxName()); // reload the PO to get any virtual column that was not obtained using the rs (IDEMPIERE-775)
// DocStatus
int index = p_po.get_ColumnIndex("DocStatus");

View File

@ -1623,8 +1623,14 @@ public final class MPayment extends X_C_Payment
if (pAllocs.length > 0) {
for (MPaymentAllocate pAlloc : pAllocs)
sumPaymentAllocates = sumPaymentAllocates.add(pAlloc.getAmount());
if (getPayAmt().compareTo(sumPaymentAllocates) != 0)
if (getPayAmt().compareTo(sumPaymentAllocates) != 0) {
if (isReceipt() && getPayAmt().compareTo(sumPaymentAllocates) < 0) {
if (MSysConfig.getBooleanValue("ALLOW_OVER_APPLIED_PAYMENT", false, Env.getAD_Client_ID(Env.getCtx()))) {
return true;
}
}
return false;
}
}
return true;
}

View File

@ -1597,7 +1597,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
adTabbox.evaluate(e);
}
toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted());
toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted() && !adTabbox.getSelectedGridTab().isNew());
toolbar.enableReport(true);
toolbar.enableExport(!adTabbox.getSelectedGridTab().isSortTab());
toolbar.enableFileImport(!changed && !adTabbox.getSelectedGridTab().isSortTab() && adTabbox.getSelectedGridTab().isInsertRecord());