Case: I need to make an invoice for a private person, not a company.
Workflow: create new invoice for new customer, enter Lastname, add invoice item and save it, save invoice

The following error occures:

PDOException: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined: SELECT customer_number FROM {invoice_customers} WHERE lastname = :lastname AND zipcode = :zipcode AND building_number = :building_number LIMIT 1; Array ( [0] => Mevr. S. ***** [1] => [2] => ) in invoice_node_presave() (regel 413 van /Applications/MAMP/htdocs/crm/sites/all/modules/invoice/invoice.module).

After that, when I create new invoice, the Invoice item from the previous case is allready there.

CommentFileSizeAuthor
#1 invoice-1207758-bug.patch816 bytesbaxr6

Comments

baxr6’s picture

StatusFileSize
new816 bytes

this is what I used to fix it....

pietervogelaar’s picture

Assigned: Unassigned » pietervogelaar
Status: Active » Fixed
pietervogelaar’s picture

Status: Fixed » Closed (fixed)