[2026-09-15 11:26:10] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:26:16] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 11:27:03] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:27:10] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:27:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:28:03] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:28:17] live.INFO: === About to call saveProductNewUnitRelationships === {"product_id":368,"request_units":[{"actual_name":"hl","unit_id":"296","short_name":"hl","relation_unit_id":null,"relation_qty":"1","price":"44"},{"actual_name":"4j","unit_id":"297","short_name":"hg","relation_unit_id":"296","relation_qty":"6","price":"556"}],"page_batch_id":"20260915_112720_5061"} 
[2026-09-15 11:28:17] live.INFO: === saveProductNewUnitRelationships START === {"product_id":368,"product_name":"Hello"} 
[2026-09-15 11:28:17] live.INFO: Units data received {"units_data":[{"actual_name":"hl","unit_id":"296","short_name":"hl","relation_unit_id":null,"relation_qty":"1","price":"44"},{"actual_name":"4j","unit_id":"297","short_name":"hg","relation_unit_id":"296","relation_qty":"6","price":"556"}],"count":2} 
[2026-09-15 11:28:17] live.INFO: Processing unit index: 0 {"unit_data":{"actual_name":"hl","unit_id":"296","short_name":"hl","relation_unit_id":null,"relation_qty":"1","price":"44"}} 
[2026-09-15 11:28:17] live.INFO: Unit found by ID {"unit_id":296,"actual_name":"hl"} 
[2026-09-15 11:28:17] live.INFO: Unit lookup result {"found":"yes","unit_id":296,"method":"by_id"} 
[2026-09-15 11:28:17] live.INFO: Updating existing unit {"unit_id":296} 
[2026-09-15 11:28:17] live.INFO: Updated unit_price {"new_price":44.0} 
[2026-09-15 11:28:17] live.INFO: Unit updated successfully  
[2026-09-15 11:28:17] live.INFO: Setting as BASE unit {"unit_id":296} 
[2026-09-15 11:28:17] live.INFO: Base unit saved {"base_unit_id":296} 
[2026-09-15 11:28:17] live.INFO: Processing unit index: 1 {"unit_data":{"actual_name":"4j","unit_id":"297","short_name":"hg","relation_unit_id":"296","relation_qty":"6","price":"556"}} 
[2026-09-15 11:28:17] live.INFO: Unit found by ID {"unit_id":297,"actual_name":"4j"} 
[2026-09-15 11:28:17] live.INFO: Unit lookup result {"found":"yes","unit_id":297,"method":"by_id"} 
[2026-09-15 11:28:17] live.INFO: Updating existing unit {"unit_id":297} 
[2026-09-15 11:28:17] live.INFO: Updated unit_price {"new_price":556.0} 
[2026-09-15 11:28:17] live.INFO: Unit updated successfully  
[2026-09-15 11:28:17] live.INFO: First pass complete {"created_units_count":2,"base_unit_id":296} 
[2026-09-15 11:28:17] live.INFO: === SECOND PASS: Setting relations first ===  
[2026-09-15 11:28:17] live.INFO: Setting relation for unit {"unit_id":297,"unit_name":"4j","relation_unit_id":296,"relation_unit_name":"hl","relation_qty":6.0} 
[2026-09-15 11:28:17] live.INFO: Relation saved to database {"unit_id":297,"rel_unit_id":296,"rel_unit_qty":6.0,"base_unit_id":296} 
[2026-09-15 11:28:17] live.INFO: === SECOND PASS: Calculating cumulative multipliers ===  
[2026-09-15 11:28:17] live.INFO: Calculating cumulative multiplier for unit {"unit_id":297,"unit_name":"4j"} 
[2026-09-15 11:28:17] live.INFO: === calculateCumulativeMultiplier START === {"unit_id":297,"business_id":8} 
[2026-09-15 11:28:17] live.INFO: Unit found {"unit_id":297,"unit_name":"4j","rel_unit_id":296,"rel_unit_qty":"6.0000","base_unit_id":296} 
[2026-09-15 11:28:17] live.INFO: Starting cumulative multiplier {"initial_multiplier":6.0} 
[2026-09-15 11:28:17] live.INFO: Traversing up chain depth: 0 {"current_unit_id":296} 
[2026-09-15 11:28:17] live.INFO: Parent unit found {"parent_unit_id":296,"parent_unit_name":"hl","parent_rel_unit_id":null,"parent_rel_unit_qty":"1.0000"} 
[2026-09-15 11:28:17] live.INFO: Reached base unit (no rel_unit_id), stopping  
[2026-09-15 11:28:17] live.INFO: Chain traversal complete {"chain":"4j (297) -> hl (296)","final_cumulative_multiplier":6.0,"depth_traversed":0} 
[2026-09-15 11:28:17] live.INFO: === calculateCumulativeMultiplier END === {"result":6.0} 
[2026-09-15 11:28:17] live.INFO: Cumulative multiplier calculated {"unit_id":297,"unit_name":"4j","cumulative_multiplier":6.0} 
[2026-09-15 11:28:17] live.INFO: Unit saved with cumulative multiplier {"unit_id":297,"unit_name":"4j","base_unit_multiplier":6.0} 
[2026-09-15 11:28:17] live.INFO: === saveProductNewUnitRelationships END ===  
[2026-09-15 11:28:17] live.INFO: OpeningStockController::add - Location Data {"product_id":"368","business_id":8,"locations":{"Illuminate\\Support\\Collection":{"9":"BQT GENERAL BUSINESS (BL0001)","10":"BQT BRANCH 1 (BL0002)","12":"BQT BRANCH 2 (BL0003)","14":"BQT BRANCH 3 (BL0004)"}},"available_locations":[9,10]} 
[2026-09-15 11:28:17] live.INFO: OpeningStockController::add - Serial Numbers Check {"product_id":"368","business_id":8,"has_serial_numbers":{"9":false,"10":false},"total_locations_with_serial":0} 
[2026-09-15 11:28:22] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:29:07] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:29:19] live.INFO: filterProduct method called {"business_id":8,"search_term":"he","location_id":"9","not_for_selling":null,"price_group_id":null,"product_types":[],"search_fields":["name","sku"],"check_qty":false,"search_type":"like"} 
[2026-09-15 11:29:19] live.DEBUG: Initial query built with joins {"has_location":true} 
[2026-09-15 11:29:19] live.DEBUG: Applying search filters {"search_term":"he","search_type":"like","search_fields":["name","sku"]} 
[2026-09-15 11:29:19] live.DEBUG: LIKE search conditions applied {"fields":["name","sku"]} 
[2026-09-15 11:29:19] live.DEBUG: Applying location filter {"location_id":"9"} 
[2026-09-15 11:29:19] live.INFO: filterProduct completed successfully {"result_count":8,"business_id":8,"search_term":"he"} 
[2026-09-15 11:29:19] live.INFO: filterProduct method called {"business_id":8,"search_term":"hell","location_id":"9","not_for_selling":null,"price_group_id":null,"product_types":[],"search_fields":["name","sku"],"check_qty":false,"search_type":"like"} 
[2026-09-15 11:29:19] live.DEBUG: Initial query built with joins {"has_location":true} 
[2026-09-15 11:29:19] live.DEBUG: Applying search filters {"search_term":"hell","search_type":"like","search_fields":["name","sku"]} 
[2026-09-15 11:29:19] live.DEBUG: LIKE search conditions applied {"fields":["name","sku"]} 
[2026-09-15 11:29:19] live.DEBUG: Applying location filter {"location_id":"9"} 
[2026-09-15 11:29:19] live.INFO: filterProduct completed successfully {"result_count":2,"business_id":8,"search_term":"hell"} 
[2026-09-15 11:29:21] live.INFO: StockAdjustment - getProductRow - Serial Number Received {"variation_id":"373","serial_number":null,"serial_number_id":null,"serial_number_quantity":0,"serial_number_available":0,"all_request_data":{"row_index":"0","variation_id":"373","location_id":"9","type":"stock_transfer"}} 
[2026-09-15 11:29:22] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 11:29:32] live.INFO: filterProduct method called {"business_id":8,"search_term":"az","location_id":"9","not_for_selling":null,"price_group_id":null,"product_types":[],"search_fields":["name","sku"],"check_qty":false,"search_type":"like"} 
[2026-09-15 11:29:32] live.DEBUG: Initial query built with joins {"has_location":true} 
[2026-09-15 11:29:32] live.DEBUG: Applying search filters {"search_term":"az","search_type":"like","search_fields":["name","sku"]} 
[2026-09-15 11:29:32] live.DEBUG: LIKE search conditions applied {"fields":["name","sku"]} 
[2026-09-15 11:29:32] live.DEBUG: Applying location filter {"location_id":"9"} 
[2026-09-15 11:29:32] live.INFO: filterProduct completed successfully {"result_count":1,"business_id":8,"search_term":"az"} 
[2026-09-15 11:29:33] live.INFO: StockAdjustment - getProductRow - Serial Number Received {"variation_id":"372","serial_number":null,"serial_number_id":null,"serial_number_quantity":0,"serial_number_available":0,"all_request_data":{"row_index":"1","variation_id":"372","location_id":"9","type":"stock_transfer"}} 
[2026-09-15 11:29:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:29:38] live.INFO: Inserted purchase sell mapping {"count":1,"data":[{"sell_line_id":1203,"purchase_line_id":1604,"quantity":20.0,"created_at":"2026-09-15 11:29:38","updated_at":"2026-09-15 11:29:38"}]} 
[2026-09-15 11:29:38] live.INFO: Inserted COGS → Inventory journal entries {"count":2} 
[2026-09-15 11:29:38] live.INFO: Inserted Retained Earnings (profit) entries {"count":1,"total_profit":137.7899999999999636202119290828704833984375} 
[2026-09-15 11:29:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:30:48] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:30:52] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:30:56] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:31:05] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:31:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:31:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:34:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:34:53] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:34:59] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:35:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:35:58] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 11:35:58] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 11:35:58] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 11:35:58] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 11:35:58] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135175.80240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 11:35:58] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 11:35:58] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 11:35:58] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 11:35:58] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 11:37:35] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:38:05] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:39:21] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 11:39:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 11:40:54] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:42:07] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:45:11] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:46:26] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:46:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:47:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:47:34] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:47:59] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:48:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:48:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:48:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:48:21] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:49:25] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 11:49:52] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:49:58] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:50:31] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:52:22] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:52:22] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 11:52:52] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:53:47] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:54:02] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:14] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:26] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:31] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:35] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:51] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:55] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:54:59] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:55:27] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:55:34] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 11:57:08] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:57:43] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:58:17] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:58:39] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:59:09] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 11:59:21] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 11:59:34] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 11:59:39] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:00:18] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:00:48] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:02:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:04:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:05:02] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:05:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:05:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:05:28] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:06:17] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 12:06:22] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:07:33] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:08:39] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:08:51] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:08:55] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:10:25] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:10:55] live.ERROR: Failed to send error alert email: Connection to "ssl://mail.risetsystems.com:465" timed out.  
[2026-09-15 12:10:56] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:11:26] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:11:56] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:12:26] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:12:56] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:13:07] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:13:26] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:13:56] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:14:04] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:14:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:14:10] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:14:20] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:14:25] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:14:40] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:15:00] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:15:20] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:15:40] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:16:00] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:16:02] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:16:06] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:16:16] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 12:16:58] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 12:17:24] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 12:18:26] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 12:19:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:20:23] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:20:32] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:20:47] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:21:17] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:21:25] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:21:35] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:21:39] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:21:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:21:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:21:50] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:21:51] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:21:55] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:21:59] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:22:03] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:22:10] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:27:24] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 12:36:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:36:30] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:37:28] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 12:37:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:40:01] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:40:33] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:42:00] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:42:00] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:42:40] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:43:09] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:44:23] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:44:58] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:45:37] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:46:18] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:46:30] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:46:37] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:47:29] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:47:34] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 12:48:31] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:48:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:50:08] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:50:27] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:51:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:53:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:54:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 12:54:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:54:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:55:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:55:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:56:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:56:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:57:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 12:57:29] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:57:34] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 12:59:08] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 12:59:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:00:24] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:03:28] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:06:29] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:07:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:07:44] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:09:18] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:11:06] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:11:16] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:11:20] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:11:24] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:12:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:13:14] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:13:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:13:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:13:20] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:13:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:14:14] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:14:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:14:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:14:20] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:14:50] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:16:36] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:16:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:16:52] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:16:52] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:16:52] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:17:38] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:20:16] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:22:31] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:22:43] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:25:26] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:28:13] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:28:30] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:29:54] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:30:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:30:50] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:30:54] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:30:57] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:31:04] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:31:11] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:32:44] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:33:16] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 13:33:26] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:33:30] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:33:39] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:33:39] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 13:33:39] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 13:33:39] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:33:39] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 13:33:39] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:33:39] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 13:33:39] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 13:33:39] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 13:33:39] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:33:40] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:33:40] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:33:40] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 13:33:40] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 13:33:40] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:33:40] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 13:33:40] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:33:40] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:33:40] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 13:33:40] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 13:33:40] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 13:33:44] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:33:44] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 13:33:44] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 13:33:44] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:33:44] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 13:33:44] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:33:44] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 13:33:44] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 13:33:44] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 13:33:44] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:33:44] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:33:44] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 13:33:44] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 13:33:44] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:33:44] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 13:33:44] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:33:44] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:33:44] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 13:33:44] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 13:33:44] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 13:34:08] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:34:14] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:34:28] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:34:28] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 13:34:28] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 13:34:28] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:34:28] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 13:34:28] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:34:28] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 13:34:28] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 13:34:28] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 13:34:29] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:34:29] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:34:29] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:34:29] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 13:34:29] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 13:34:29] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:34:29] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 13:34:29] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:34:29] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:34:29] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 13:34:29] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 13:34:29] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 13:34:33] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:34:33] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 13:34:33] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 13:34:33] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:34:33] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 13:34:33] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:34:33] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 13:34:33] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 13:34:33] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 13:34:34] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:34:34] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:34:34] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 13:34:34] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 13:34:34] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:34:34] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 13:34:34] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:34:34] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:34:34] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 13:34:34] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 13:34:34] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 13:34:56] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-08-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:34:56] live.INFO: Opening stock calculation - including all transactions {"date":"2025-08-31"} 
[2026-09-15 13:34:56] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-08-31')"} 
[2026-09-15 13:34:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-08-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-08-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:34:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-08-31"} 
[2026-09-15 13:34:56] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-09-30","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:34:56] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2025-09-30' (includes all types except purchase_order)"} 
[2026-09-15 13:34:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-09-30') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2025-09-30'","bindings":["purchase_order",43]} 
[2026-09-15 13:34:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":0,"is_opening":false,"date":"2025-09-30"} 
[2026-09-15 13:34:56] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-08-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:34:56] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:34:56] live.INFO: Opening stock calculation - including all transactions {"date":"2025-08-31"} 
[2026-09-15 13:34:56] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-08-31')"} 
[2026-09-15 13:34:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-08-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-08-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:34:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-08-31"} 
[2026-09-15 13:34:56] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-09-30","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:34:56] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:34:56] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2025-09-30' (includes all types except purchase_order)"} 
[2026-09-15 13:34:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-09-30') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2025-09-30'","bindings":["purchase_order",43]} 
[2026-09-15 13:34:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":0,"is_opening":false,"date":"2025-09-30"} 
[2026-09-15 13:35:01] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-08-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:35:01] live.INFO: Opening stock calculation - including all transactions {"date":"2026-08-31"} 
[2026-09-15 13:35:01] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-08-31')"} 
[2026-09-15 13:35:01] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-08-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-08-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:35:01] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4499945.28240000","is_opening":true,"date":"2026-08-31"} 
[2026-09-15 13:35:01] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-30","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:35:01] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-30' (includes all types except purchase_order)"} 
[2026-09-15 13:35:01] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-30') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-30'","bindings":["purchase_order",43]} 
[2026-09-15 13:35:01] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-09-30"} 
[2026-09-15 13:35:02] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-08-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:35:02] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:35:02] live.INFO: Opening stock calculation - including all transactions {"date":"2026-08-31"} 
[2026-09-15 13:35:02] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-08-31')"} 
[2026-09-15 13:35:02] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-08-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-08-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:35:02] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7347860.00000000","is_opening":true,"date":"2026-08-31"} 
[2026-09-15 13:35:02] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-30","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:35:02] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:35:02] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-30' (includes all types except purchase_order)"} 
[2026-09-15 13:35:02] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-30') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-30'","bindings":["purchase_order",43]} 
[2026-09-15 13:35:02] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-09-30"} 
[2026-09-15 13:35:28] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-13","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:35:28] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-13"} 
[2026-09-15 13:35:28] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-13')"} 
[2026-09-15 13:35:28] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-13') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-13'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:35:28] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680860.28240000","is_opening":true,"date":"2026-09-13"} 
[2026-09-15 13:35:28] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 13:35:28] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-14' (includes all types except purchase_order)"} 
[2026-09-15 13:35:28] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-14'","bindings":["purchase_order",43]} 
[2026-09-15 13:35:28] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":false,"date":"2026-09-14"} 
[2026-09-15 13:35:28] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-13","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:35:28] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:35:28] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-13"} 
[2026-09-15 13:35:28] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-13')"} 
[2026-09-15 13:35:28] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-13') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-13'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 13:35:28] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7589182.50000000","is_opening":true,"date":"2026-09-13"} 
[2026-09-15 13:35:28] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 13:35:28] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 13:35:28] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-14' (includes all types except purchase_order)"} 
[2026-09-15 13:35:28] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-14'","bindings":["purchase_order",43]} 
[2026-09-15 13:35:28] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":false,"date":"2026-09-14"} 
[2026-09-15 13:36:09] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:40:03] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:40:52] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:42:31] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:42:43] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:42:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:42:55] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:43:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:44:30] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:44:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:45:57] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:46:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:46:16] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:46:20] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:47:24] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:47:54] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:48:40] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:49:10] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:49:29] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:49:59] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:50:22] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 13:50:31] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:51:09] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:51:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:51:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:52:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:52:49] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:52:50] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:52:56] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:53:00] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:53:04] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:53:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:53:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:53:21] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:53:33] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:54:36] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:54:49] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 13:55:07] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:55:08] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:55:38] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:56:08] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:56:52] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:57:22] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:57:33] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 13:57:52] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:58:24] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:58:43] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:58:54] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 13:58:55] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:02] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:06] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:10] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:14] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:18] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:22] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:29] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:34] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:39] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 13:59:45] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:01:21] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:01:51] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:02:21] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:02:51] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:03:27] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:03:49] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 14:04:01] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:04:31] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:04:39] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 14:04:58] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:05:08] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:05:09] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:05:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:05:18] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:05:25] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:05:30] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:05:37] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:05:54] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:06:00] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:06:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:06:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:06:18] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:07:24] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:14:39] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 14:14:53] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 14:14:53] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 14:14:53] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 14:14:53] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 14:14:53] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135175.80240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 14:14:53] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 14:14:53] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 14:14:53] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 14:14:53] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 14:15:54] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:18:28] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:18:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:18:45] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:18:49] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:18:53] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:18:57] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:19:01] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:19:05] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:19:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:21:35] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:21:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:23:14] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:23:44] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:23:46] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 14:24:29] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 14:24:55] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:26:58] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:27:01] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:27:12] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:27:28] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:29:18] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:29:20] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 14:29:20] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 14:29:20] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 14:29:20] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 14:29:20] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135175.80240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 14:29:20] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 14:29:20] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 14:29:20] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 14:29:20] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 14:32:54] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 14:32:54] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 14:32:54] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 14:32:54] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 14:32:54] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 14:32:54] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 14:32:54] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 14:32:54] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 14:32:54] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 14:32:54] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 14:32:54] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 14:32:54] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 14:32:54] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 14:32:54] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 14:32:54] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 14:32:54] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 14:32:54] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 14:32:54] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 14:32:54] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 14:32:54] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 14:32:54] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 14:35:19] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 14:35:19] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 14:35:19] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 14:35:19] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 14:35:19] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135175.80240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 14:35:19] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 14:35:19] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 14:35:19] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 14:35:19] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 14:36:17] live.INFO: filterProduct method called {"business_id":8,"search_term":"test","location_id":"9","not_for_selling":"0","price_group_id":"0","product_types":[],"search_fields":["name","sku","lot"],"check_qty":false,"search_type":"like"} 
[2026-09-15 14:36:17] live.DEBUG: Initial query built with joins {"has_location":true} 
[2026-09-15 14:36:17] live.DEBUG: Filtering by not_for_selling {"not_for_selling":"0"} 
[2026-09-15 14:36:17] live.DEBUG: Joining purchase_lines for lot number search  
[2026-09-15 14:36:17] live.DEBUG: Applying search filters {"search_term":"test","search_type":"like","search_fields":["name","sku","lot"]} 
[2026-09-15 14:36:17] live.DEBUG: LIKE search conditions applied {"fields":["name","sku","lot"]} 
[2026-09-15 14:36:17] live.DEBUG: Applying location filter {"location_id":"9"} 
[2026-09-15 14:36:17] live.DEBUG: Added lot number fields to select  
[2026-09-15 14:36:17] live.INFO: filterProduct completed successfully {"result_count":3,"business_id":8,"search_term":"test"} 
[2026-09-15 14:36:19] live.INFO: Product Row Debug - RELOADED {"product_id":28,"product_name":"test1j","discount_allowed":true,"has_global_discount":true,"global_discount_type":null,"global_discount_amount":null,"discounts_count":3,"discounts":[{"id":9,"product_id":28,"business_id":8,"from_quantity":6,"to_quantity":10,"discount_type":"fixed","discount_amount":3.0,"created_at":"2026-07-20T11:36:57.000000Z","updated_at":"2026-07-21T08:00:49.000000Z"},{"id":10,"product_id":28,"business_id":8,"from_quantity":11,"to_quantity":15,"discount_type":"fixed","discount_amount":5.0,"created_at":"2026-07-20T11:36:57.000000Z","updated_at":"2026-07-21T08:00:49.000000Z"},{"id":13,"product_id":28,"business_id":8,"from_quantity":16,"to_quantity":null,"discount_type":"fixed","discount_amount":6.0,"created_at":"2026-07-21T05:26:41.000000Z","updated_at":"2026-07-21T08:00:49.000000Z"}],"base_price":4000.0,"discounts_json":"[{\"id\":9,\"product_id\":28,\"business_id\":8,\"from_quantity\":6,\"to_quantity\":10,\"discount_type\":\"fixed\",\"discount_amount\":3,\"created_at\":\"2026-07-20T11:36:57.000000Z\",\"updated_at\":\"2026-07-21T08:00:49.000000Z\"},{\"id\":10,\"product_id\":28,\"business_id\":8,\"from_quantity\":11,\"to_quantity\":15,\"discount_type\":\"fixed\",\"discount_amount\":5,\"created_at\":\"2026-07-20T11:36:57.000000Z\",\"updated_at\":\"2026-07-21T08:00:49.000000Z\"},{\"id\":13,\"product_id\":28,\"business_id\":8,\"from_quantity\":16,\"to_quantity\":null,\"discount_type\":\"fixed\",\"discount_amount\":6,\"created_at\":\"2026-07-21T05:26:41.000000Z\",\"updated_at\":\"2026-07-21T08:00:49.000000Z\"}]","multiplier":1,"unit_prices":{"1":{"unit_id":1,"unit_name":"Pc","unit_price":4000.0,"multiplier":1,"has_price":true},"64":{"unit_id":64,"unit_name":"CTN","unit_price":11000.0,"multiplier":"4.0000","has_price":true}},"has_price_group":false,"price_group_id":null} 
[2026-09-15 14:36:26] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:36:26] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:36:28] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:36:28] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:36:29] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:36:29] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:36:29] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:36:29] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:36:30] live.INFO: Credit Limit Check Started {"contact_id":"94","status":"final","final_total":"9000.00","is_credit_sale":"0","exclude_transaction_id":null} 
[2026-09-15 14:36:30] live.DEBUG: Payment Calculation {"final_total":9000.0,"curr_total_payment":9000.0,"is_credit_sale":false,"payment_count":1} 
[2026-09-15 14:36:30] live.INFO: Credit Limit Check Skipped - Fully Paid {"final_total":9000.0,"curr_total_payment":9000.0} 
[2026-09-15 14:36:30] live.INFO: mpesa_transaction_id value: NULL  
[2026-09-15 14:36:30] live.INFO: is_mpesa_sale value: true  
[2026-09-15 14:36:30] live.INFO: M-Pesa sale evaluation {"is_mpesa_sale_raw":true,"is_valid_mpesa_sale":false,"payment_method_input":"cash","mpesa_transaction_id":null,"transaction_id":1897} 
[2026-09-15 14:36:30] live.INFO: Journal Entry Case: FULL CASH PAYMENT {"transaction_id":1897,"final_total":9000.0,"amount_paid":9000.0,"balance_due":0} 
[2026-09-15 14:36:30] live.INFO: Journal Entries Inserted Successfully {"transaction_id":1897,"entries":[{"transaction_id":1897,"created_by_id":229,"transaction_number":"TRX-6aa92dbe5c6eb0.67643179","payment_detail_id":1344,"location_id":"9","currency_id":133,"transaction_type":"sell","date":"2026-09-15","month":9,"year":2026,"active":1,"reversed":0,"reversible":1,"manual_entry":1,"created_at":"2026-09-15 14:36:30","updated_at":"2026-09-15 14:36:30","chart_of_account_id":23,"debit":null,"credit":9000.0},{"transaction_id":1897,"created_by_id":229,"transaction_number":"TRX-6aa92dbe5c6eb0.67643179","payment_detail_id":1344,"location_id":"9","currency_id":133,"transaction_type":"sell","date":"2026-09-15","month":9,"year":2026,"active":1,"reversed":0,"reversible":1,"manual_entry":1,"created_at":"2026-09-15 14:36:30","updated_at":"2026-09-15 14:36:30","chart_of_account_id":27,"debit":9000.0,"credit":null}]} 
[2026-09-15 14:36:30] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:36:30] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:36:30] live.INFO: Inserted purchase sell mapping {"count":1,"data":[{"sell_line_id":1205,"purchase_line_id":1089,"quantity":2.0,"created_at":"2026-09-15 14:36:30","updated_at":"2026-09-15 14:36:30"}]} 
[2026-09-15 14:36:30] live.INFO: Inserted COGS → Inventory journal entries {"count":2} 
[2026-09-15 14:36:30] live.INFO: Inserted Retained Earnings (profit) entries {"count":1,"total_profit":8880.0} 
[2026-09-15 14:36:30] live.INFO: ETIMS: Customer details retrieved {"transaction_id":1897,"contact_id":94,"customer_name":"Walk-In Customer","has_tin":false,"has_digitax_id":false} 
[2026-09-15 14:36:30] live.ERROR: ETIMS: Missing item_id for product {"product_id":28} 
[2026-09-15 14:36:30] live.ERROR: ETIMS: No valid items to submit after filtering  
[2026-09-15 14:36:30] live.WARNING: ETIMS WAIT: Timed out after 2 attempts for transaction ID: 1897  
[2026-09-15 14:36:41] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:36:41] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:36:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:36:42] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:36:42] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:36:54] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:37:39] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:37:41] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:37:41] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:37:41] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:37:41] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:37:45] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:37:45] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:37:46] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:37:46] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:37:50] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:37:57] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:38:06] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:38:10] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:38:32] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:38:32] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:38:33] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:38:33] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:38:35] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:39:09] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:39:09] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:39:09] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:39:09] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:40:31] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:41:43] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:42:13] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:42:55] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:42:56] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 14:43:47] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 14:44:02] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:47:03] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:47:03] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:47:05] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:47:05] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:47:11] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:47:11] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:47:12] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:47:12] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:47:14] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:47:46] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:47:46] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:47:47] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:47:47] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:47:51] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:47:51] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:47:51] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:47:51] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:48:34] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:48:34] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:48:35] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:48:35] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:52:55] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 14:53:33] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:53:33] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:53:33] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:53:33] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:55:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:55:48] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:55:52] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:55:58] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:56:03] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:56:03] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:56:03] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:56:03] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:56:24] live.INFO: filterProduct method called {"business_id":8,"search_term":"test","location_id":"9","not_for_selling":"0","price_group_id":null,"product_types":[],"search_fields":["name","sku","lot"],"check_qty":false,"search_type":"like"} 
[2026-09-15 14:56:24] live.DEBUG: Initial query built with joins {"has_location":true} 
[2026-09-15 14:56:24] live.DEBUG: Filtering by not_for_selling {"not_for_selling":"0"} 
[2026-09-15 14:56:24] live.DEBUG: Joining purchase_lines for lot number search  
[2026-09-15 14:56:24] live.DEBUG: Applying search filters {"search_term":"test","search_type":"like","search_fields":["name","sku","lot"]} 
[2026-09-15 14:56:24] live.DEBUG: LIKE search conditions applied {"fields":["name","sku","lot"]} 
[2026-09-15 14:56:24] live.DEBUG: Applying location filter {"location_id":"9"} 
[2026-09-15 14:56:24] live.DEBUG: Added lot number fields to select  
[2026-09-15 14:56:24] live.INFO: filterProduct completed successfully {"result_count":3,"business_id":8,"search_term":"test"} 
[2026-09-15 14:56:31] live.INFO: filterProduct method called {"business_id":8,"search_term":"testj","location_id":"9","not_for_selling":"0","price_group_id":null,"product_types":[],"search_fields":["name","sku","lot","serial_number"],"check_qty":false,"search_type":"like"} 
[2026-09-15 14:56:31] live.DEBUG: Initial query built with joins {"has_location":true} 
[2026-09-15 14:56:31] live.DEBUG: Joining product_serial_numbers table for serial number search  
[2026-09-15 14:56:31] live.DEBUG: Serial numbers filtered by location {"location_id":"9"} 
[2026-09-15 14:56:31] live.DEBUG: Joining transaction_sell_lines and transactions to check if serial number is sold  
[2026-09-15 14:56:31] live.DEBUG: Added condition: keep products without serial numbers OR with available quantity > 0  
[2026-09-15 14:56:31] live.DEBUG: Filtering by not_for_selling {"not_for_selling":"0"} 
[2026-09-15 14:56:31] live.DEBUG: Joining purchase_lines for lot number search  
[2026-09-15 14:56:31] live.DEBUG: Applying search filters {"search_term":"testj","search_type":"like","search_fields":["name","sku","lot","serial_number"]} 
[2026-09-15 14:56:31] live.DEBUG: LIKE search conditions applied {"fields":["name","sku","lot","serial_number"]} 
[2026-09-15 14:56:31] live.DEBUG: Applying location filter {"location_id":"9"} 
[2026-09-15 14:56:31] live.DEBUG: Added serial number, quantity, and transaction sell line fields with quantity details to select  
[2026-09-15 14:56:31] live.DEBUG: Added lot number fields to select  
[2026-09-15 14:56:32] live.INFO: No products found {"search_term":"testj","business_id":8,"location_id":"9"} 
[2026-09-15 14:56:32] live.INFO: filterProduct completed successfully {"result_count":0,"business_id":8,"search_term":"testj"} 
[2026-09-15 14:56:37] live.INFO: filterProduct method called {"business_id":8,"search_term":"test1","location_id":"9","not_for_selling":"0","price_group_id":null,"product_types":[],"search_fields":["name","sku","lot","serial_number"],"check_qty":false,"search_type":"like"} 
[2026-09-15 14:56:37] live.DEBUG: Initial query built with joins {"has_location":true} 
[2026-09-15 14:56:37] live.DEBUG: Joining product_serial_numbers table for serial number search  
[2026-09-15 14:56:37] live.DEBUG: Serial numbers filtered by location {"location_id":"9"} 
[2026-09-15 14:56:37] live.DEBUG: Joining transaction_sell_lines and transactions to check if serial number is sold  
[2026-09-15 14:56:37] live.DEBUG: Added condition: keep products without serial numbers OR with available quantity > 0  
[2026-09-15 14:56:37] live.DEBUG: Filtering by not_for_selling {"not_for_selling":"0"} 
[2026-09-15 14:56:37] live.DEBUG: Joining purchase_lines for lot number search  
[2026-09-15 14:56:37] live.DEBUG: Applying search filters {"search_term":"test1","search_type":"like","search_fields":["name","sku","lot","serial_number"]} 
[2026-09-15 14:56:37] live.DEBUG: LIKE search conditions applied {"fields":["name","sku","lot","serial_number"]} 
[2026-09-15 14:56:37] live.DEBUG: Applying location filter {"location_id":"9"} 
[2026-09-15 14:56:37] live.DEBUG: Added serial number, quantity, and transaction sell line fields with quantity details to select  
[2026-09-15 14:56:37] live.DEBUG: Added lot number fields to select  
[2026-09-15 14:56:38] live.INFO: filterProduct completed successfully {"result_count":1,"business_id":8,"search_term":"test1"} 
[2026-09-15 14:56:38] live.INFO: Product Row Debug - RELOADED {"product_id":28,"product_name":"test1j","discount_allowed":true,"has_global_discount":true,"global_discount_type":null,"global_discount_amount":null,"discounts_count":3,"discounts":[{"id":9,"product_id":28,"business_id":8,"from_quantity":6,"to_quantity":10,"discount_type":"fixed","discount_amount":3.0,"created_at":"2026-07-20T11:36:57.000000Z","updated_at":"2026-07-21T08:00:49.000000Z"},{"id":10,"product_id":28,"business_id":8,"from_quantity":11,"to_quantity":15,"discount_type":"fixed","discount_amount":5.0,"created_at":"2026-07-20T11:36:57.000000Z","updated_at":"2026-07-21T08:00:49.000000Z"},{"id":13,"product_id":28,"business_id":8,"from_quantity":16,"to_quantity":null,"discount_type":"fixed","discount_amount":6.0,"created_at":"2026-07-21T05:26:41.000000Z","updated_at":"2026-07-21T08:00:49.000000Z"}],"base_price":4000.0,"discounts_json":"[{\"id\":9,\"product_id\":28,\"business_id\":8,\"from_quantity\":6,\"to_quantity\":10,\"discount_type\":\"fixed\",\"discount_amount\":3,\"created_at\":\"2026-07-20T11:36:57.000000Z\",\"updated_at\":\"2026-07-21T08:00:49.000000Z\"},{\"id\":10,\"product_id\":28,\"business_id\":8,\"from_quantity\":11,\"to_quantity\":15,\"discount_type\":\"fixed\",\"discount_amount\":5,\"created_at\":\"2026-07-20T11:36:57.000000Z\",\"updated_at\":\"2026-07-21T08:00:49.000000Z\"},{\"id\":13,\"product_id\":28,\"business_id\":8,\"from_quantity\":16,\"to_quantity\":null,\"discount_type\":\"fixed\",\"discount_amount\":6,\"created_at\":\"2026-07-21T05:26:41.000000Z\",\"updated_at\":\"2026-07-21T08:00:49.000000Z\"}]","multiplier":1,"unit_prices":{"1":{"unit_id":1,"unit_name":"Pc","unit_price":4000.0,"multiplier":1,"has_price":true},"64":{"unit_id":64,"unit_name":"CTN","unit_price":11000.0,"multiplier":"4.0000","has_price":true}},"has_price_group":false,"price_group_id":null} 
[2026-09-15 14:56:39] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:56:39] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:56:39] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:56:39] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:56:40] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:56:40] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:57:11] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:57:23] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:57:27] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:57:32] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:58:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 14:59:31] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:59:31] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 14:59:32] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 14:59:32] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:00:54] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:00:54] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:00:55] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:00:55] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:02:12] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:02:12] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:02:12] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:02:12] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:02:15] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:02:15] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:02:16] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:02:16] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:02:18] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:02:18] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:02:19] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:02:19] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:02:55] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:04:52] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:04:52] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:04:52] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:04:52] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:07:30] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:07:49] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:07:49] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:07:50] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:07:50] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:08:59] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:08:59] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:09:00] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:09:00] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:09:41] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 15:09:41] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 15:09:41] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 15:09:41] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 15:09:41] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 15:09:41] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 15:09:41] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 15:09:41] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 15:09:41] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 15:09:41] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 15:09:41] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 15:09:41] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 15:09:41] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 15:09:41] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 15:09:41] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 15:09:41] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 15:09:41] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 15:09:41] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 15:09:41] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 15:09:41] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 15:10:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 15:11:40] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 15:12:55] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:18:06] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:22:55] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:30:49] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:30:49] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:30:50] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:30:50] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:32:55] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:33:12] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:34:29] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:29] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:29] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:29] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:33] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:33] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:33] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:34] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:34] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:34] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:34] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:34] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:35] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:35] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:36] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:36] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:36] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:36] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:36] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:34:36] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:34:56] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 15:34:56] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 15:34:56] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 15:34:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 15:34:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 15:34:56] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 15:34:56] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 15:34:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 15:34:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 15:34:58] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:35:03] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:35:20] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:36:30] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:36:30] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:36:36] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:36:57] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:37:07] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:37:15] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:37:21] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:37:29] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:37:33] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:37:43] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:38:11] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:38:16] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:38:25] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:39:37] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:40:31] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:41:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:41:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:41:48] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:42:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 15:43:04] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:43:04] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:43:05] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:43:05] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:43:09] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:43:09] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:43:10] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:43:10] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:43:12] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:43:12] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:43:13] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:43:14] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:43:14] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:43:16] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:43:16] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:43:17] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:43:17] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:43:19] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 15:43:45] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:43:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 15:44:21] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 15:44:57] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 15:46:27] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 15:46:58] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:47:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:47:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:47:13] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 15:47:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:47:24] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:48:10] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:48:22] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:49:19] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:49:31] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:51:01] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:51:01] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:51:01] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:51:01] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:52:06] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:52:06] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:52:06] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:52:06] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:53:48] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 15:54:10] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:10] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:54:11] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:11] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:54:14] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:14] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:54:14] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:14] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:54:19] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:19] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:54:20] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:20] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:54:22] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:22] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:54:23] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:23] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:54:56] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:54:56] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:55:43] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 15:55:43] live.INFO: Fetching tax rate for product ID: 28  
[2026-09-15 15:55:43] live.INFO: Tax rate for product ID 28 is: 16%  
[2026-09-15 15:55:52] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:00:19] live.INFO: Credit Limit Check Started {"contact_id":"94","status":"final","final_total":"22500.00","is_credit_sale":"0","exclude_transaction_id":"1897"} 
[2026-09-15 16:00:19] live.DEBUG: Payment Calculation {"final_total":22500.0,"curr_total_payment":22500.0,"is_credit_sale":false,"payment_count":1} 
[2026-09-15 16:00:19] live.INFO: Credit Limit Check Skipped - Fully Paid {"final_total":22500.0,"curr_total_payment":22500.0} 
[2026-09-15 16:00:19] live.INFO: Inserted purchase sell mapping {"count":1,"data":[{"sell_line_id":1205,"purchase_line_id":1089,"quantity":3.0,"created_at":"2026-09-15 16:00:19","updated_at":"2026-09-15 16:00:19"}]} 
[2026-09-15 16:00:19] live.INFO: Inserted COGS → Inventory journal entries {"count":2} 
[2026-09-15 16:00:19] live.INFO: Inserted Retained Earnings (profit) entries {"count":1,"total_profit":22200.0} 
[2026-09-15 16:00:19] live.INFO: ETIMS: Customer details retrieved {"transaction_id":1897,"contact_id":94,"customer_name":"Walk-In Customer","has_tin":false,"has_digitax_id":false} 
[2026-09-15 16:00:19] live.ERROR: ETIMS: Missing item_id for product {"product_id":28} 
[2026-09-15 16:00:19] live.ERROR: ETIMS: No valid items to submit after filtering  
[2026-09-15 16:00:19] live.WARNING: ETIMS WAIT: Timed out after 2 attempts for transaction ID: 1897  
[2026-09-15 16:03:51] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:04:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:10:14] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 16:13:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:13:53] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:23:53] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:27:02] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:33:52] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:36:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:37:49] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:38:01] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:38:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:39:01] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:41:48] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:43:45] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:45:47] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:45:54] live.ERROR: ETIMS settings not found for business ID: 43  
[2026-09-15 16:45:58] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:55:10] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 16:56:01] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:57:25] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:57:25] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 16:57:25] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 16:57:25] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:57:25] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 16:57:25] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:57:25] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 16:57:25] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 16:57:25] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 16:57:25] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:57:25] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:57:25] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:57:25] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 16:57:25] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 16:57:25] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:57:25] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 16:57:25] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:57:25] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:57:25] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 16:57:25] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 16:57:25] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 16:57:29] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:57:29] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 16:57:29] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 16:57:29] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:57:29] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 16:57:29] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:57:29] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 16:57:29] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 16:57:29] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 16:57:30] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:57:30] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:57:30] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 16:57:30] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 16:57:30] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:57:30] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 16:57:30] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:57:30] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:57:30] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 16:57:30] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 16:57:30] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 16:58:01] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-13","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:58:01] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-13"} 
[2026-09-15 16:58:01] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-13')"} 
[2026-09-15 16:58:01] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-13') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-13'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:01] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680860.28240000","is_opening":true,"date":"2026-09-13"} 
[2026-09-15 16:58:01] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:58:01] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-14' (includes all types except purchase_order)"} 
[2026-09-15 16:58:01] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-14'","bindings":["purchase_order",43]} 
[2026-09-15 16:58:01] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":false,"date":"2026-09-14"} 
[2026-09-15 16:58:01] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-13","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:58:01] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:58:01] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-13"} 
[2026-09-15 16:58:01] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-13')"} 
[2026-09-15 16:58:01] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-13') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-13'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:01] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7589182.50000000","is_opening":true,"date":"2026-09-13"} 
[2026-09-15 16:58:01] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:58:01] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:58:01] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-14' (includes all types except purchase_order)"} 
[2026-09-15 16:58:01] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-14'","bindings":["purchase_order",43]} 
[2026-09-15 16:58:01] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":false,"date":"2026-09-14"} 
[2026-09-15 16:58:13] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 16:58:13] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 16:58:13] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 16:58:13] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:13] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135175.80240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 16:58:13] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 16:58:13] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 16:58:13] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 16:58:13] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 16:58:18] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:58:27] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:58:28] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:58:28] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 16:58:28] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 16:58:28] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:28] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"57135150.93840000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 16:58:28] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:58:28] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 16:58:28] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",8]} 
[2026-09-15 16:58:28] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 16:58:29] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:58:29] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:58:29] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 16:58:29] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 16:58:29] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:29] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"79665221.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 16:58:29] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:58:29] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:58:29] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 16:58:29] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",8]} 
[2026-09-15 16:58:29] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"150500821.00000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 16:58:36] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:58:36] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 16:58:36] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 16:58:36] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:36] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135175.80240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 16:58:36] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:58:36] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 16:58:36] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 16:58:36] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 16:58:37] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:58:37] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:58:37] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 16:58:37] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 16:58:37] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:37] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"150500740.00000000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 16:58:37] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:58:37] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:58:37] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 16:58:37] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 16:58:37] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"150500821.00000000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 16:58:56] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-08-16","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:58:56] live.INFO: Opening stock calculation - including all transactions {"date":"2026-08-16"} 
[2026-09-15 16:58:56] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-08-16')"} 
[2026-09-15 16:58:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-08-16') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-08-16'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"127933786.22080000","is_opening":true,"date":"2026-08-16"} 
[2026-09-15 16:58:56] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:58:56] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 16:58:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 16:58:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 16:58:56] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-08-16","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:58:56] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:58:56] live.INFO: Opening stock calculation - including all transactions {"date":"2026-08-16"} 
[2026-09-15 16:58:56] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-08-16')"} 
[2026-09-15 16:58:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-08-16') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-08-16'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 16:58:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"148714054.00000000","is_opening":true,"date":"2026-08-16"} 
[2026-09-15 16:58:56] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:58:56] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:58:56] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 16:58:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 16:58:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"150500821.00000000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 16:59:09] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 16:59:09] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 16:59:09] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 16:59:09] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",8,"opening_stock","opening_stock"]} 
[2026-09-15 16:59:09] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135175.80240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 16:59:09] live.INFO: === getOpeningClosingStock START === {"business_id":8,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":null} 
[2026-09-15 16:59:09] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 16:59:09] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",8]} 
[2026-09-15 16:59:09] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"129135229.81040000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 16:59:51] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:59:51] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 16:59:51] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 16:59:51] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:59:51] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 16:59:51] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:59:51] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 16:59:51] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 16:59:51] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 16:59:51] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 16:59:51] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:59:51] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:59:51] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 16:59:51] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 16:59:51] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:59:51] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 16:59:51] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:59:51] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:59:51] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 16:59:51] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 16:59:51] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 16:59:55] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-13","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:59:55] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-13"} 
[2026-09-15 16:59:55] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-13')"} 
[2026-09-15 16:59:55] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-13') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-13'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:59:55] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680860.28240000","is_opening":true,"date":"2026-09-13"} 
[2026-09-15 16:59:55] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 16:59:55] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-14' (includes all types except purchase_order)"} 
[2026-09-15 16:59:55] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-14'","bindings":["purchase_order",43]} 
[2026-09-15 16:59:55] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":false,"date":"2026-09-14"} 
[2026-09-15 16:59:56] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-13","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:59:56] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:59:56] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-13"} 
[2026-09-15 16:59:56] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-13')"} 
[2026-09-15 16:59:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-13') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-13'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 16:59:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7589182.50000000","is_opening":true,"date":"2026-09-13"} 
[2026-09-15 16:59:56] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 16:59:56] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 16:59:56] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-14' (includes all types except purchase_order)"} 
[2026-09-15 16:59:56] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-14'","bindings":["purchase_order",43]} 
[2026-09-15 16:59:56] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":false,"date":"2026-09-14"} 
[2026-09-15 17:00:09] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 17:00:39] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:00:39] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 17:00:39] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 17:00:39] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:00:39] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 17:00:39] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:00:39] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 17:00:39] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 17:00:39] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 17:00:39] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 17:00:39] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:00:39] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:00:39] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 17:00:39] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 17:00:39] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:00:39] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 17:00:39] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:00:39] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:00:39] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 17:00:39] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 17:00:39] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 17:00:41] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:00:41] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 17:00:41] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 17:00:41] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:00:41] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 17:00:41] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:00:41] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 17:00:41] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 17:00:41] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 17:00:43] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:00:43] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:00:43] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 17:00:43] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 17:00:43] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:00:43] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 17:00:43] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:00:43] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:00:43] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 17:00:43] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 17:00:43] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 17:01:28] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 17:03:21] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:03:21] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 17:03:21] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 17:03:21] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:03:21] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 17:03:21] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:03:21] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 17:03:21] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 17:03:21] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 17:03:21] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 17:03:22] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:03:22] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:03:22] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 17:03:22] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 17:03:22] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:03:22] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 17:03:22] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:03:22] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:03:22] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 17:03:22] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 17:03:22] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 17:03:32] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:03:32] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 17:03:32] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 17:03:32] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:03:32] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4680460.28240000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 17:03:32] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:03:32] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 17:03:32] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 17:03:32] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 17:03:32] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-14","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:03:32] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:03:32] live.INFO: Opening stock calculation - including all transactions {"date":"2026-09-14"} 
[2026-09-15 17:03:32] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2026-09-14')"} 
[2026-09-15 17:03:32] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-14') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2026-09-14'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:03:32] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7588682.50000000","is_opening":true,"date":"2026-09-14"} 
[2026-09-15 17:03:32] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-09-15","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:03:32] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:03:32] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-09-15' (includes all types except purchase_order)"} 
[2026-09-15 17:03:32] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-09-15') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-09-15'","bindings":["purchase_order",43]} 
[2026-09-15 17:03:32] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-09-15"} 
[2026-09-15 17:04:28] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 17:05:29] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 17:06:09] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:06:09] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 17:06:09] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 17:06:09] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:06:09] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"2779050.28400000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 17:06:09] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":false,"filters":{"user_id":null},"permitted_locations":"all"} 
[2026-09-15 17:06:09] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 17:06:09] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * (purchase_lines.purchase_price + 
                        COALESCE(purchase_lines.item_tax, 0))
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 17:06:09] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"4678360.28240000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 17:06:09] live.INFO: Offline not allowed - triggering cleanup {"user_id":293,"business_id":43} 
[2026-09-15 17:06:09] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2025-12-31","location_id":null,"is_opening":true,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:06:09] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:06:09] live.INFO: Opening stock calculation - including all transactions {"date":"2025-12-31"} 
[2026-09-15 17:06:09] live.INFO: Applied opening stock condition {"condition":"purchase.type = 'opening_stock' OR (purchase.type != 'opening_stock' AND date(transaction_date) <= '2025-12-31')"} 
[2026-09-15 17:06:09] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2025-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and (`purchase`.`type` = ? or (`purchase`.`type` != ? and date(transaction_date) <= '2025-12-31'))","bindings":["purchase_order",43,"opening_stock","opening_stock"]} 
[2026-09-15 17:06:09] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"5040630.00000000","is_opening":true,"date":"2025-12-31"} 
[2026-09-15 17:06:09] live.INFO: === getOpeningClosingStock START === {"business_id":43,"date":"2026-12-31","location_id":null,"is_opening":false,"by_sale_price":true,"filters":"all","permitted_locations":null} 
[2026-09-15 17:06:09] live.DEBUG: Using sale price instead of purchase price {"price_query_part":"v.sell_price_inc_tax"} 
[2026-09-15 17:06:09] live.INFO: Applied closing stock condition {"condition":"date(transaction_date) <= '2026-12-31' (includes all types except purchase_order)"} 
[2026-09-15 17:06:09] live.DEBUG: Final SQL Query {"sql":"select SUM((purchase_lines.quantity - purchase_lines.quantity_returned - purchase_lines.quantity_adjusted -
                        (SELECT COALESCE(SUM(tspl.quantity - tspl.qty_returned), 0) FROM 
                        transaction_sell_lines_purchase_lines AS tspl
                        JOIN transaction_sell_lines as tsl ON 
                        tspl.sell_line_id=tsl.id 
                        JOIN transactions as sale ON 
                        tsl.transaction_id=sale.id 
                        WHERE tspl.purchase_line_id = purchase_lines.id AND 
                        date(sale.transaction_date) <= '2026-12-31') ) * v.sell_price_inc_tax
                    ) as stock from `purchase_lines` inner join `transactions` as `purchase` on `purchase_lines`.`transaction_id` = `purchase`.`id` left join `variations` as `v` on `v`.`id` = `purchase_lines`.`variation_id` left join `products` as `p` on `p`.`id` = `purchase_lines`.`product_id` where `purchase`.`type` != ? and `purchase`.`business_id` = ? and date(transaction_date) <= '2026-12-31'","bindings":["purchase_order",43]} 
