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++)
|
||||
{
|
||||
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.save())
|
||||
s_log.config("Std.Cost for " + product.getName()
|
||||
+ " - " + orgs[i].getName()
|
||||
+ " - " + orgs[o].getName()
|
||||
+ " - " + as.getName());
|
||||
else
|
||||
s_log.warning("Not created: Std.Cost for " + product.getName()
|
||||
+ " - " + orgs[i].getName()
|
||||
+ " - " + orgs[o].getName()
|
||||
+ " - " + as.getName());
|
||||
}
|
||||
} // for all orgs
|
||||
|
|
|
@ -305,7 +305,9 @@ public class ImportBPartner extends SvrProcess
|
|||
if (impBP.getTaxID() != null)
|
||||
bp.setTaxID(impBP.getTaxID());
|
||||
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)
|
||||
bp.setC_BP_Group_ID(impBP.getC_BP_Group_ID());
|
||||
//
|
||||
|
@ -470,7 +472,7 @@ public class ImportBPartner extends SvrProcess
|
|||
user.setDescription(impBP.getContactDescription());
|
||||
user.setComments(impBP.getComments());
|
||||
user.setPhone(impBP.getPhone());
|
||||
user.setPhone(impBP.getPhone2());
|
||||
user.setPhone2(impBP.getPhone2());
|
||||
user.setFax(impBP.getFax());
|
||||
user.setEMail(impBP.getEMail());
|
||||
user.setBirthday(impBP.getBirthday());
|
||||
|
|
Loading…
Reference in New Issue