TakePos "Erreur Aucun paiement défini"

Hi to All,
i hope every one doing well

i have issue with TakePOS Module

Dolibarr has detected a technical error.
This information may be useful for diagnostic purposes (you can set the $dolibarr_main_prod option to ‘1’ to hide sensitive information):
Date: 20250819204957
Dolibarr: 18.0.5 - https://www.dolibarr.org
Feature Level: 0
PHP: 8.1.32
Server: LiteSpeed
OS: Linux fr-int-web1043.main-hosting.eu 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
.
Requested URL: /htdocs/takepos/invoice.php?place=0&action=valid&token=235bc3fe2fd4fab23e11a67597fde794&pay=LIQ
Referer: https://*******.com/htdocs/takepos/index.php?idmenu=24566&mainmenu=takepos&leftmenu=
Menu Manager:
.
Modules/Applications: user, multicompany, syslog, bookmark, ecm, stock, accounting, paymentbybanktransfer, fckeditor, totp2fa, bank, invoice, product, category, workflow, company, stocktransfer, fontchooser, takepos, supplier, barcode, margin, tax, agenda
Database Manager Type: mysqli
Query last database access in error: INSERT INTO llx_bank (datec, dateo, datev, label, amount, amount_main_currency, fk_user_author, num_chq, fk_account, fk_type, emetteur,banque, rappro, numero_compte, num_releve) VALUES (‘2025-08-19 20:49:57’, ‘2025-08-19 20:49:57’, ‘2025-08-19 20:49:57’, ‘(CustomerInvoicePayment)’, , NULL, 1, ‘250846700417’, ‘16’, ‘LIQ’, null, null, 0, ‘’, null)
Return code last database access in error: DB_ERROR_SYNTAX
Information on the last database access in error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ’ NULL, 1, ‘250846700417’, ‘16’, ‘LIQ’, null, null, 0, ‘’, null)’ at line 1
.
Error No payment defined

Please let me know how to fix this isssue
Thank you very much.

My recommendation is that you update Dolibarr, we are on version 22.0.0 now and maybe this issue has been fixed.