[20-Nov-2025 07:53:51 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:53:51 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:53:51 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:53:51 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:53:59 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:53:59 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:53:59 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:53:59 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:54:04 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:54:04 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:54:04 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[20-Nov-2025 07:54:04 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[26-Nov-2025 05:04:16 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:282
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(282): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 282
[26-Nov-2025 05:15:36 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:282
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(282): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 282
[26-Nov-2025 12:49:57 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:282
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(282): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 282
[26-Nov-2025 12:50:45 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:282
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(282): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 282
[26-Nov-2025 12:53:03 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[26-Nov-2025 12:53:58 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[26-Nov-2025 12:55:06 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:58
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(58): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(73): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 58
[26-Nov-2025 12:56:52 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:01:12 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:02:13 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:03:08 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:08:52 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:09:32 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:10:56 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:20:46 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:21:28 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:23:52 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:285
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(285): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 285
[26-Nov-2025 13:30:00 UTC] PHP Warning:  Undefined variable $status in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 278
[26-Nov-2025 13:30:00 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 278
[26-Nov-2025 13:30:00 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:286
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(286): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 286
[26-Nov-2025 13:31:23 UTC] PHP Warning:  Undefined variable $status in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 278
[26-Nov-2025 13:31:23 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 278
[26-Nov-2025 13:31:23 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:286
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(286): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 286
[26-Nov-2025 13:32:19 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'status' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:286
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(286): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 286
[28-Nov-2025 17:31:28 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'source_type' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:181
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(181): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 181
[28-Nov-2025 17:31:54 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'source_type' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:181
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(181): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 181
[28-Nov-2025 17:32:43 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'source_type' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:181
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(181): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 181
[28-Nov-2025 17:32:57 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'source_type' at row 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:181
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(181): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 181
[28-Nov-2025 18:10:55 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[28-Nov-2025 18:11:32 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[28-Nov-2025 18:11:42 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[28-Nov-2025 18:12:01 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[28-Nov-2025 18:12:18 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[28-Nov-2025 18:22:30 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[01-Dec-2025 09:05:22 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[01-Dec-2025 09:05:41 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[01-Dec-2025 09:12:36 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[01-Dec-2025 09:14:54 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:148
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(148): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 148
[01-Dec-2025 09:18:47 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`swgranit_granite_warehouse`.`expenditures`, CONSTRAINT `fk_expenditures_branch` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE CASCADE) in /home/swgranit/public_html/new_sw/api/expenditures.php:151
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditures.php(151): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditures.php on line 151
[03-Dec-2025 05:56:29 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Incorrect datetime value: '2025' for column 'generated_on' at row 1 in /home/swgranit/public_html/new_sw/api/salary_payroll.php:59
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/salary_payroll.php(59): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/salary_payroll.php on line 59
[03-Dec-2025 05:56:39 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Incorrect datetime value: '2025' for column 'generated_on' at row 1 in /home/swgranit/public_html/new_sw/api/salary_payroll.php:59
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/salary_payroll.php(59): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/salary_payroll.php on line 59
[03-Dec-2025 05:57:13 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Incorrect datetime value: '2025' for column 'generated_on' at row 1 in /home/swgranit/public_html/new_sw/api/salary_payroll.php:59
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/salary_payroll.php(59): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/salary_payroll.php on line 59
[03-Dec-2025 05:58:38 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Incorrect datetime value: '2025' for column 'generated_on' at row 1 in /home/swgranit/public_html/new_sw/api/salary_payroll.php:62
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/salary_payroll.php(62): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/salary_payroll.php on line 62
[03-Dec-2025 06:04:08 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Incorrect datetime value: '2025' for column 'generated_on' at row 1 in /home/swgranit/public_html/new_sw/api/salary_payroll.php:62
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/salary_payroll.php(62): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/salary_payroll.php on line 62
[03-Dec-2025 06:05:50 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Incorrect datetime value: '2025' for column 'generated_on' at row 1 in /home/swgranit/public_html/new_sw/api/salary_payroll.php:62
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/salary_payroll.php(62): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/salary_payroll.php on line 62
[05-Dec-2025 05:12:08 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[05-Dec-2025 05:12:08 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[05-Dec-2025 05:12:08 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[05-Dec-2025 05:12:08 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[05-Dec-2025 05:12:25 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[05-Dec-2025 05:12:25 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[05-Dec-2025 05:12:25 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[05-Dec-2025 05:12:25 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:55
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(55): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(70): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 55
[05-Dec-2025 05:14:07 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:58
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(58): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(73): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 58
[05-Dec-2025 05:14:07 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:58
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(58): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(73): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 58
[05-Dec-2025 05:14:07 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:58
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(58): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(73): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 58
[05-Dec-2025 05:14:07 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS parent_piece_id INT NULL AFTER job_id' at line 1 in /home/swgranit/public_html/new_sw/api/slab_cutting.php:58
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/slab_cutting.php(58): mysqli->query()
#1 /home/swgranit/public_html/new_sw/api/slab_cutting.php(73): ensure_cutting_schema()
#2 {main}
  thrown in /home/swgranit/public_html/new_sw/api/slab_cutting.php on line 58
[07-Dec-2025 03:25:44 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Duplicate entry 'Transport Charges - Non Production' for key 'expenditure_categories.name' in /home/swgranit/public_html/new_sw/api/expenditure_categories.php:25
Stack trace:
#0 /home/swgranit/public_html/new_sw/api/expenditure_categories.php(25): mysqli_stmt->execute()
#1 {main}
  thrown in /home/swgranit/public_html/new_sw/api/expenditure_categories.php on line 25
