Session Data

Array
(
    [copy_from_salesorderno] => Q060927
    [HubSpot] => Array
        (
            [hs_deal_id] => 48803630425
            [hs_company_id] => 25689890064
            [salesorderno] => Q060927
            [repid] => 0076
            [contact_id] => 113159924397
            [contact_email] => lovisa@farmacopiallc.com
            [contact_phone] => 7477454014
            [contact_address] => 
            [company_name] => Farmacopia, LLC
            [company_mas_customer_no] => 
            [mas_customer_no] => FAR9132
        )

    [form_inputs] => Array
        (
            [initial] => Array
                (
                    [Company] => Farmacopia, LLC
                    [Contact_First] => Wes
                    [Contact_Last] => Wes
                    [Zip] => 91324
                    [Email] => essey@dacut.com
                    [Phone] => 7146512043
                    [customerid] => 158479
                    [Contact_Email] => 
                    [Contact_Phone] => 
                    [contactid] => 
                    [place_id] => 
                    [mascustnum] => SEE9999
                )

            [gm_search] => Array
                (
                    [gm_account_no] => 158479
                    [mas_cust_no] => SEE9999
                )

            [billing] => Array
                (
                    [Company] => Farmacopia, LLC
                    [Contact_First] => Wes
                    [Contact_Last] => Wes
                    [Address1] => 9060 Winnetka Ave.
                    [Address2] => 
                    [Address3] => 
                    [City] => Northridge
                    [State] => CA
                    [Zip] => 91324
                    [Country] => USA
                    [Email] => essey@dacut.com
                    [Phone] => 7146512043
                )

            [shipping] => Array
                (
                    [ShipToName] => Farmacopia, LLC
                    [Address1] => 9060 Winnetka Ave.
                    [Address2] => 
                    [Address3] => 
                    [Address4] => 
                    [Address5] => 
                    [City] => Northridge
                    [State] => CA
                    [Zip] => 91324
                    [Country] => USA
                    [Email] => essey@dacut.com
                    [Phone] => 7146512043
                )

            [mas_search] => Array
                (
                    [mas_cust_no] => SEE9999
                    [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] => 209.30
                    [lead_time] => 1-2 Weeks, depending on stock and availability.
                    [email_quote_to] => essey@dacut.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] => 158479
    [mas_cust_no] => SEE9999
    [last_completed_step] => 5
    [copy_quote] => 1
    [mas_cust_exists] => true
    [exportid] => 91618
    [masquotenum] => Q060931
    [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] => 209.30
    [lead_time] => 1-2 Weeks, depending on stock and availability.
    [email_quote_to] => essey@dacut.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: 4.0531158447266E-6 secs since start
after getting new exportid ... 91618: 0.098577976226807 secs since start
Session ID: ip4423cannguv09kt4hj81gdhu
just before engaging cartlink ...: 0.30717706680298 secs since start
after most cartlink items ...: 0.30854201316833 secs since start
after getting new so num ...: 0.46116900444031 secs since start
after remaining cartlink items ...: 0.4612090587616 secs since start
SO Number: Q060931
just prior to terms gathering ...: 0.4612729549408 secs since start
after getting customer terms ...: 0.55186796188354 secs since start
Cart Items:
Array
(
    [0] => Array
        (
            [sku] => CLF-551298
            [name] => 25x15x12" 95% 8 Pocket Bag Filter
Merv 15
Packed 12 per Carton
Used in CL1250D-HE and FX-AC-1250D-HE [qty] => 12 [price] => 66.55 [cost] => 39.93 [pdfFileURL] => ) [1] => Array ( [sku] => CLF-5502 [name] => 25x15x2" Pleated Prefilter
Actual: 25x14.75x2
(Priced Each / Sold Individually) [qty] => 10 [price] => 16.46 [cost] => 8.23 [pdfFileURL] => ) )

not in mas
INSERT INTO `SO_SALESORDERHISTORYDETAIL` (`SALESORDERNO`,`ITEMCODE`,`ITEMCODEDESC`,`DROPSHIP`,`UNITCOST`,`QuantityOrderedRevised`,`QuantityOrderedOriginal`,`LastUnitPrice`,`LastExtensionAmt`,`ItemType`) VALUES ('Q060931','CLF-551298','25x15x12" 95% 8 Pocket Bag Filter Merv 15 Packed 12 per Carton Used in CL1250D-HE and FX-AC-1250D-HE','Y','39.93','12','12','66.55','798.60','1')
not in mas
INSERT INTO `SO_SALESORDERHISTORYDETAIL` (`SALESORDERNO`,`ITEMCODE`,`ITEMCODEDESC`,`DROPSHIP`,`UNITCOST`,`QuantityOrderedRevised`,`QuantityOrderedOriginal`,`LastUnitPrice`,`LastExtensionAmt`,`ItemType`) VALUES ('Q060931','CLF-5502','25x15x2" Pleated Prefilter Actual: 25x14.75x2 (Priced Each / Sold Individually)','Y','8.23','10','10','16.46','164.60','1')
save the exported shopping cart ...
Cart should now be empty/saved ...
after saving export to acsopa web db: 0.58344316482544 secs since start
generating quote pdf ...


ATTACHMENTS
arrPDFs:
Array
(
)
arrIndividualPDFs:
Array
(
)
temp_url:/tmp/merged-pdf_1762794024_6910.pdf
after merging and generating email/quote PDFs ...: 63.611736059189 secs since start
File: files[Quote.pdf] => @
File DNE! Skipping ... :
Rep opted not to send an email ...
after inserting/updating customer in v2 ...: 63.702074050903 secs since start
empty the shopping cart ...
Cart should now be empty ...
after running remote mas queries ...: 63.893887996674 secs since start
Connected to ACSOPA DBafter reconnecting to the acsopa db ...: 65.921486139297 secs since start
strJSON:
{"exportid":"91618","import_result":null,"import_error":"","fileurl":"GMImport_91618_1762794027_82105.acsopa","email_result":"email not sent","goldmine_import":null,"mas_import":"","generate_quote":"true","goldmine_company":"Farmacopia, LLC","goldmine_email":"essey@dacut.com","goldmine_phone":"7146512043","mas_quote_number":"Q060931","mas_customer_number":"SEE9999"}
end: 67.29612994194 secs since start