Session Data

Array
(
    [HubSpot] => Array
        (
            [hs_deal_id] => 53886912396
            [hs_company_id] => 28291014747
            [salesorderno] => 
            [repid] => 0076
            [contact_id] => 122149732374
            [contact_email] => amy@greenleaf-hc.com
            [contact_phone] => 562-698-0201
            [contact_address] => 6727 Greenleaf Ave., Whittier, CA, 90601, USA
            [company_name] => Greenleaf Heating & Cooling
            [company_mas_customer_no] => 
            [mas_customer_no] => 
            [FirstName] => Tony
            [LastName] => Hernandez
            [Zip] => 90601
            [Phone] => 5626980201
            [Email] => amy@greenleaf-hc.com
            [Address] => 6727 Greenleaf Ave.
            [City] => Whittier
            [State] => CA
            [Company] => 
        )

    [form_inputs] => Array
        (
            [initial] => Array
                (
                    [Company] => Greenleaf
                    [Contact_First] => Tony
                    [Contact_Last] => Hernandez
                    [Contact_Email] => 
                    [Contact_Phone] => 
                    [contactid] => 
                    [Zip] => 90601
                    [Email] => 
                    [Phone] => 
                    [place_id] => 
                )

            [gm_search] => Array
                (
                    [gm_account_no] => 151089
                    [mas_cust_no] => GRE9060
                )

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

            [billing] => Array
                (
                    [Company] => Greenleaf
                    [Contact_First] => Tony
                    [Contact_Last] => Hernandez
                    [Address1] => 6727 Greenleaf Ave.
                    [Address2] => 
                    [Address3] => 
                    [City] => Whittier
                    [State] => CA
                    [Zip] => 90601
                    [Country] => USA
                    [Email] => amy@greenleaf-hc.com
                    [Phone] => (562) 698-0201
                )

            [shipping] => Array
                (
                    [ShipToName] => Greenleaf
                    [Address1] => 6727 Greenleaf Ave.
                    [Address2] => 
                    [Address3] => 
                    [Address4] => 
                    [Address5] => 
                    [City] => Whittier
                    [State] => CA
                    [Zip] => 90601
                    [Country] => USA
                    [Email] => amy@greenleaf-hc.com
                    [Phone] => (562) 698-0201
                )

            [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] => 572.00
                    [lead_time] => 2-3 Weeks, depending on stock and availability.
                    [email_quote_to] => amy@greenleaf-hc.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] => /mnt/product_media/cleanleaf/pdf/ed400_compressed.pdf
                            [2] => /mnt/product_media/cleanleaf/pdf/ed400-ownersmanual_compressed.pdf
                            [3] => quote_bundle_separator
                        )

                    [act] => submit_quote
                )

        )

    [last_completed_step] => 5
    [gm_account_no] => 151089
    [mas_cust_no] => GRE9060
    [mas_cust_exists] => true
    [exportid] => 93974
    [masquotenum] => Q062961
    [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] => 572.00
    [lead_time] => 2-3 Weeks, depending on stock and availability.
    [email_quote_to] => amy@greenleaf-hc.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] => /mnt/product_media/cleanleaf/pdf/ed400_compressed.pdf [2] => /mnt/product_media/cleanleaf/pdf/ed400-ownersmanual_compressed.pdf [3] => quote_bundle_separator ) [act] => submit_quote )

Debug Data

start: 5.0067901611328E-6 secs since start
after getting new exportid ... 93974: 0.094413042068481 secs since start
Session ID: 8ep5mmceov021erahcjpiivg7r
just before engaging cartlink ...: 0.30291795730591 secs since start
after most cartlink items ...: 0.30410504341125 secs since start
after getting new so num ...: 0.45472407341003 secs since start
after remaining cartlink items ...: 0.45475697517395 secs since start
SO Number: Q062961
just prior to terms gathering ...: 0.45477294921875 secs since start
after getting customer terms ...: 0.54251503944397 secs since start
Cart Items:
Array
(
    [0] => Array
        (
            [sku] => ED400
            [name] => 400 CFM Portable Classroom HEPA Air Purifier

Dimensions: 14.5" x 14.5" x 23"

Weight: 45 lbs.

Color: Sandstone

Noise Level: 50dB (Low), 66dB (High) [qty] => 4 [price] => 764.99 [cost] => 459.00 [pdfFileURL] => ) )

not in mas
INSERT INTO `SO_SALESORDERHISTORYDETAIL` (`SALESORDERNO`,`ITEMCODE`,`ITEMCODEDESC`,`DROPSHIP`,`UNITCOST`,`QuantityOrderedRevised`,`QuantityOrderedOriginal`,`LastUnitPrice`,`LastExtensionAmt`,`ItemType`) VALUES ('Q062961','ED400','400 CFM Portable Classroom HEPA Air Purifier Dimensions: 14.5" x 14.5" x 23" Weight: 45 lbs. Color: Sandstone Noise Level: 50dB (Low), 66dB (High)','Y','459.00','4','4','764.99','3059.96','1')
save the exported shopping cart ...
Cart should now be empty/saved ...
after saving export to acsopa web db: 0.56679606437683 secs since start
generating quote pdf ...


ATTACHMENTS
arrPDFs:
Array
(
    [1] => /mnt/product_media/cleanleaf/pdf/ed400_compressed.pdf
    [2] => /mnt/product_media/cleanleaf/pdf/ed400-ownersmanual_compressed.pdf
)
arrIndividualPDFs:
Array
(
)
temp_url:/tmp/merged-pdf_1768427920_5737.pdf
after merging and generating email/quote PDFs ...: 64.567440986633 secs since start
File: files[Quote.pdf] => @
File DNE! Skipping ... :
File: files[Product_Literature.pdf] => @/tmp/merged-pdf_1768427920_5737.pdf
Rep opted not to send an email ...
after inserting/updating customer in v2 ...: 64.656420946121 secs since start
empty the shopping cart ...
Cart should now be empty ...
after running remote mas queries ...: 64.827221870422 secs since start
Connected to ACSOPA DBafter reconnecting to the acsopa db ...: 66.853886842728 secs since start
strJSON:
{"exportid":"93974","import_result":null,"import_error":"","fileurl":"GMImport_93974_1768427923_78267.acsopa","email_result":"email not sent","goldmine_import":null,"mas_import":"","generate_quote":"true","goldmine_company":"Greenleaf","goldmine_email":"amy@greenleaf-hc.com","goldmine_phone":"(562) 698-0201","mas_quote_number":"Q062961","mas_customer_number":"GRE9060"}
end: 67.97473692894 secs since start