• mustapha laouari 15
  • NEWBIE
  • 30 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 8
    Replies
Hello everyone,

In QuoteLineItem, i have a custom field : Benefit
Into Quote i have a custom field : total Benefit which is the Sum(Benefit)
Everything fine !
Each time I make a change on QuoteLineItem, i fire a trigger (AFTER insert/Update) in charge to copy the Sum(Benefit) result into the Opportunity.
Problem is that on Opportunity I always have the Previous result of Sum(Benefit) ...

could you help please ?
Thanks you
Hello Everybody,

I m looking for some assistance please.
im running a basic Osql query : 
public List<Quote> getclosedwonlist() {
  		return [SELECT Id, Quote.Name, Opportunity.status FROM Quote WHERE Opportunity.status='Closed Won' ORDER BY Id];
	}
Even there is a relationship between Quote and Opportunity, system return the following error :

No such column 'status' on entity 'Opportunity'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

By advance thank you
Hi there,
i did a method supposed to redirct into Quote details page, but it doesnt couldyou help please.
the method is excuted success, but redirect doesn't work.
qid is the ID of the quote.

Many thanks
public PageReference redirectQ(id qid){
        System.debug('STARTING redirectQ: '+qid);
		quote q = [SELECT id, name FROM QUOTE WHERE id=:qid];
         System.debug('quote q: '+ q);
        PageReference QuotePage = new PageReference(qid);
        System.debug('QuotePage: ' + QuotePage);
        QuotePage.setRedirect(true);
        return QuotePage;
    }

 
Hi there ! 
I created a class and methods which are n charge to fill a custom fields before Quote line items insert.
We using Classic version and everything run fine.
We plan to move to lightning and ... for unknown reason it doesn't work.

the method is quite easy
   public static void ItemProfit(List<QuoteLineItem> QliList) {
        System.debug('STARTING ItemProfit');
         for (QuoteLineItem qli : QliList){
             System.debug('product2Id' + qli.Product2Id);

When running from classing the product2Id returns value... the rest of process is based on this.
When running on Lightning the product2Id is null

Not any sense for me, how interface could impact classe ???

Thank you for you help?
Hello everyone,

In QuoteLineItem, i have a custom field : Benefit
Into Quote i have a custom field : total Benefit which is the Sum(Benefit)
Everything fine !
Each time I make a change on QuoteLineItem, i fire a trigger (AFTER insert/Update) in charge to copy the Sum(Benefit) result into the Opportunity.
Problem is that on Opportunity I always have the Previous result of Sum(Benefit) ...

could you help please ?
Thanks you
Hello Everybody,

I m looking for some assistance please.
im running a basic Osql query : 
public List<Quote> getclosedwonlist() {
  		return [SELECT Id, Quote.Name, Opportunity.status FROM Quote WHERE Opportunity.status='Closed Won' ORDER BY Id];
	}
Even there is a relationship between Quote and Opportunity, system return the following error :

No such column 'status' on entity 'Opportunity'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

By advance thank you
Hi there,
i did a method supposed to redirct into Quote details page, but it doesnt couldyou help please.
the method is excuted success, but redirect doesn't work.
qid is the ID of the quote.

Many thanks
public PageReference redirectQ(id qid){
        System.debug('STARTING redirectQ: '+qid);
		quote q = [SELECT id, name FROM QUOTE WHERE id=:qid];
         System.debug('quote q: '+ q);
        PageReference QuotePage = new PageReference(qid);
        System.debug('QuotePage: ' + QuotePage);
        QuotePage.setRedirect(true);
        return QuotePage;
    }