[2026-09-15 17:06:09] live.INFO: === getOpeningClosingStock RESULT === {"calculated_stock":"7585682.50000000","is_opening":false,"date":"2026-12-31"} 
[2026-09-15 17:12:22] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 17:16:00] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 17:16:16] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 17:16:25] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:23:33] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:39:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:40:27] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:39] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:39] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:39] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:43] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:43] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:43] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:43] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:46] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:50:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:51:53] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:52:48] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 18:52:54] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:53:48] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:53:54] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:54:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 18:54:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 18:54:47] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 18:54:48] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:54:54] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:55:47] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:55:47] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:55:48] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:55:49] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:55:54] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 18:55:57] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:01] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:02] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:03] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:06] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:10] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:10] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:11] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:56:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 18:58:12] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 18:58:12] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 18:58:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 18:59:12] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 19:00:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 19:00:13] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 19:15:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 19:44:49] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 19:59:51] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:05:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:30:39] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:37:37] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:37:49] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:37:53] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:37:58] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:38:02] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "435", with message "435 Unable to authenticate at present".".  
[2026-09-15 20:38:06] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:38:12] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:38:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:38:21] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:38:25] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:39:26] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 20:39:27] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 20:39:37] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 20:39:48] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 20:43:56] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:52:03] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:53:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:53:57] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:59:20] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:59:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:59:45] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:59:49] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:59:53] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 20:59:57] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:00:01] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:00:05] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:00:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:01:17] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:01:25] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:01:33] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:01:41] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:02:11] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 21:02:17] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:02:25] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:02:33] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:02:41] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:03:11] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:03:18] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:03:26] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:03:34] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:03:42] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:04:11] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:04:18] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:04:26] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:04:34] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:04:42] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:05:11] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:05:18] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:05:21] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:26] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:26] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:05:30] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:33] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:34] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:34] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:34] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:34] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:05:37] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:05:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:09:41] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 21:09:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 21:09:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 21:09:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 21:09:42] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 21:10:41] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:10:42] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:16:21] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:16:30] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:16:38] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:21:15] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:26:40] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:27:23] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:35:54] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:36:14] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:36:18] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:36:22] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:38:25] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:39:12] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 21:41:44] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 21:55:06] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:03:54] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:14:52] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:15:08] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:15:51] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:17:57] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:18:09] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:18:25] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:19:05] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:19:17] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:19:21] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 22:20:51] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 22:21:21] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 22:21:51] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 22:22:33] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 22:23:03] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 22:23:21] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.". Authenticator "PLAIN" returned "Connection to "ssl://mail.risetsystems.com:465" timed out.".  
[2026-09-15 22:23:33] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 22:24:31] live.ERROR: Failed to send error alert email: Connection could not be established with host "ssl://mail.risetsystems.com:465": stream_socket_client(): Unable to connect to ssl://mail.risetsystems.com:465 (Connection timed out)  
[2026-09-15 23:03:50] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 23:17:55] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 23:19:36] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 23:38:27] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 23:49:50] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
[2026-09-15 23:53:08] live.ERROR: Failed to send error alert email: Failed to authenticate on SMTP server with username "support@risetsystems.com" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".". Authenticator "PLAIN" returned "Expected response code "235" but got code "535", with message "535 Incorrect authentication data".".  
