You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))"
The text was updated successfully, but these errors were encountered:
gn-api-whmcs/gerencianet_lib/Gerencianet_WHMCS_Interface.php
Line 60 in c02005b
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))"The text was updated successfully, but these errors were encountered: