Session Data

Array
(
    [HubSpot] => Array
        (
            [hs_deal_id] => 48886978724
            [hs_company_id] => 35170959223
            [salesorderno] => 
            [repid] => 0076
            [contact_id] => 129047465376
            [contact_email] => festrada@econtrols.com
            [contact_phone] => 12104881857
            [contact_address] => 78249, United States
            [company_name] => E Controls
            [company_mas_customer_no] => ECO782A
            [mas_customer_no] => 
        )

    [form_inputs] => Array
        (
            [initial] => Array
                (
                    [Company] => E Controls
                    [Contact_First] => Frank
                    [Contact_Last] => Estrada
                    [Contact_Email] => 
                    [Contact_Phone] => 
                    [contactid] => 
                    [Zip] => 78249
                    [Email] => 
                    [Phone] => 
                    [place_id] => 
                    [customerid] => 211018
                    [mascustnum] => ECO782A
                )

            [gm_search] => Array
                (
                    [gm_account_no] => 211018
                    [mas_cust_no] => ECO782A
                )

            [mas_search] => Array
                (
                    [mas_cust_no] => ECO782A
                    [mas_cust_exists] => true
                )

            [billing] => Array
                (
                    [Company] => E Controls
                    [Contact_First] => Frank
                    [Contact_Last] => Estrada
                    [Address1] => 5757 Farinon Drive
                    [Address2] => 
                    [Address3] => 
                    [City] => San Antonio
                    [State] => TX
                    [Zip] => 78249
                    [Country] => USA
                    [Email] => festrada@econtrols.com
                    [Phone] => (210) 488-1857
                )

            [shipping] => Array
                (
                    [ShipToName] => E Controls
                    [Address1] => 5757 Farinon Drive
                    [Address2] => 
                    [Address3] => 
                    [Address4] => 
                    [Address5] => 
                    [City] => San Antonio
                    [State] => TX
                    [Zip] => 78249
                    [Country] => USA
                    [Email] => festrada@econtrols.com
                    [Phone] => (210) 488-1857
                )

            [leadid] => 
            [summary] => Array
                (
                    [SalesPersonNo] => 0076
                    [ProductLine] => CL
                    [forecasting_likelihood] => 
                    [forecasting_expected_close_date] => 
                    [generate_quote] => true
                    [not_in_mas] => true
                    [delivery_disclaimer] => true
                    [tax_free] => true
                    [freight_estimate] => true
                    [freight_type] => api_freight
                    [freight_estimate_value] => 2002.00
                    [lead_time] => 1-2 Weeks, depending on stock and availability.
                    [email_quote_to] => festrada@econtrols.com
                    [template_id] => 489
                    [email_quote_subject] => Your CleanLeaf CL3000-CF Air Filtration Quote - Flowering Room
                    [files] => 
                    [email_product_literature] => true
                    [includedPDFs] => Array
                        (
                            [0] => {QUOTE}
                            [1] => quote_bundle_separator
                        )

                    [act] => submit_quote
                )

        )

    [last_completed_step] => 5
    [gm_account_no] => 211018
    [mas_cust_no] => ECO782A
    [mas_cust_exists] => true
    [exportid] => 91698
    [masquotenum] => Q060999
    [not_in_mas] => 1
)

POST Data

Array
(
    [SalesPersonNo] => 0076
    [ProductLine] => CL
    [forecasting_likelihood] => 
    [forecasting_expected_close_date] => 
    [generate_quote] => true
    [not_in_mas] => true
    [delivery_disclaimer] => true
    [tax_free] => true
    [freight_estimate] => true
    [freight_type] => api_freight
    [freight_estimate_value] => 2002.00
    [lead_time] => 1-2 Weeks, depending on stock and availability.
    [email_quote_to] => festrada@econtrols.com
    [template_id] => 489
    [email_quote_subject] => Your CleanLeaf CL3000-CF Air Filtration Quote - Flowering Room
    [email_quote_body] => 

Hello <<&dear>>,

It was great speaking with you.

Attached is your quote and product literature.

Filter Change Schedule

Pre-filter:  2 Flower cycles
Bag:      6 Flower cycles
Carbon:    6 Flower cycles

If you have any questions, don't hesitate to contact me. 

Sincerely,


<<&RepName>>

CleanLeaf
11088 Gravois Industrial Ct.
Saint Louis, MO 63128
866 999-9008 Ext. <<&RepPhoneExt>>
866 422-4099 Fax
<<&RepEmail>>
http://www.cleanleaf.com/



[files] => [email_product_literature] => true [includedPDFs] => Array ( [0] => {QUOTE} [1] => quote_bundle_separator ) [act] => submit_quote )

Debug Data

start: 5.0067901611328E-6 secs since start
after getting new exportid ... 91698: 0.1088719367981 secs since start
Session ID: ip4423cannguv09kt4hj81gdhu
just before engaging cartlink ...: 0.32103681564331 secs since start
after most cartlink items ...: 0.32239198684692 secs since start
after getting new so num ...: 0.47375082969666 secs since start
after remaining cartlink items ...: 0.4737868309021 secs since start
SO Number: Q060999
just prior to terms gathering ...: 0.47380399703979 secs since start
after getting customer terms ...: 0.56984901428223 secs since start
Cart Items:
Array
(
    [0] => Array
        (
            [sku] => CLF-2500DCCP-1YRKIT
            [name] => 1 year kit of filters for CL2500D-CCP Includes:	

4x CLF-6604 (26x26x4 Pleated Prefilter; changed quarterly)
1x CLF-6602 (26x26x2" Pleated After-Filter; changed annually)
16x CLF-C-100C (100% Activated Carbon Canister; changed annually)

*Filter configurations and change-out times are based on standard recommendations. Yours may vary, if unsure, please contact your salesperson. [qty] => 3 [price] => 1,122.00 [cost] => 409.07 [pdfFileURL] => ) )

not in mas
INSERT INTO `SO_SALESORDERHISTORYDETAIL` (`SALESORDERNO`,`ITEMCODE`,`ITEMCODEDESC`,`DROPSHIP`,`UNITCOST`,`QuantityOrderedRevised`,`QuantityOrderedOriginal`,`LastUnitPrice`,`LastExtensionAmt`,`ItemType`) VALUES ('Q060999','CLF-2500DCCP-1YRKIT','1 year kit of filters for CL2500D-CCP Includes: 4x CLF-6604 (26x26x4 Pleated Prefilter; changed quarterly) 1x CLF-6602 (26x26x2" Pleated After-Filter; changed annually) 16x CLF-C-100C (100% Activated Carbon Canister; changed annually) *Filter configurations and change-out times are based on standard recommendations. Yours may vary, if unsure, please contact your salesperson.','Y','409.07','3','3','1122.00','3366.00','1')
save the exported shopping cart ...
Cart should now be empty/saved ...
after saving export to acsopa web db: 0.59456300735474 secs since start
generating quote pdf ...


ATTACHMENTS
arrPDFs:
Array
(
)
arrIndividualPDFs:
Array
(
)
temp_url:/tmp/merged-pdf_1762883260_1616.pdf
after merging and generating email/quote PDFs ...: 63.069329977036 secs since start
File: files[Quote.pdf] => @
File DNE! Skipping ... :
Rep opted not to send an email ...
after inserting/updating customer in v2 ...: 63.157393932343 secs since start
empty the shopping cart ...
Cart should now be empty ...
after running remote mas queries ...: 63.326094865799 secs since start
Connected to ACSOPA DBafter reconnecting to the acsopa db ...: 65.353314876556 secs since start
strJSON:
{"exportid":"91698","import_result":null,"import_error":"","fileurl":"GMImport_91698_1762883262_94058.acsopa","email_result":"email not sent","goldmine_import":null,"mas_import":"","generate_quote":"true","goldmine_company":"E Controls","goldmine_email":"festrada@econtrols.com","goldmine_phone":"(210) 488-1857","mas_quote_number":"Q060999","mas_customer_number":"ECO782A"}
end: 66.511658906937 secs since start