Happy Business Starts Here

Valued Scholar

zqu.zCharge class LIST_PRICE != zqu__ListPrice__c

Why doesn't my zCharge object (obtained by executing code below in Developer Console) match my Quote Charge record?

zqu.zCharge class

LIST_PRICE=0.59
LIST_TOTAL=0.59

 

 

zqu__QuoteCharge__c (Copied and pasted from the Quote Charge Screen in Salesforce) 

List Price Display    USD 0.19

List Total                      0.19

 

 

(Executed in Developer Console)

List<zqu.zChargeGroup> chargeGroups = zqu.zQuoteUtil.getChargeGroups('a0N4B000000xxxx');
for (zqu.zChargeGroup chargeGroup : chargeGroups )
   {
   for(zqu.zCharge charge : chargeGroup.zCharges )
      { 
      system.debug('charge: ' + charge);
      }
   }

6 REPLIES 6
Highlighted
Support SME

Re: zqu.zCharge class LIST_PRICE != zqu__ListPrice__c

Hello,

 

I will test this on my local org and see how it behaves.

I will get back to you once I have an update

 

Thank you
Doyeli






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Support SME

Re: zqu.zCharge class LIST_PRICE != zqu__ListPrice__c

Hi,

 

Can you please confirm the version of ZQuote you are on?

 

Thank you
Doyeli






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Valued Scholar

Re: zqu.zCharge class LIST_PRICE != zqu__ListPrice__c

Zuora for Salesforce Quotes version 6.2.1

Support SME

Re: zqu.zCharge class LIST_PRICE != zqu__ListPrice__c

Thank you for the information.

The version of ZQuote that I have is newer than yours and it does not use the Quote charge Object anymore. Instead, Quote rate Plan charge object is used.

Let me test on my end to see how it behaves with Quote Rate Plan charge Object.

I will post an update as soon as I have one.

 

Thank you

Doyeli






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Support SME

Re: zqu.zCharge class LIST_PRICE != zqu__ListPrice__c

Hello,

 

I have tested in my ZQuote 6.54 enviroment that makes use of Quote Rate Plan Charge Object and not Quote Charge Object.

I could not reproduce the behavior you described.

List price value is the same when I run the code that you shared and when I run the following query:

 

select id,name,zqu__ListPrice__c from zqu__QuoteRatePlanCharge__c where id = 'a0j1a000001KKae'

 

Are you seeing the issue with every single Quote Charge?

Is this on your production or sandbox environment?

 

Thank you
Doyeli






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Valued Scholar

Re: zqu.zCharge class LIST_PRICE != zqu__ListPrice__c

Please provide technical documentation on how the zCharge class populates the LIST_PRICE property. Trying to figure this out by trial and error isn't working and isn't time efficient.  

I'm afraid I'm out of time trying to explain this and will have to report back to my stakeholders that once again, I can't make the changes they requested.