other two little bug fixes reported
This commit is contained in:
parent
7f04daf9cc
commit
baeaa60825
|
|
@ -726,16 +726,16 @@ public class MCost extends X_M_Cost
|
||||||
for (int o = 0; o < orgs.length; o++)
|
for (int o = 0; o < orgs.length; o++)
|
||||||
{
|
{
|
||||||
MCost cost = MCost.get (product, M_ASI_ID,
|
MCost cost = MCost.get (product, M_ASI_ID,
|
||||||
as, orgs[i].getAD_Org_ID(), ce.getM_CostElement_ID());
|
as, orgs[o].getAD_Org_ID(), ce.getM_CostElement_ID());
|
||||||
if (cost.is_new())
|
if (cost.is_new())
|
||||||
{
|
{
|
||||||
if (cost.save())
|
if (cost.save())
|
||||||
s_log.config("Std.Cost for " + product.getName()
|
s_log.config("Std.Cost for " + product.getName()
|
||||||
+ " - " + orgs[i].getName()
|
+ " - " + orgs[o].getName()
|
||||||
+ " - " + as.getName());
|
+ " - " + as.getName());
|
||||||
else
|
else
|
||||||
s_log.warning("Not created: Std.Cost for " + product.getName()
|
s_log.warning("Not created: Std.Cost for " + product.getName()
|
||||||
+ " - " + orgs[i].getName()
|
+ " - " + orgs[o].getName()
|
||||||
+ " - " + as.getName());
|
+ " - " + as.getName());
|
||||||
}
|
}
|
||||||
} // for all orgs
|
} // for all orgs
|
||||||
|
|
|
||||||
|
|
@ -306,6 +306,8 @@ public class ImportBPartner extends SvrProcess
|
||||||
bp.setTaxID(impBP.getTaxID());
|
bp.setTaxID(impBP.getTaxID());
|
||||||
if (impBP.getNAICS() != null)
|
if (impBP.getNAICS() != null)
|
||||||
bp.setNAICS(impBP.getNAICS());
|
bp.setNAICS(impBP.getNAICS());
|
||||||
|
if (impBP.getDescription() != null)
|
||||||
|
bp.setDescription(impBP.getDescription());
|
||||||
if (impBP.getC_BP_Group_ID() != 0)
|
if (impBP.getC_BP_Group_ID() != 0)
|
||||||
bp.setC_BP_Group_ID(impBP.getC_BP_Group_ID());
|
bp.setC_BP_Group_ID(impBP.getC_BP_Group_ID());
|
||||||
//
|
//
|
||||||
|
|
@ -470,7 +472,7 @@ public class ImportBPartner extends SvrProcess
|
||||||
user.setDescription(impBP.getContactDescription());
|
user.setDescription(impBP.getContactDescription());
|
||||||
user.setComments(impBP.getComments());
|
user.setComments(impBP.getComments());
|
||||||
user.setPhone(impBP.getPhone());
|
user.setPhone(impBP.getPhone());
|
||||||
user.setPhone(impBP.getPhone2());
|
user.setPhone2(impBP.getPhone2());
|
||||||
user.setFax(impBP.getFax());
|
user.setFax(impBP.getFax());
|
||||||
user.setEMail(impBP.getEMail());
|
user.setEMail(impBP.getEMail());
|
||||||
user.setBirthday(impBP.getBirthday());
|
user.setBirthday(impBP.getBirthday());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue