[url removed, login to view] Java Click-to-Apex

I need a [url removed, login to view] developer to solve the below for me. It should be very simple, with hopefully just a couple lines of code needed.

I've written the below Apex Class, which is called by the below OnClick JavaScript button on my custom Salesforce Object Interview.

The code works PERFECTLY when run in my Developer org, but when I launch it to Production (through a managed package) it does nothing.

I'd like someone to edit the code (or provide settings instructions) to make sure it will work in Production. Please help!

********** APEX CLASS **********

global class CreateInvoiceLines {

WebService static void CreateLines(string id) {

Interview__c i = [SELECT Id, Start_Date__c, Base_Salary_Hired__c, Opportunity__c, Fee_Payments__c, Fee_Percent__c, Lion__c, Lion_Name__c FROM Interview__c WHERE Id = :id LIMIT 1];

//fill the invoice line details

List<Invoice_Line__c> lines = new List<Invoice_Line__c>();

for(Integer x = 0; x < i.Fee_Payments__c; x++){

Invoice_Line__c l = new Invoice_Line__c(

Name = i.Lion_Name__c + ' - quarterly fee ' + (x+1) + ' of ' + i.Fee_Payments__c,

Interview_Detail__c = [url removed, login to view],

Invoice_Line_Amount__c = i.Base_Salary_Hired__c * i.Fee_Percent__c * [url removed, login to view]);

List<Invoice__c> invoices = [SELECT Id, Opportunity__c, Date_Sent__c FROM Invoice__c WHERE Opportunity__c =: i.Opportunity__c LIMIT 1000];

Date start = i.Start_Date__c;

Date first = [url removed, login to view]();

for(Invoice__c v : invoices){

if ([url removed, login to view](x*3) == v.Date_Sent__c){

l.Invoice__c = [url removed, login to view];



if (l.Invoice__c == null){

Invoice__c voice = new Invoice__c( Opportunity__c = i.Opportunity__c, Date_Sent__c = [url removed, login to view](x*3) );

insert voice;

l.Invoice__c = [url removed, login to view];


[url removed, login to view](l);


//save the invoice lines

insert lines;




{!REQUIRESCRIPT("/soap/ajax/15.0/[url removed, login to view]")}

{!REQUIRESCRIPT("/soap/ajax/15.0/[url removed, login to view]")}

[url removed, login to view]("[url removed, login to view]","CreateLines", {id:"{![url removed, login to view]}"});

[url removed, login to view]();

Compétences : Salesforce.com

Voir plus : salesforce onclick javascript, addmonths salesforce, java apex salesforce, static salesforce, salesforce developer work, production line, java developer help, works global, interview java developer, need salesforce developer, need java developer help, developer org, apex custom settings, apex addmonths, salesforce onclick java apex, salesforce java onclick, salesforce click javascript apex, javascript edit page, invoice works, developer salesforce, x js, void, salesforce, salesforce developer, salesforce apex

Concernant l'employeur :
( 5 commentaires ) San Francisco, United States

N° du projet : #1054367

2 freelance ont fait une offre moyenne de 175 $ pour ce travail


Our technical people can handle Salesforce.com projects in a best way to provide flexible solutions at each level of usage of the system. We have experienced people who dealt lump sum(More than 50) of salesforce.com pr Plus

200 $ USD en 5 jours
(1 Commentaire)

I would like to bid for this. I will try finish in 5 days. Payment after delivery. Thanks Mita

150 $ USD en 3 jours
(0 Commentaires)