wrongecho johnny
Tried other clients as well - doesn't matter - all new quotes and invoices don't show up. Tickets work fine.
Will try replacing invoices.php later this evening. Working at job site now. Just remoted in to get this info for you.
MariaDB [itflow]> SELECT * FROM invoices WHERE invoice_client_id = 31
-> ;
+------------+----------------+----------------+----------------------------+----------------+--------------+-------------+-------------------------+----------------+-----------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+---------------------+------------------------------+-------------------+
| invoice_id | invoice_prefix | invoice_number | invoice_scope | invoice_status | invoice_date | invoice_due | invoice_discount_amount | invoice_amount | invoice_currency_code | invoice_note | invoice_url_key | invoice_created_at | invoice_updated_at | invoice_archived_at | invoice_category_id | invoice_recurring_invoice_id | invoice_client_id |
+------------+----------------+----------------+----------------------------+----------------+--------------+-------------+-------------------------+----------------+-----------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+---------------------+------------------------------+-------------------+
| 59 | INV- | 1643545 | Camera System and firewall | Draft | 2025-04-14 | 2025-05-14 | 0.00 | 106.99 | USD | NULL | kflSPAZC0uNA0qFx57K59bbB65aSCgldEqFsOCgRYWAhoPP4JilxyHx0tL0Bntuiyz7qwmPFTpNQX9ZVfz8kRIqLn090K8LONTmUJY6dYrp7GDuJMiCAmWnZC0Dk9K8tLIXXqYpEPyE55DHkgSqoO4mN4zpQ | 2025-04-10 21:49:27 | 2025-04-10 21:49:54 | NULL | 4 | 0 | 31 |
+------------+----------------+----------------+----------------------------+----------------+--------------+-------------+-------------------------+----------------+-----------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+---------------------+------------------------------+-------------------+
1 row in set (0.000 sec)
MariaDB [itflow]> SELECT * FROM invoices WHERE invoice_client_id = X AND invoice_status = 'Draft';
ERROR 1054 (42S22): Unknown column 'X' in 'WHERE'
MariaDB [itflow]> SELECT * FROM invoices WHERE invoice_client_id = 31 AND invoice_status = 'Draft';
+------------+----------------+----------------+----------------------------+----------------+--------------+-------------+-------------------------+----------------+-----------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+---------------------+------------------------------+-------------------+
| invoice_id | invoice_prefix | invoice_number | invoice_scope | invoice_status | invoice_date | invoice_due | invoice_discount_amount | invoice_amount | invoice_currency_code | invoice_note | invoice_url_key | invoice_created_at | invoice_updated_at | invoice_archived_at | invoice_category_id | invoice_recurring_invoice_id | invoice_client_id |
+------------+----------------+----------------+----------------------------+----------------+--------------+-------------+-------------------------+----------------+-----------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+---------------------+------------------------------+-------------------+
| 59 | INV- | 1643545 | Camera System and firewall | Draft | 2025-04-14 | 2025-05-14 | 0.00 | 106.99 | USD | NULL | kflSPAZC0uNA0qFx57K59bbB65aSCgldEqFsOCgRYWAhoPP4JilxyHx0tL0Bntuiyz7qwmPFTpNQX9ZVfz8kRIqLn090K8LONTmUJY6dYrp7GDuJMiCAmWnZC0Dk9K8tLIXXqYpEPyE55DHkgSqoO4mN4zpQ | 2025-04-10 21:49:27 | 2025-04-10 21:49:54 | NULL | 4 | 0 | 31 |
+------------+----------------+----------------+----------------------------+----------------+--------------+-------------+-------------------------+----------------+-----------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+---------------------+---------------------+------------------------------+-------------------+
1 row in set (0.000 sec)
Here is the Quotes details
MariaDB [itflow]> SELECT * FROM quotes WHERE quote_client_id = 31;
+----------+--------------+--------------+---------------------------------------+--------------+-----------------------+------------+--------------+--------------+---------------------+----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+-------------------+-------------------+-----------------+
| quote_id | quote_prefix | quote_number | quote_scope | quote_status | quote_discount_amount | quote_date | quote_expire | quote_amount | quote_currency_code | quote_note | quote_url_key | quote_created_at | quote_updated_at | quote_archived_at | quote_category_id | quote_client_id |
+----------+--------------+--------------+---------------------------------------+--------------+-----------------------+------------+--------------+--------------+---------------------+----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+-------------------+-------------------+-----------------+
| 18 | QUO- | 16468 | Install security Cameras and Firewall | Draft | 0.00 | 2025-04-14 | 2025-05-15 | 3035.78 | USD | NULL | Jl9oxQvs8xh2hAPHTYbP1m5y62pOe019SE1DXAX0UNQjmn7xRDopAKCXd99SUU9fU6rPXyFLVQklRa8D8orTeMB8fHXkWMvsHOFKEZYnvqboZpiZPhGlqhrJDf3XiRgd8DnwLBbhe6hrfce9e0im21LtBhCN | 2025-04-10 20:41:09 | 2025-04-10 20:56:44 | NULL | 4 | 31 |
| 19 | QUO- | 16469 | Install security Cameras and Firewall | Draft | 0.00 | 2025-04-14 | 2025-05-15 | 4061.89 | USD | This is for the Pizza store Location on Kerr | YuDLJRcxylL2bWT8rQsMBdI9YlYAI9j5kzhyt3EWtBwefc46dvjzIZXGarfr05VQgFzv2ZraiwUG9Jlql6OJgvisrUN1EZGdorsPwj5hh82JecILFtPvF0mODXL05m3RW8CsoMRWwUuhgiRA2BBkIuIoybak | 2025-04-10 20:57:50 | 2025-04-10 21:02:12 | NULL | 4 | 31 |
| 20 | QUO- | 16470 | Security Camera Install at Pizza shop | Sent | 0.00 | 2025-04-14 | 2025-05-16 | 6.00 | USD | NULL | zjWPvHhiU603ab2aPZcbN2BskI27GeVIf2nFWjBcnj9jSJa7O8cEce4Z2BZ3p96To1F2nA38aeiEXBXXlrpXiIFb8NIC2VvFOLmw2ZGSDLgy8WfJya6gL7RwtCMtAVvvZn3GeZLMg7U5RrOyoexIWqdV1FLX | 2025-04-10 21:21:14 | 2025-04-10 21:22:14 | NULL | 4 | 31 |
+----------+--------------+--------------+---------------------------------------+--------------+-----------------------+------------+--------------+--------------+---------------------+----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+-------------------+-------------------+-----------------+
3 rows in set (0.000 sec)
MariaDB [itflow]> SELECT * FROM quotes WHERE quote_client_id = 31 and quote_status = 'Draft';
+----------+--------------+--------------+---------------------------------------+--------------+-----------------------+------------+--------------+--------------+---------------------+----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+-------------------+-------------------+-----------------+
| quote_id | quote_prefix | quote_number | quote_scope | quote_status | quote_discount_amount | quote_date | quote_expire | quote_amount | quote_currency_code | quote_note | quote_url_key | quote_created_at | quote_updated_at | quote_archived_at | quote_category_id | quote_client_id |
+----------+--------------+--------------+---------------------------------------+--------------+-----------------------+------------+--------------+--------------+---------------------+----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+-------------------+-------------------+-----------------+
| 18 | QUO- | 16468 | Install security Cameras and Firewall | Draft | 0.00 | 2025-04-14 | 2025-05-15 | 3035.78 | USD | NULL | Jl9oxQvs8xh2hAPHTYbP1m5y62pOe019SE1DXAX0UNQjmn7xRDopAKCXd99SUU9fU6rPXyFLVQklRa8D8orTeMB8fHXkWMvsHOFKEZYnvqboZpiZPhGlqhrJDf3XiRgd8DnwLBbhe6hrfce9e0im21LtBhCN | 2025-04-10 20:41:09 | 2025-04-10 20:56:44 | NULL | 4 | 31 |
| 19 | QUO- | 16469 | Install security Cameras and Firewall | Draft | 0.00 | 2025-04-14 | 2025-05-15 | 4061.89 | USD | This is for the Pizza store Location on Kerr | YuDLJRcxylL2bWT8rQsMBdI9YlYAI9j5kzhyt3EWtBwefc46dvjzIZXGarfr05VQgFzv2ZraiwUG9Jlql6OJgvisrUN1EZGdorsPwj5hh82JecILFtPvF0mODXL05m3RW8CsoMRWwUuhgiRA2BBkIuIoybak | 2025-04-10 20:57:50 | 2025-04-10 21:02:12 | NULL | 4 | 31 |
+----------+--------------+--------------+---------------------------------------+--------------+-----------------------+------------+--------------+--------------+---------------------+----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------+-------------------+-------------------+-----------------+
2 rows in set (0.000 sec)
Hope this helps.