-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
| $userid = $order['userid']; |
Should be $userid = $invoice['userid'];. Not all invoices will have an order (e.g. recurrent items) so the user id should be retrieved from the invoice id, otherwise the value will be nulll and this error will happen:
"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'userid' cannot be null (SQL: insert into tblinvoiceitems (invoiceid, userid, relid, description, amount, taxed, duedate, paymentmethod) values (11156, ?, 0, Desconto no boleto Gerencianet: 2% sobre o valor da cobrança., -0.50, 0, 2022-03-16, gerencianetcharge))"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels