SCMQT

scmqt.CustomerQuotationController

global with sharing class CustomerQuotationController

This class is used to update the change request from a change request customer quotation and to print the customer quotation.

Author

Financial Force, Inc.

Properties

Name Type Description
isTest Boolean
quoteExtended SCMC__Customer_Quotation__c
totalQuoteValue SCMC__Customer_Quotation__c
totalQty Double
displayGroupHeaderDetails Boolean
decimalFormatStringForLocale String
bidLines2 List<scmqt.CustomerQuotationLineExtended> An array of CustomerQuotationLineExtended that contains customer quotation lines that prices were provided for. @return bidLines2, An array of CustomerQuotationLineExtended. @throws noException This method does not throw an exception.
noBidLines2 List<scmqt.CustomerQuotationLineExtended> An array of CustomerQuotationLineExtended that contains customer quotation lines that prices were not provided for. @return bidLines2, An array of CustomerQuotationLineExtended. @throws noException This method does not throw an exception.
hasCQLBidLines Boolean An boolean that checks to see if there are any customer quotation lines that prices were provided for. @return hasCQLBidLines, An Boolean @throws noException This method does not throw an exception.
hasNoCQLBidLines Boolean An boolean that checks to see if there are any customer quotation lines that prices were not provided for. @return hasNoCQLBidLines, An Boolean @throws noException This method does not throw an exception.
CQID String The customer quotation id that class needs to setup the initial load @return CQID, An String of the customer quotation id @throws noException This method does not throw an exception.

Methods

CustomerQuotationController

global CustomerQuotationController(SCMC.CustomerQuotationController controller)

CustomerQuotationController

global CustomerQuotationController(SCMC__Customer_Quotation__c cq)

Class constructor.

Input Parameters

Name Type Description
cq SCMC__Customer_Quotation__c The customer quotation from which you want to update the change request.

Exceptions Thrown

Value Description
noException This method does not throw an exception.

Return Value

Does not return a value.

CustomerQuotationController

global CustomerQuotationController(ApexPages.StandardController stdController)

Class constructor.

Input Parameters

Name Type Description
stdController ApexPages.StandardController The ApexPage.StandardController for customer quotation

Exceptions Thrown

Value Description
noException This method does not throw an exception.

Return Value

Does not return a value.

init

global void init(ID itemID)

The initial setup of the controller details. It must initialized by calling CQID or by calling the method.

Exceptions Thrown

Value Description
noException This method does not throw an exception.

goBack

global PageReference goBack()

The goBack is used like a back button.

Exceptions Thrown

Value Description
noException This method does not throw an exception.

Return Value

PageReference, Returns the user back to standard controller view.

print

global PageReference print()

Print the customer quotation in a PDF format.

Exceptions Thrown

Value Description
noException This method does not throw an exception.

Return Value

PageReference, Prints off the customer quotation

convertToServiceOrderAutomatically

global void convertToServiceOrderAutomatically()

convertToServiceOrderAutomatically, Converts a customer quotation to a service contract.

Exceptions Thrown

Value Description
aqCustomerQuotationException If there are issues with converting contract quote to a contract.

convertToServiceOrder

global PageReference convertToServiceOrder()

convertToServiceOrderAutomatically, Converts a customer quotation to a contract.

Exceptions Thrown

Value Description
aqCustomerQuotationException If there are issues with converting contract quote to contract.

Return Value

PageReference, Returns the contract standard view.

updateToChangeRequestAutomatically

global void updateToChangeRequestAutomatically()

updateToChangeRequestAutomatically, Updates the change request with information on the customer quotation.

Exceptions Thrown

Value Description
aqCustomerQuotationException If there are issues with updating the change request.

updateToChangeRequest

global PageReference updateToChangeRequest()

updateToChangeRequestAutomatically, Updates the change request with information on the customer quotation.

Exceptions Thrown

Value Description
aqCustomerQuotationException If there are issues with updating the change request.

Return Value

PageReference, Returns the change request standard view.

© Copyright 2009–2018 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.