Session Data

Array
(
    [copy_from_salesorderno] => Q061976
    [HubSpot] => Array
        (
            [hs_deal_id] => 51629982476
            [hs_company_id] => 31019568541
            [salesorderno] => Q061976
            [repid] => 0076
            [contact_id] => 118577950738
            [contact_email] => dustin@highsocietydispo.com
            [contact_phone] => 9374474851
            [contact_address] => 48093
            [company_name] => High Society
            [company_mas_customer_no] => HIG4890
            [mas_customer_no] => HIG4809
        )

    [form_inputs] => Array
        (
            [initial] => Array
                (
                    [Company] => High Society
                    [Contact_First] => Dustin
                    [Contact_Last] => Meckes
                    [Zip] => 48093
                    [Email] => dustin@highsocietydispo.com
                    [Phone] => 9374474851
                    [customerid] => 168224
                    [Contact_Email] => 
                    [Contact_Phone] => 
                    [contactid] => 
                    [place_id] => 
                    [mascustnum] => HIG4890
                )

            [gm_search] => Array
                (
                    [gm_account_no] => 168224
                    [mas_cust_no] => HIG4890
                )

            [billing] => Array
                (
                    [Company] => High Society
                    [Contact_First] => Dustin
                    [Contact_Last] => Meckes
                    [Address1] => 6985 miller road
                    [Address2] => 
                    [Address3] => 
                    [City] => warren
                    [State] => MI
                    [Zip] => 48093
                    [Country] => USA
                    [Email] => dustin@highsocietydispo.com
                    [Phone] => 9374474851
                )

            [shipping] => Array
                (
                    [ShipToName] => High Society
                    [Address1] => 6985 miller road
                    [Address2] => 
                    [Address3] => 
                    [Address4] => 
                    [Address5] => 
                    [City] => warren
                    [State] => MI
                    [Zip] => 48093
                    [Country] => USA
                    [Email] => dustin@highsocietydispo.com
                    [Phone] => 9374474851
                )

            [mas_search] => Array
                (
                    [mas_cust_no] => HIG4890
                    [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] => true
                    [freight_type] => api_freight
                    [freight_estimate_value] => 419.90
                    [lead_time] => 1-2 Weeks, depending on stock and availability.
                    [email_quote_to] => dustin@highsocietydispo.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] => 168224
    [mas_cust_no] => HIG4890
    [last_completed_step] => 5
    [copy_quote] => 1
    [mas_cust_exists] => true
    [exportid] => 92857
    [masquotenum] => Q062008
    [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] => 419.90
    [lead_time] => 1-2 Weeks, depending on stock and availability.
    [email_quote_to] => dustin@highsocietydispo.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 ... 92857: 0.09476900100708 secs since start
Session ID: 8cau62f6p09oq43hhi2oplr1dj
just before engaging cartlink ...: 0.30046486854553 secs since start
after most cartlink items ...: 0.30175590515137 secs since start
after getting new so num ...: 0.45228886604309 secs since start
after remaining cartlink items ...: 0.45232391357422 secs since start
SO Number: Q062008
just prior to terms gathering ...: 0.4523389339447 secs since start
after getting customer terms ...: 0.86458897590637 secs since start
Cart Items:
Array
(
    [0] => Array
        (
            [sku] => CLF-5502
            [name] => 25x15x2" Pleated Prefilter
Actual: 25x14.75x2
(Priced Each / Sold Individually) [qty] => 62 [price] => 16.46 [cost] => 8.23 [pdfFileURL] => ) [1] => Array ( [sku] => CLF-5504-HHC [name] => 25x15x4 Ultrafine HEPA Glass Fiber Filter
Priced Each
Carton of 4 [qty] => 64 [price] => 99.70 [cost] => 59.82 [pdfFileURL] => ) )

not in mas
INSERT INTO `SO_SALESORDERHISTORYDETAIL` (`SALESORDERNO`,`ITEMCODE`,`ITEMCODEDESC`,`DROPSHIP`,`UNITCOST`,`QuantityOrderedRevised`,`QuantityOrderedOriginal`,`LastUnitPrice`,`LastExtensionAmt`,`ItemType`) VALUES ('Q062008','CLF-5502','25x15x2" Pleated Prefilter Actual: 25x14.75x2 (Priced Each / Sold Individually)','Y','8.23','62','62','16.46','1020.52','1')
not in mas
INSERT INTO `SO_SALESORDERHISTORYDETAIL` (`SALESORDERNO`,`ITEMCODE`,`ITEMCODEDESC`,`DROPSHIP`,`UNITCOST`,`QuantityOrderedRevised`,`QuantityOrderedOriginal`,`LastUnitPrice`,`LastExtensionAmt`,`ItemType`) VALUES ('Q062008','CLF-5504-HHC','25x15x4 Ultrafine HEPA Glass Fiber Filter Priced Each Carton of 4','Y','59.82','64','64','99.70','6380.80','1')
save the exported shopping cart ...
Cart should now be empty/saved ...
after saving export to acsopa web db: 0.89280295372009 secs since start
generating quote pdf ...


ATTACHMENTS
arrPDFs:
Array
(
)
arrIndividualPDFs:
Array
(
)
temp_url:/tmp/merged-pdf_1765468701_6622.pdf
after merging and generating email/quote PDFs ...: 63.402456045151 secs since start
File: files[Quote.pdf] => @
File DNE! Skipping ... :
Rep opted not to send an email ...
after inserting/updating customer in v2 ...: 63.491791009903 secs since start
empty the shopping cart ...
Cart should now be empty ...
after running remote mas queries ...: 63.683503866196 secs since start
Connected to ACSOPA DBafter reconnecting to the acsopa db ...: 65.711740016937 secs since start
strJSON:
{"exportid":"92857","import_result":null,"import_error":"","fileurl":"GMImport_92857_1765468704_53119.acsopa","email_result":"email not sent","goldmine_import":null,"mas_import":"","generate_quote":"true","goldmine_company":"High Society","goldmine_email":"dustin@highsocietydispo.com","goldmine_phone":"9374474851","mas_quote_number":"Q062008","mas_customer_number":"HIG4890"}
end: 66.836751937866 secs since start