ok 7 - Correctly identified that no invoice id number exists for new customer. ok 8 - ->search_sl_customer_by_name_mech() found id: 10089 for newly created customer. Now creating new invoice for Testy D Tester. $url is: http://192.168.1.103/sl-test/is.pl?path=bin/mozilla&login=test_user&password=secret&action=Login&action=add&level=AR--Sales%20Invoice&login=test_user&js=1&type=invoice customer_id is: Testy D Tester--10089 Employee is: Finding Your Center Event Registration--10064 As partnumber_1 we will use G0002 $agent reports that invoice was successfully updated \$agent reports that invoice was successfully posted We're about to search_sl_invoice_mech for Testy D Tester--10089 at this point . . . We have search_sl_invoice_mech and found || . . . $VAR1 = { 'pdf_path' => '', 'amount' => undef, 'customer' => 'Testy D Tester', 'id' => 0, 'event' => '', 'html_path' => '' }; Have now grabbed id: 0 for $0.00 as the new invoice.
Delete this croak statement to run rest of test script.