IDEMPIERE-1443 leadconversion - can't translate
This commit is contained in:
parent
1b879bcd2a
commit
e2b9f877ee
|
@ -0,0 +1,16 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- 30/10/2013 12:11:00 PM COT
|
||||
-- IDEMPIERE-1443 leadconversion - can't translate
|
||||
UPDATE AD_Field SET IsAllowCopy='N',Updated=TO_DATE('2013-10-30 12:11:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62137
|
||||
;
|
||||
|
||||
-- 30/10/2013 12:12:23 PM COT
|
||||
-- IDEMPIERE-1443 leadconversion - can't translate
|
||||
UPDATE AD_Field SET IsAllowCopy='N',Updated=TO_DATE('2013-10-30 12:12:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62149
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201310301212_IDEMPIERE-1443.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
-- 30/10/2013 12:11:00 PM COT
|
||||
-- IDEMPIERE-1443 leadconversion - can't translate
|
||||
UPDATE AD_Field SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-10-30 12:11:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62137
|
||||
;
|
||||
|
||||
-- 30/10/2013 12:12:23 PM COT
|
||||
-- IDEMPIERE-1443 leadconversion - can't translate
|
||||
UPDATE AD_Field SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-10-30 12:12:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62149
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201310301212_IDEMPIERE-1443.sql') FROM dual
|
||||
;
|
||||
|
|
@ -68,7 +68,7 @@ public class ConvertLead extends SvrProcess {
|
|||
bp.setName(lead.getName());
|
||||
|
||||
bp.saveEx();
|
||||
addLog("Business Partner created.");
|
||||
addLog(bp.getC_BPartner_ID(), null, null, "@C_BPartner_ID@ @Created@", MBPartner.Table_ID, bp.getC_BPartner_ID());
|
||||
|
||||
lead.setC_BPartner_ID(bp.getC_BPartner_ID());
|
||||
|
||||
|
@ -88,7 +88,7 @@ public class ConvertLead extends SvrProcess {
|
|||
|
||||
lead.setC_BPartner_Location_ID(loc.getC_BPartner_Location_ID());
|
||||
|
||||
addLog("Contact Location added.");
|
||||
addLog("@C_BPartner_Location_ID@ @Created@");
|
||||
}
|
||||
|
||||
// company address
|
||||
|
@ -103,7 +103,7 @@ public class ConvertLead extends SvrProcess {
|
|||
loc.setC_Location_ID(address.getC_Location_ID());
|
||||
loc.saveEx();
|
||||
|
||||
addLog("BP Address added.");
|
||||
addLog("@C_Location_ID@ @Created@");
|
||||
}
|
||||
|
||||
if (p_createOpportunity )
|
||||
|
@ -139,15 +139,13 @@ public class ConvertLead extends SvrProcess {
|
|||
|
||||
op.saveEx();
|
||||
|
||||
addLog("Opportunity created.");
|
||||
addLog(op.getC_Opportunity_ID(), null, null, "@C_Opportunity_ID@ @Created@", MOpportunity.Table_ID, op.getC_Opportunity_ID());
|
||||
}
|
||||
|
||||
lead.setIsSalesLead(false);
|
||||
lead.setLeadStatus(MUser.LEADSTATUS_Converted);
|
||||
lead.saveEx();
|
||||
|
||||
addLog("Lead converted.");
|
||||
|
||||
return "@OK@";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue