Session Data

Array
(
    [copy_from_salesorderno] => Q061091
    [HubSpot] => Array
        (
            [hs_deal_id] => 48886978724
            [hs_company_id] => 31037253927
            [salesorderno] => Q061091
            [repid] => 0076
            [contact_id] => 129047465376
            [contact_email] => festrada@econtrols.com
            [contact_phone] => 210.488.1857
            [contact_address] => 5757 Farinon Drive, San Antonio, TX, 78249, United States
            [company_name] => Ethium, LLC
            [company_mas_customer_no] => ECO7824
            [mas_customer_no] => ECO7824
        )

    [form_inputs] => Array
        (
            [initial] => Array
                (
                    [Company] => Ethium, LLC
                    [Contact_First] => Ron
                    [Contact_Last] => Roth
                    [Zip] => 74133
                    [Email] => jmartinez@econtrols.com
                    [Phone] => 2104959772
                    [customerid] => 157621
                    [Contact_Email] => 
                    [Contact_Phone] => 
                    [contactid] => 
                    [place_id] => 
                    [mascustnum] => ECO7824
                )

            [gm_search] => Array
                (
                    [gm_account_no] => 157621
                    [mas_cust_no] => ECO7824
                )

            [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] => 2104959772
                )

            [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] => 2104959772
                )

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

            [leadid] => 0
            [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_value] => CallforFreight
                    [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
                )

        )

    [gm_account_no] => 157621
    [mas_cust_no] => ECO7824
    [last_completed_step] => 5
    [copy_quote] => 1
    [mas_cust_exists] => true
    [exportid] => 91799
    [masquotenum] => Q061092
    [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_value] => CallforFreight
    [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 ... 91799: 0.096218824386597 secs since start
Session ID: ip4423cannguv09kt4hj81gdhu
just before engaging cartlink ...: 0.30221486091614 secs since start
after most cartlink items ...: 0.30378890037537 secs since start
after getting new so num ...: 0.45543694496155 secs since start
after remaining cartlink items ...: 0.45547294616699 secs since start
SO Number: Q061092
just prior to terms gathering ...: 0.45548796653748 secs since start
after getting customer terms ...: 0.54543995857239 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] => 9 [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 ('Q061092','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','9','9','1122.00','10098.00','1')
save the exported shopping cart ...
Cart should now be empty/saved ...
after saving export to acsopa web db: 0.57015585899353 secs since start
generating quote pdf ...


ATTACHMENTS
arrPDFs:
Array
(
)
arrIndividualPDFs:
Array
(
)
temp_url:/tmp/merged-pdf_1762983684_6588.pdf
after merging and generating email/quote PDFs ...: 63.090242862701 secs since start
File: files[Quote.pdf] => @
File DNE! Skipping ... :
Rep opted not to send an email ...
after inserting/updating customer in v2 ...: 63.179092884064 secs since start
empty the shopping cart ...
Cart should now be empty ...
after running remote mas queries ...: 63.323971986771 secs since start
Connected to ACSOPA DBafter reconnecting to the acsopa db ...: 65.350597858429 secs since start
strJSON:
{"exportid":"91799","import_result":null,"import_error":"","fileurl":"GMImport_91799_1762983687_51230.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":"2104959772","mas_quote_number":"Q061092","mas_customer_number":"ECO7824"}
end: 66.345378875732 secs since start