hg merge release-2.1 (merge release2.1 into development)
This commit is contained in:
commit
bbb4d42d46
|
|
@ -196,12 +196,12 @@ public class BankStatementPayment extends SvrProcess
|
||||||
payment.setPayAmt(PayAmt);
|
payment.setPayAmt(PayAmt);
|
||||||
else // payment is likely to be negative
|
else // payment is likely to be negative
|
||||||
payment.setPayAmt(PayAmt.negate());
|
payment.setPayAmt(PayAmt.negate());
|
||||||
payment.setOverUnderAmt(invoice.getGrandTotal(true).subtract(payment.getPayAmt()));
|
payment.setOverUnderAmt(invoice.getOpenAmt().subtract(payment.getPayAmt()));
|
||||||
}
|
}
|
||||||
else // set Pay Amout from Invoice
|
else // set Pay Amout from Invoice
|
||||||
{
|
{
|
||||||
payment.setC_Currency_ID(invoice.getC_Currency_ID());
|
payment.setC_Currency_ID(invoice.getC_Currency_ID());
|
||||||
payment.setPayAmt(invoice.getGrandTotal(true));
|
payment.setPayAmt(invoice.getOpenAmt());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (C_BPartner_ID != 0)
|
else if (C_BPartner_ID != 0)
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ public class RollUpCosts extends SvrProcess {
|
||||||
{
|
{
|
||||||
StringBuilder sql = new StringBuilder("SELECT M_ProductBOM_ID FROM M_Product_BOM WHERE M_Product_ID = ? ")
|
StringBuilder sql = new StringBuilder("SELECT M_ProductBOM_ID FROM M_Product_BOM WHERE M_Product_ID = ? ")
|
||||||
.append(" AND AD_Client_ID = ").append(client_id);
|
.append(" AND AD_Client_ID = ").append(client_id);
|
||||||
int[] prodbomids = DB.getIDsEx(get_TrxName(), sql.toString(), client_id);
|
int[] prodbomids = DB.getIDsEx(get_TrxName(), sql.toString(), p_id);
|
||||||
|
|
||||||
for (int prodbomid : prodbomids) {
|
for (int prodbomid : prodbomids) {
|
||||||
if ( !processed.contains(p_id)) {
|
if ( !processed.contains(p_id)) {
|
||||||
|
|
|
||||||
|
|
@ -93,11 +93,12 @@ public class AttachmentFileSystem implements IAttachmentStore {
|
||||||
in.transferTo(0, in.size(), out);
|
in.transferTo(0, in.size(), out);
|
||||||
in.close();
|
in.close();
|
||||||
out.close();
|
out.close();
|
||||||
|
/* IDEMPIERE-2864
|
||||||
if(entryFile.exists()){
|
if(entryFile.exists()){
|
||||||
if(!entryFile.delete()){
|
if(!entryFile.delete()){
|
||||||
entryFile.deleteOnExit();
|
entryFile.deleteOnExit();
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
entryFile = destFile;
|
entryFile = destFile;
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,13 @@ public class AlertProcessor extends AdempiereServer
|
||||||
Collection<Integer> users = alert.getRecipientUsers();
|
Collection<Integer> users = alert.getRecipientUsers();
|
||||||
int countMail = notifyUsers(users, alert.getAlertSubject(), message.toString(), attachments);
|
int countMail = notifyUsers(users, alert.getAlertSubject(), message.toString(), attachments);
|
||||||
|
|
||||||
|
// IDEMPIERE-2864
|
||||||
|
for(File attachment : attachments)
|
||||||
|
{
|
||||||
|
if(attachment.exists() && !attachment.delete())
|
||||||
|
attachment.deleteOnExit();
|
||||||
|
}
|
||||||
|
|
||||||
m_summary.append(alert.getName()).append(" (EMails+Notes=").append(countMail).append(") - ");
|
m_summary.append(alert.getName()).append(" (EMails+Notes=").append(countMail).append(") - ");
|
||||||
return valid;
|
return valid;
|
||||||
} // processAlert
|
} // processAlert
|
||||||
|
|
|
||||||
|
|
@ -292,6 +292,13 @@ public class Scheduler extends AdempiereServer
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IDEMPIERE-2864
|
||||||
|
for(File file : fileList)
|
||||||
|
{
|
||||||
|
if(file.exists() && !file.delete())
|
||||||
|
file.deleteOnExit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return pi.getSummary();
|
return pi.getSummary();
|
||||||
|
|
|
||||||
|
|
@ -253,6 +253,7 @@ implements IFormController, EventListener<Event>, WTableModelListener, ValueChan
|
||||||
fieldAcctSchema.setValue(MClient.get(Env.getCtx()).getAcctSchema().getC_AcctSchema_ID());
|
fieldAcctSchema.setValue(MClient.get(Env.getCtx()).getAcctSchema().getC_AcctSchema_ID());
|
||||||
fieldAcctSchema.addValueChangeListener(this);
|
fieldAcctSchema.addValueChangeListener(this);
|
||||||
m_C_AcctSchema_ID = (Integer)fieldAcctSchema.getValue();
|
m_C_AcctSchema_ID = (Integer)fieldAcctSchema.getValue();
|
||||||
|
Env.setContext(Env.getCtx(), form.getWindowNo(), "C_AcctSchema_ID", m_C_AcctSchema_ID);
|
||||||
|
|
||||||
// Organization
|
// Organization
|
||||||
AD_Column_ID = FactReconcile.col_AD_Org_ID; //C_Period.AD_Org_ID (needed to allow org 0)
|
AD_Column_ID = FactReconcile.col_AD_Org_ID; //C_Period.AD_Org_ID (needed to allow org 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue