2024-08-12 17:59:20.927495
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_CASH_PAYMENT','GL_TRANS_TYPE_CASH_RECEIPT','GL_TRANS_TYPE_GL_CREDIT','GL_TRANS_TYPE_GL_DEBIT' ) ORDER BY gn.value_name,lv.value_code

2024-08-12 17:59:20.933942
SELECT COUNT(*) FROM 0_pre_journal as gl 
                LEFT JOIN 0_list_values gltn 
                    ON gltn.id = gl.gl_trans_type_id 
             WHERE (gl.tran_date >= '2022-07-01'
                AND gl.tran_date <= '2024-08-12'
                AND gl.amount!=0 AND trans_no = '181')

2024-08-12 17:59:20.957976
 SELECT  gl.*,
                gltn.value_name gl_trans_type_name          
            FROM 0_pre_journal as gl 
                LEFT JOIN 0_list_values gltn 
                    ON gltn.id = gl.gl_trans_type_id 
             WHERE (gl.tran_date >= '2022-07-01'
                AND gl.tran_date <= '2024-08-12'
                AND gl.amount!=0 AND trans_no = '181') LIMIT 0, 10

2024-08-12 17:59:20.960422
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='234'

2024-08-12 17:59:34.687751
SELECT gl.*, cm.account_name, IF(ISNULL(refs.reference), '', refs.reference) AS reference, pm.project_code  
                FROM 0_gl_trans as gl
		LEFT JOIN 0_chart_master as cm ON gl.account = cm.account_code
		LEFT JOIN 0_projects_master as pm ON gl.dimension_id = pm.project_id 
		LEFT JOIN 0_refs as refs ON (gl.type=refs.type AND gl.type_no=refs.id) WHERE gl.type= '223' AND gl.type_no = '181' AND gl.amount <> 0 ORDER BY counter

2024-08-12 17:59:34.691142
SELECT name, value FROM 0_sys_prefs

2024-08-12 17:59:34.693197
SELECT * 
            FROM 0_bank_trans bt 
                JOIN 0_cheque_printing_log cpl ON 
                    cpl.type = bt.type AND 
                    cpl.trans_no = bt.trans_no AND 
                    cpl.cheque_no = bt.cheque_no  
            WHERE cpl.type =  '223' 
                    AND cpl.trans_no = '181' 
            ORDER BY cpl.id DESC LIMIT 1

2024-08-12 17:59:34.706154
SELECT * FROM 0_comments WHERE type='223' AND id='181'

2024-08-12 17:59:34.708016
SELECT * FROM 0_voided WHERE type='223' AND id='181'

2024-08-12 17:59:34.709754
SELECT DISTINCT * FROM 0_attachments WHERE type_no='223' AND trans_no='181'

2024-08-12 17:59:34.712890
SELECT * FROM 0_attachments WHERE type_no='223' AND trans_no='181' ORDER BY trans_no

2024-08-12 17:59:50.730455
SELECT name, value FROM 0_sys_prefs

2024-08-12 17:59:50.908832
SELECT name, value FROM 0_sys_prefs

2024-08-12 17:59:51.664992
SELECT name, value FROM 0_sys_prefs

2024-08-12 17:59:51.918134
SELECT name, value FROM 0_sys_prefs

2024-08-12 17:59:56.729026
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 17:59:56.804029
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 17:59:56.875572
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 17:59:56.879096
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 17:59:56.896271
SELECT name, value FROM 0_sys_prefs

2024-08-12 17:59:56.918080
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 17:59:57.527385
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 17:59:57.567771
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 17:59:57.573242
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 17:59:57.574866
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 17:59:57.585066
SELECT name, value FROM 0_sys_prefs

2024-08-12 17:59:57.587133
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:00:19.15388
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:00:19.17597
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:00:19.27819
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:00:19.29958
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:00:43.49823
SELECT account_name from 0_chart_master WHERE account_code='51273'

2024-08-12 18:00:43.69984
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:00:43.72613
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:00:43.83273
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:00:43.86093
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:00:54.602772
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:00:54.605665
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:00:54.616380
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:00:54.619217
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:02.912760
SELECT reference FROM 0_pre_journal 
			LEFT JOIN 0_voided v ON 
				0_pre_journal.type=v.type AND 0_pre_journal.trans_no=v.id
			WHERE 0_pre_journal.reference='182' AND ISNULL(v.id)
				AND 0_pre_journal.type='223'

2024-08-12 18:01:02.926100
SELECT * FROM 0_fiscal_year WHERE '2023-03-31' >= begin AND '2023-03-31' <= end AND closed=0

2024-08-12 18:01:02.927645
SELECT * 
                FROM 0_accounting_periods 
                WHERE end_date >= '2023-03-31' 
                ORDER BY end_date LIMIT 1

2024-08-12 18:01:02.930518
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:01:02.932301
BEGIN

2024-08-12 18:01:02.933360
SELECT max(last_no) last_no FROM (SELECT MAX(`trans_no`) as last_no FROM 0_pre_journal WHERE `type`='223' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='223') a

2024-08-12 18:01:02.934541
SELECT * FROM 0_pre_journal 
            WHERE `type` = '223' AND `trans_no` = '182'

2024-08-12 18:01:02.935958
INSERT INTO 0_pre_journal(
                        `type`,`trans_no`, `act_code`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
                        `event_date`, `doc_date`, `person_type_id`, `person_id`, `person_detail_id`, `float_id`, `gl_trans_type_id`,
                        `comment`)
            VALUES('223','182','54513','-19879','LKR','0','182','182','2023-03-31','2023-03-31','2023-03-31' ,'0','', '0', '0', '2420', 'Reverse Entry - OP Balance adjustment')

2024-08-12 18:01:02.940197
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '182', '2023-03-31',
                        '51273', '0', '0', 'Reverse Entry - OP Balance adjustment', '19879', '0', '') 

2024-08-12 18:01:02.956385
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '182', '2023-03-31',
                        '54513', '0', '0', 'Reverse Entry - OP Balance adjustment', '-19879', '0', '') 

2024-08-12 18:01:02.957631
REPLACE 0_refs SET reference='182', type='223', id='182'

2024-08-12 18:01:02.977792
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:01:03.24971
UPDATE 0_sys_types SET next_reference='183' WHERE type_id = '223'

2024-08-12 18:01:03.27627
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '182',208,17,'2023-03-31','', 0)

2024-08-12 18:01:03.37220
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='182' AND id!=77405

2024-08-12 18:01:03.48618
SELECT max(last_no) last_no FROM (SELECT MAX(`type_no`) as last_no FROM 0_gl_trans WHERE `type`='0' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='0') a

2024-08-12 18:01:03.52097
INSERT INTO 0_journal(
	   `type`,`trans_no`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
           `event_date`,`doc_date`,`person_type_id`,`person_id`,`float_id`)
	  VALUES('223','182','-19879','LKR','0','182','182','2023-03-31','2023-03-31','2023-03-31' ,'0','','0')

2024-08-12 18:01:03.56784
SELECT id FROM 0_bank_accounts WHERE account_code='51273'

2024-08-12 18:01:03.58112
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '182', '2023-03-31',
		'51273', '0', '0', 'Reverse Entry - OP Balance adjustment', '19879', '2420', '0', '') 

2024-08-12 18:01:03.62095
SELECT id FROM 0_tax_types WHERE 
		sales_gl_code='51273' OR purchasing_gl_code='51273'

2024-08-12 18:01:03.64950
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '182', '2023-03-31',
		'54513', '0', '0', 'Reverse Entry - OP Balance adjustment', '-19879', '2420', '0', '') 

2024-08-12 18:01:03.66460
INSERT INTO 0_comments (type, id, date_, memo_)
    		VALUES ('223', '182', '2023-03-31', 'Reverse Entry - OP Balance adjustment')

2024-08-12 18:01:03.70472
REPLACE 0_refs SET reference='182', type='223', id='182'

2024-08-12 18:01:03.71519
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:01:03.72702
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '182',208,17,'2023-03-31','', 0)

2024-08-12 18:01:03.73770
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='182' AND id!=77406

2024-08-12 18:01:03.75077
UPDATE 0_pre_journal 
            SET approval_status = '30', 
                approved_by = '208',
                approved_on = '2024-08-12 18:01:03' 
            WHERE type = '223'  
                AND trans_no = '182' 
                AND approved_by = 0 

2024-08-12 18:01:03.76137
COMMIT

2024-08-12 18:01:08.645478
SELECT next_reference FROM 0_sys_types WHERE type_id = '222'

2024-08-12 18:01:08.670343
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:01:08.694413
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_DEBIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:01:08.737808
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:08.787693
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:01:08.797943
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:09.465358
SELECT next_reference FROM 0_sys_types WHERE type_id = '222'

2024-08-12 18:01:09.468042
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:01:09.476390
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_DEBIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:01:09.482567
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:09.492718
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:01:09.494715
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:13.513539
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_DEBIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:01:13.521883
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:13.532117
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:01:13.538882
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:40.94042
SELECT account_name from 0_chart_master WHERE account_code='51273'

2024-08-12 18:01:40.111865
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_DEBIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:01:40.132199
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:40.147588
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:01:40.155243
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:01:48.839202
SELECT reference FROM 0_pre_journal 
			LEFT JOIN 0_voided v ON 
				0_pre_journal.type=v.type AND 0_pre_journal.trans_no=v.id
			WHERE 0_pre_journal.reference='500' AND ISNULL(v.id)
				AND 0_pre_journal.type='222'

2024-08-12 18:01:48.848133
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:01:48.852003
SELECT * 
                FROM 0_accounting_periods 
                WHERE end_date >= '2024-08-12' 
                ORDER BY end_date LIMIT 1

2024-08-12 18:01:48.854408
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:01:48.856088
BEGIN

2024-08-12 18:01:48.857075
SELECT max(last_no) last_no FROM (SELECT MAX(`trans_no`) as last_no FROM 0_pre_journal WHERE `type`='222' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='222') a

2024-08-12 18:01:48.860118
SELECT * FROM 0_pre_journal 
            WHERE `type` = '222' AND `trans_no` = '500'

2024-08-12 18:01:48.861528
INSERT INTO 0_pre_journal(
                        `type`,`trans_no`, `act_code`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
                        `event_date`, `doc_date`, `person_type_id`, `person_id`, `person_detail_id`, `float_id`, `gl_trans_type_id`,
                        `comment`)
            VALUES('222','500','54513','19879','LKR','0','500','500','2024-08-12','2024-08-12','2024-08-12' ,'0','', '0', '0', '2423', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:01:48.864256
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '222', '500', '2024-08-12',
                        '51273', '0', '0', '	Reverse Entry - OP Balance adjustment', '-19879', '0', '') 

2024-08-12 18:01:48.868972
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '222', '500', '2024-08-12',
                        '54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '19879', '0', '') 

2024-08-12 18:01:48.870254
REPLACE 0_refs SET reference='500', type='222', id='500'

2024-08-12 18:01:48.874122
SELECT next_reference FROM 0_sys_types WHERE type_id = '222'

2024-08-12 18:01:48.877501
UPDATE 0_sys_types SET next_reference='501' WHERE type_id = '222'

2024-08-12 18:01:48.879371
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('222', '500',208,17,'2024-08-12','', 0)

2024-08-12 18:01:48.884756
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='222' AND trans_no='500' AND id!=77407

2024-08-12 18:01:48.893710
SELECT max(last_no) last_no FROM (SELECT MAX(`type_no`) as last_no FROM 0_gl_trans WHERE `type`='0' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='0') a

2024-08-12 18:01:48.897302
INSERT INTO 0_journal(
	   `type`,`trans_no`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
           `event_date`,`doc_date`,`person_type_id`,`person_id`,`float_id`)
	  VALUES('222','500','19879','LKR','0','500','500','2024-08-12','2024-08-12','2024-08-12' ,'0','','0')

2024-08-12 18:01:48.900888
SELECT id FROM 0_bank_accounts WHERE account_code='51273'

2024-08-12 18:01:48.902299
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('222', '500', '2024-08-12',
		'51273', '0', '0', '	Reverse Entry - OP Balance adjustment', '-19879', '2423', '0', '') 

2024-08-12 18:01:48.907150
SELECT id FROM 0_tax_types WHERE 
		sales_gl_code='51273' OR purchasing_gl_code='51273'

2024-08-12 18:01:48.910221
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('222', '500', '2024-08-12',
		'54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '19879', '2423', '0', '') 

2024-08-12 18:01:48.911344
INSERT INTO 0_comments (type, id, date_, memo_)
    		VALUES ('222', '500', '2024-08-12', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:01:48.915276
REPLACE 0_refs SET reference='500', type='222', id='500'

2024-08-12 18:01:48.916358
SELECT next_reference FROM 0_sys_types WHERE type_id = '222'

2024-08-12 18:01:48.917470
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('222', '500',208,17,'2024-08-12','', 0)

2024-08-12 18:01:48.918494
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='222' AND trans_no='500' AND id!=77408

2024-08-12 18:01:48.919875
UPDATE 0_pre_journal 
            SET approval_status = '30', 
                approved_by = '208',
                approved_on = '2024-08-12 18:01:48' 
            WHERE type = '222'  
                AND trans_no = '500' 
                AND approved_by = 0 

2024-08-12 18:01:48.920898
COMMIT

2024-08-12 18:01:58.20607
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:01:58.56292
SELECT * FROM 0_fiscal_year WHERE id='17'

2024-08-12 18:01:58.60489
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND 0_chart_master.account_code >= '51273' AND 0_chart_master.account_code <= '51273' ORDER BY account_code

2024-08-12 18:01:58.61743
SELECT 0_chart_class.ctype 
            FROM 0_chart_class, 0_chart_types, 0_chart_master
            WHERE 0_chart_master.account_type=0_chart_types.id AND
                    0_chart_types.class_id=0_chart_class.cid
                    AND 0_chart_master.account_code='51273'

2024-08-12 18:01:58.63684
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51273'  AND tran_date < '2023-04-01'

2024-08-12 18:01:58.79873
SELECT gt.*, 
		cm.account_name, 
		pm.project_code   
                
                FROM 0_gl_trans gt 
                    JOIN 0_chart_master cm 
                        ON cm.account_code=gt.account 
                    LEFT JOIN 0_projects_master pm 
                        ON pm.project_id = gt.dimension_id  
                    LEFT JOIN 0_voided v 
                        ON gt.type_no=v.id 
                        AND v.type=gt.type 
                WHERE ISNULL(v.date_)
		AND tran_date >= '2023-04-01'
		AND tran_date <= '2024-03-31' AND gt.amount <> 0 AND gt.account = '51273' ORDER BY tran_date, counter

2024-08-12 18:01:58.104302
SELECT * FROM 0_refs WHERE type='1' AND id='468'

2024-08-12 18:01:58.106291
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='191'

2024-08-12 18:01:58.109704
SELECT * FROM 0_refs WHERE type='1' AND id='469'

2024-08-12 18:01:58.110986
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='279'

2024-08-12 18:01:58.113037
SELECT * FROM 0_refs WHERE type='222' AND id='396'

2024-08-12 18:01:58.115379
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.116710
SELECT * FROM 0_refs WHERE type='222' AND id='397'

2024-08-12 18:01:58.117942
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.119242
SELECT * FROM 0_refs WHERE type='2' AND id='375'

2024-08-12 18:01:58.121158
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='279'

2024-08-12 18:01:58.122497
SELECT * FROM 0_refs WHERE type='2' AND id='376'

2024-08-12 18:01:58.123735
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='191'

2024-08-12 18:01:58.125056
SELECT * FROM 0_refs WHERE type='2' AND id='408'

2024-08-12 18:01:58.127242
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='191'

2024-08-12 18:01:58.128563
SELECT * FROM 0_refs WHERE type='1' AND id='2682'

2024-08-12 18:01:58.130437
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='191'

2024-08-12 18:01:58.131776
SELECT * FROM 0_refs WHERE type='1' AND id='627'

2024-08-12 18:01:58.133845
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.135184
SELECT * FROM 0_refs WHERE type='222' AND id='398'

2024-08-12 18:01:58.136422
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.137766
SELECT * FROM 0_refs WHERE type='222' AND id='152'

2024-08-12 18:01:58.139922
SELECT * FROM 0_refs WHERE type='223' AND id='34'

2024-08-12 18:01:58.142119
SELECT * FROM 0_refs WHERE type='1' AND id='745'

2024-08-12 18:01:58.144071
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.145393
SELECT * FROM 0_refs WHERE type='222' AND id='399'

2024-08-12 18:01:58.146633
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.147920
SELECT * FROM 0_refs WHERE type='222' AND id='162'

2024-08-12 18:01:58.150183
SELECT * FROM 0_refs WHERE type='223' AND id='75'

2024-08-12 18:01:58.152443
SELECT * FROM 0_refs WHERE type='1' AND id='1028'

2024-08-12 18:01:58.154585
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.155974
SELECT * FROM 0_refs WHERE type='1' AND id='1029'

2024-08-12 18:01:58.157211
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.158497
SELECT * FROM 0_refs WHERE type='222' AND id='400'

2024-08-12 18:01:58.159727
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.161135
SELECT * FROM 0_refs WHERE type='222' AND id='401'

2024-08-12 18:01:58.162403
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.163713
SELECT * FROM 0_refs WHERE type='1' AND id='1062'

2024-08-12 18:01:58.165848
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.167194
SELECT * FROM 0_refs WHERE type='1' AND id='1063'

2024-08-12 18:01:58.168427
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.169713
SELECT * FROM 0_refs WHERE type='222' AND id='402'

2024-08-12 18:01:58.170936
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.172294
SELECT * FROM 0_refs WHERE type='222' AND id='403'

2024-08-12 18:01:58.173532
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.174831
SELECT * FROM 0_refs WHERE type='2' AND id='380'

2024-08-12 18:01:58.176174
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.177451
SELECT * FROM 0_refs WHERE type='2' AND id='381'

2024-08-12 18:01:58.178695
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.179970
SELECT * FROM 0_refs WHERE type='1' AND id='1356'

2024-08-12 18:01:58.181956
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:01:58.183312
SELECT * FROM 0_refs WHERE type='222' AND id='404'

2024-08-12 18:01:58.184566
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='224'

2024-08-12 18:02:30.661916
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:02:30.664849
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:02:30.670728
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:02:30.680378
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:02:30.701181
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:02:30.703291
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:02:30.949557
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:02:30.952233
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:02:30.956974
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:02:30.958528
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:02:30.968577
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:02:30.971019
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:02:43.802293
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:02:43.804374
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:02:43.815016
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:02:43.817517
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:02:44.505065
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:02:44.507738
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:02:44.517881
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:02:44.519990
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:05.733773
SELECT account_name from 0_chart_master WHERE account_code='51274'

2024-08-12 18:03:05.736985
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:03:05.738619
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:05.748830
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:03:05.751393
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:30.401468
SELECT reference FROM 0_pre_journal 
			LEFT JOIN 0_voided v ON 
				0_pre_journal.type=v.type AND 0_pre_journal.trans_no=v.id
			WHERE 0_pre_journal.reference='183' AND ISNULL(v.id)
				AND 0_pre_journal.type='223'

2024-08-12 18:03:30.406205
SELECT * FROM 0_fiscal_year WHERE '2023-03-31' >= begin AND '2023-03-31' <= end AND closed=0

2024-08-12 18:03:30.408267
SELECT * 
                FROM 0_accounting_periods 
                WHERE end_date >= '2023-03-31' 
                ORDER BY end_date LIMIT 1

2024-08-12 18:03:30.409764
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:03:30.411665
BEGIN

2024-08-12 18:03:30.412962
SELECT max(last_no) last_no FROM (SELECT MAX(`trans_no`) as last_no FROM 0_pre_journal WHERE `type`='223' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='223') a

2024-08-12 18:03:30.414567
SELECT * FROM 0_pre_journal 
            WHERE `type` = '223' AND `trans_no` = '183'

2024-08-12 18:03:30.416314
INSERT INTO 0_pre_journal(
                        `type`,`trans_no`, `act_code`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
                        `event_date`, `doc_date`, `person_type_id`, `person_id`, `person_detail_id`, `float_id`, `gl_trans_type_id`,
                        `comment`)
            VALUES('223','183','54513','-35873','LKR','0','183','183','2023-03-31','2023-03-31','2023-03-31' ,'0','', '0', '0', '2420', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:03:30.418990
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '183', '2023-03-31',
                        '51274', '0', '0', '	Reverse Entry - OP Balance adjustment', '35873', '0', '') 

2024-08-12 18:03:30.420652
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '183', '2023-03-31',
                        '54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-35873', '0', '') 

2024-08-12 18:03:30.422007
REPLACE 0_refs SET reference='183', type='223', id='183'

2024-08-12 18:03:30.424026
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:03:30.425471
UPDATE 0_sys_types SET next_reference='184' WHERE type_id = '223'

2024-08-12 18:03:30.427706
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '183',208,17,'2023-03-31','', 0)

2024-08-12 18:03:30.429093
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='183' AND id!=77409

2024-08-12 18:03:30.431460
SELECT max(last_no) last_no FROM (SELECT MAX(`type_no`) as last_no FROM 0_gl_trans WHERE `type`='0' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='0') a

2024-08-12 18:03:30.433176
INSERT INTO 0_journal(
	   `type`,`trans_no`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
           `event_date`,`doc_date`,`person_type_id`,`person_id`,`float_id`)
	  VALUES('223','183','-35873','LKR','0','183','183','2023-03-31','2023-03-31','2023-03-31' ,'0','','0')

2024-08-12 18:03:30.435241
SELECT id FROM 0_bank_accounts WHERE account_code='51274'

2024-08-12 18:03:30.436784
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '183', '2023-03-31',
		'51274', '0', '0', '	Reverse Entry - OP Balance adjustment', '35873', '2420', '0', '') 

2024-08-12 18:03:30.438119
SELECT id FROM 0_tax_types WHERE 
		sales_gl_code='51274' OR purchasing_gl_code='51274'

2024-08-12 18:03:30.439575
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '183', '2023-03-31',
		'54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-35873', '2420', '0', '') 

2024-08-12 18:03:30.440937
INSERT INTO 0_comments (type, id, date_, memo_)
    		VALUES ('223', '183', '2023-03-31', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:03:30.442218
REPLACE 0_refs SET reference='183', type='223', id='183'

2024-08-12 18:03:30.443458
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:03:30.444785
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '183',208,17,'2023-03-31','', 0)

2024-08-12 18:03:30.446045
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='183' AND id!=77410

2024-08-12 18:03:30.447662
UPDATE 0_pre_journal 
            SET approval_status = '30', 
                approved_by = '208',
                approved_on = '2024-08-12 18:03:30' 
            WHERE type = '223'  
                AND trans_no = '183' 
                AND approved_by = 0 

2024-08-12 18:03:30.448952
COMMIT

2024-08-12 18:03:47.45048
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:03:47.50643
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:03:47.58275
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:03:47.59883
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:47.70010
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:03:47.72214
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:47.451985
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:03:47.454563
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:03:47.459459
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:03:47.461031
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:47.471076
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:03:47.473249
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:49.972512
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:03:50.7649
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:03:50.14155
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:03:50.18583
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:50.30492
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:03:50.37568
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:50.458044
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:03:50.460995
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:03:50.465965
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:03:50.467688
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:03:50.477972
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:03:50.480129
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:04:01.981691
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:04:01.983649
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:04:01.993935
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:04:01.996115
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:04:04.763976
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:04:04.766283
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:04:04.776371
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:04:04.778620
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:04:32.120166
SELECT account_name from 0_chart_master WHERE account_code='51261'

2024-08-12 18:04:32.123008
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:04:32.124427
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:04:32.134425
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:04:32.136848
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:05.454647
SELECT reference FROM 0_pre_journal 
			LEFT JOIN 0_voided v ON 
				0_pre_journal.type=v.type AND 0_pre_journal.trans_no=v.id
			WHERE 0_pre_journal.reference='184' AND ISNULL(v.id)
				AND 0_pre_journal.type='223'

2024-08-12 18:05:05.471625
SELECT * FROM 0_fiscal_year WHERE '2023-03-31' >= begin AND '2023-03-31' <= end AND closed=0

2024-08-12 18:05:05.488376
SELECT * 
                FROM 0_accounting_periods 
                WHERE end_date >= '2023-03-31' 
                ORDER BY end_date LIMIT 1

2024-08-12 18:05:05.499307
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:05:05.515780
BEGIN

2024-08-12 18:05:05.520375
SELECT max(last_no) last_no FROM (SELECT MAX(`trans_no`) as last_no FROM 0_pre_journal WHERE `type`='223' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='223') a

2024-08-12 18:05:05.530461
SELECT * FROM 0_pre_journal 
            WHERE `type` = '223' AND `trans_no` = '184'

2024-08-12 18:05:05.533031
INSERT INTO 0_pre_journal(
                        `type`,`trans_no`, `act_code`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
                        `event_date`, `doc_date`, `person_type_id`, `person_id`, `person_detail_id`, `float_id`, `gl_trans_type_id`,
                        `comment`)
            VALUES('223','184','54513','-6128','LKR','0','184','184','2023-03-31','2023-03-31','2023-03-31' ,'0','', '0', '0', '2420', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:05:05.538393
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '184', '2023-03-31',
                        '51261', '0', '0', '	Reverse Entry - OP Balance adjustment', '6128', '0', '') 

2024-08-12 18:05:05.549370
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '184', '2023-03-31',
                        '54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-6128', '0', '') 

2024-08-12 18:05:05.583813
REPLACE 0_refs SET reference='184', type='223', id='184'

2024-08-12 18:05:05.588484
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:05:05.590001
UPDATE 0_sys_types SET next_reference='185' WHERE type_id = '223'

2024-08-12 18:05:05.592125
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '184',208,17,'2023-03-31','', 0)

2024-08-12 18:05:05.698354
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='184' AND id!=77411

2024-08-12 18:05:05.759935
SELECT max(last_no) last_no FROM (SELECT MAX(`type_no`) as last_no FROM 0_gl_trans WHERE `type`='0' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='0') a

2024-08-12 18:05:05.797709
INSERT INTO 0_journal(
	   `type`,`trans_no`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
           `event_date`,`doc_date`,`person_type_id`,`person_id`,`float_id`)
	  VALUES('223','184','-6128','LKR','0','184','184','2023-03-31','2023-03-31','2023-03-31' ,'0','','0')

2024-08-12 18:05:05.845984
SELECT id FROM 0_bank_accounts WHERE account_code='51261'

2024-08-12 18:05:05.886827
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '184', '2023-03-31',
		'51261', '0', '0', '	Reverse Entry - OP Balance adjustment', '6128', '2420', '0', '') 

2024-08-12 18:05:05.893215
SELECT id FROM 0_tax_types WHERE 
		sales_gl_code='51261' OR purchasing_gl_code='51261'

2024-08-12 18:05:05.896241
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '184', '2023-03-31',
		'54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-6128', '2420', '0', '') 

2024-08-12 18:05:05.897675
INSERT INTO 0_comments (type, id, date_, memo_)
    		VALUES ('223', '184', '2023-03-31', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:05:05.901876
REPLACE 0_refs SET reference='184', type='223', id='184'

2024-08-12 18:05:05.903140
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:05:05.904469
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '184',208,17,'2023-03-31','', 0)

2024-08-12 18:05:05.905777
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='184' AND id!=77412

2024-08-12 18:05:05.907268
UPDATE 0_pre_journal 
            SET approval_status = '30', 
                approved_by = '208',
                approved_on = '2024-08-12 18:05:05' 
            WHERE type = '223'  
                AND trans_no = '184' 
                AND approved_by = 0 

2024-08-12 18:05:05.908615
COMMIT

2024-08-12 18:05:10.477165
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:05:10.479994
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:05:10.484896
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:05:10.569946
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:10.588343
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:05:10.590774
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:10.948217
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:05:10.951447
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:05:10.956251
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:05:10.957983
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:10.968234
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:05:10.970421
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:33.882592
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:05:33.884354
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:33.894463
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:05:33.896506
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:44.314522
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:05:44.316543
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:44.326613
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:05:44.328774
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:53.836621
SELECT account_name from 0_chart_master WHERE account_code='51262'

2024-08-12 18:05:53.838903
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:05:53.840398
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:05:53.851371
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:05:53.854033
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:01.826614
SELECT reference FROM 0_pre_journal 
			LEFT JOIN 0_voided v ON 
				0_pre_journal.type=v.type AND 0_pre_journal.trans_no=v.id
			WHERE 0_pre_journal.reference='185' AND ISNULL(v.id)
				AND 0_pre_journal.type='223'

2024-08-12 18:06:01.842780
SELECT * FROM 0_fiscal_year WHERE '2023-03-31' >= begin AND '2023-03-31' <= end AND closed=0

2024-08-12 18:06:01.855331
SELECT * 
                FROM 0_accounting_periods 
                WHERE end_date >= '2023-03-31' 
                ORDER BY end_date LIMIT 1

2024-08-12 18:06:01.865107
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:06:01.870083
BEGIN

2024-08-12 18:06:01.871327
SELECT max(last_no) last_no FROM (SELECT MAX(`trans_no`) as last_no FROM 0_pre_journal WHERE `type`='223' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='223') a

2024-08-12 18:06:01.872741
SELECT * FROM 0_pre_journal 
            WHERE `type` = '223' AND `trans_no` = '185'

2024-08-12 18:06:01.874332
INSERT INTO 0_pre_journal(
                        `type`,`trans_no`, `act_code`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
                        `event_date`, `doc_date`, `person_type_id`, `person_id`, `person_detail_id`, `float_id`, `gl_trans_type_id`,
                        `comment`)
            VALUES('223','185','54513','-3689','LKR','0','185','185','2023-03-31','2023-03-31','2023-03-31' ,'0','', '0', '0', '2420', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:06:01.886842
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '185', '2023-03-31',
                        '51262', '0', '0', '	Reverse Entry - OP Balance adjustment', '3689', '0', '') 

2024-08-12 18:06:02.345547
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '185', '2023-03-31',
                        '54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-3689', '0', '') 

2024-08-12 18:06:02.381801
REPLACE 0_refs SET reference='185', type='223', id='185'

2024-08-12 18:06:02.418568
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:06:02.461629
UPDATE 0_sys_types SET next_reference='186' WHERE type_id = '223'

2024-08-12 18:06:02.474257
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '185',208,17,'2023-03-31','', 0)

2024-08-12 18:06:02.475691
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='185' AND id!=77414

2024-08-12 18:06:02.477828
SELECT max(last_no) last_no FROM (SELECT MAX(`type_no`) as last_no FROM 0_gl_trans WHERE `type`='0' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='0') a

2024-08-12 18:06:02.481570
INSERT INTO 0_journal(
	   `type`,`trans_no`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
           `event_date`,`doc_date`,`person_type_id`,`person_id`,`float_id`)
	  VALUES('223','185','-3689','LKR','0','185','185','2023-03-31','2023-03-31','2023-03-31' ,'0','','0')

2024-08-12 18:06:02.488546
SELECT id FROM 0_bank_accounts WHERE account_code='51262'

2024-08-12 18:06:02.490175
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '185', '2023-03-31',
		'51262', '0', '0', '	Reverse Entry - OP Balance adjustment', '3689', '2420', '0', '') 

2024-08-12 18:06:02.531361
SELECT id FROM 0_tax_types WHERE 
		sales_gl_code='51262' OR purchasing_gl_code='51262'

2024-08-12 18:06:02.534649
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '185', '2023-03-31',
		'54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-3689', '2420', '0', '') 

2024-08-12 18:06:02.536088
INSERT INTO 0_comments (type, id, date_, memo_)
    		VALUES ('223', '185', '2023-03-31', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:06:02.539614
REPLACE 0_refs SET reference='185', type='223', id='185'

2024-08-12 18:06:02.540920
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:06:02.542477
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '185',208,17,'2023-03-31','', 0)

2024-08-12 18:06:02.543842
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='185' AND id!=77415

2024-08-12 18:06:02.546003
UPDATE 0_pre_journal 
            SET approval_status = '30', 
                approved_by = '208',
                approved_on = '2024-08-12 18:06:02' 
            WHERE type = '223'  
                AND trans_no = '185' 
                AND approved_by = 0 

2024-08-12 18:06:02.547289
COMMIT

2024-08-12 18:06:09.964808
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:06:09.967826
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:06:09.972654
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:06:09.974415
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:09.984947
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:06:09.988213
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:10.426717
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:06:10.430742
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:06:10.435452
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:06:10.437125
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:10.447458
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:06:10.450703
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:20.86864
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:06:20.89522
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:20.99612
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:06:20.101724
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:21.570181
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:06:21.575696
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:21.586828
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:06:21.589134
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:55.359984
SELECT account_name from 0_chart_master WHERE account_code='51262'

2024-08-12 18:06:55.362817
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:06:55.364682
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:06:55.374931
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:06:55.377204
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:07:11.584820
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:07:11.586915
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:07:11.596823
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:07:11.598913
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:07:29.570044
SELECT account_name from 0_chart_master WHERE account_code='51263'

2024-08-12 18:07:29.582670
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:07:29.585443
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:07:29.603583
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:07:29.606998
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:07:39.958346
SELECT reference FROM 0_pre_journal 
			LEFT JOIN 0_voided v ON 
				0_pre_journal.type=v.type AND 0_pre_journal.trans_no=v.id
			WHERE 0_pre_journal.reference='186' AND ISNULL(v.id)
				AND 0_pre_journal.type='223'

2024-08-12 18:07:39.961017
SELECT * FROM 0_fiscal_year WHERE '2023-03-31' >= begin AND '2023-03-31' <= end AND closed=0

2024-08-12 18:07:39.962684
SELECT * 
                FROM 0_accounting_periods 
                WHERE end_date >= '2023-03-31' 
                ORDER BY end_date LIMIT 1

2024-08-12 18:07:39.963941
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:07:39.965681
BEGIN

2024-08-12 18:07:39.966827
SELECT max(last_no) last_no FROM (SELECT MAX(`trans_no`) as last_no FROM 0_pre_journal WHERE `type`='223' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='223') a

2024-08-12 18:07:39.968081
SELECT * FROM 0_pre_journal 
            WHERE `type` = '223' AND `trans_no` = '186'

2024-08-12 18:07:39.969597
INSERT INTO 0_pre_journal(
                        `type`,`trans_no`, `act_code`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
                        `event_date`, `doc_date`, `person_type_id`, `person_id`, `person_detail_id`, `float_id`, `gl_trans_type_id`,
                        `comment`)
            VALUES('223','186','54513','-29125','LKR','0','186','186','2023-03-31','2023-03-31','2023-03-31' ,'0','', '0', '0', '2420', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:07:39.971735
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '186', '2023-03-31',
                        '51263', '0', '0', '	Reverse Entry - OP Balance adjustment', '29125', '0', '') 

2024-08-12 18:07:39.973226
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '186', '2023-03-31',
                        '54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-29125', '0', '') 

2024-08-12 18:07:39.974470
REPLACE 0_refs SET reference='186', type='223', id='186'

2024-08-12 18:07:39.975569
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:07:39.976733
UPDATE 0_sys_types SET next_reference='187' WHERE type_id = '223'

2024-08-12 18:07:39.979291
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '186',208,17,'2023-03-31','', 0)

2024-08-12 18:07:39.980564
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='186' AND id!=77416

2024-08-12 18:07:39.981957
SELECT max(last_no) last_no FROM (SELECT MAX(`type_no`) as last_no FROM 0_gl_trans WHERE `type`='0' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='0') a

2024-08-12 18:07:39.983475
INSERT INTO 0_journal(
	   `type`,`trans_no`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
           `event_date`,`doc_date`,`person_type_id`,`person_id`,`float_id`)
	  VALUES('223','186','-29125','LKR','0','186','186','2023-03-31','2023-03-31','2023-03-31' ,'0','','0')

2024-08-12 18:07:39.984601
SELECT id FROM 0_bank_accounts WHERE account_code='51263'

2024-08-12 18:07:39.985947
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '186', '2023-03-31',
		'51263', '0', '0', '	Reverse Entry - OP Balance adjustment', '29125', '2420', '0', '') 

2024-08-12 18:07:39.987127
SELECT id FROM 0_tax_types WHERE 
		sales_gl_code='51263' OR purchasing_gl_code='51263'

2024-08-12 18:07:39.988435
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '186', '2023-03-31',
		'54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-29125', '2420', '0', '') 

2024-08-12 18:07:39.989644
INSERT INTO 0_comments (type, id, date_, memo_)
    		VALUES ('223', '186', '2023-03-31', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:07:39.990810
REPLACE 0_refs SET reference='186', type='223', id='186'

2024-08-12 18:07:39.991904
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:07:39.993062
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '186',208,17,'2023-03-31','', 0)

2024-08-12 18:07:39.994175
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='186' AND id!=77417

2024-08-12 18:07:39.995490
UPDATE 0_pre_journal 
            SET approval_status = '30', 
                approved_by = '208',
                approved_on = '2024-08-12 18:07:39' 
            WHERE type = '223'  
                AND trans_no = '186' 
                AND approved_by = 0 

2024-08-12 18:07:39.996611
COMMIT

2024-08-12 18:07:55.738867
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:07:55.741352
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:07:55.745798
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:07:55.747267
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:07:55.757158
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:07:55.759043
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:07:55.923788
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:07:55.926275
SELECT * FROM 0_fiscal_year WHERE '2024-08-12' >= begin AND '2024-08-12' <= end AND closed=0

2024-08-12 18:07:55.930700
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:07:55.932171
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:07:55.942177
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:07:55.944107
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:08:03.865072
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:08:03.937537
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:08:03.992226
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:08:04.13780
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:08:04.514804
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:08:04.518370
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:08:04.529365
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:08:04.531736
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:08:23.168524
SELECT account_name from 0_chart_master WHERE account_code='51252'

2024-08-12 18:08:23.170802
SELECT lv.id, lv.value_code, gn.value_name, lv.value_name   
            FROM 0_list_values lv 
                JOIN 0_list_values gn 
                    ON lv.group_value_id = gn.id  
            WHERE lv.inactive = 0 AND lv.list_code IN ( 'GL_TRANS_TYPE_GL_CREDIT' ) AND gn.value_code IN ( 'PT_MISC' )  ORDER BY gn.value_name,lv.value_code

2024-08-12 18:08:23.172377
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM 0_chart_master chart,0_chart_types type
			WHERE chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:08:23.182471
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:08:23.184697
SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id
			FROM (0_chart_master chart,0_chart_types type) LEFT JOIN 0_bank_accounts acc ON chart.account_code=acc.account_code
				WHERE acc.account_code  IS NULL
			AND chart.account_type=type.id ORDER BY type.class_id,type.id,account_code

2024-08-12 18:08:25.834475
SELECT reference FROM 0_pre_journal 
			LEFT JOIN 0_voided v ON 
				0_pre_journal.type=v.type AND 0_pre_journal.trans_no=v.id
			WHERE 0_pre_journal.reference='187' AND ISNULL(v.id)
				AND 0_pre_journal.type='223'

2024-08-12 18:08:25.837239
SELECT * FROM 0_fiscal_year WHERE '2023-03-31' >= begin AND '2023-03-31' <= end AND closed=0

2024-08-12 18:08:25.838848
SELECT * 
                FROM 0_accounting_periods 
                WHERE end_date >= '2023-03-31' 
                ORDER BY end_date LIMIT 1

2024-08-12 18:08:25.840065
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:08:25.841788
BEGIN

2024-08-12 18:08:25.842890
SELECT max(last_no) last_no FROM (SELECT MAX(`trans_no`) as last_no FROM 0_pre_journal WHERE `type`='223' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='223') a

2024-08-12 18:08:25.844117
SELECT * FROM 0_pre_journal 
            WHERE `type` = '223' AND `trans_no` = '187'

2024-08-12 18:08:25.845643
INSERT INTO 0_pre_journal(
                        `type`,`trans_no`, `act_code`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
                        `event_date`, `doc_date`, `person_type_id`, `person_id`, `person_detail_id`, `float_id`, `gl_trans_type_id`,
                        `comment`)
            VALUES('223','187','54513','-4985','LKR','0','187','187','2023-03-31','2023-03-31','2023-03-31' ,'0','', '0', '0', '2420', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:08:25.847676
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '187', '2023-03-31',
                        '51252', '0', '0', '	Reverse Entry - OP Balance adjustment', '4985', '0', '') 

2024-08-12 18:08:25.849043
INSERT INTO 0_pre_gl_trans ( type, type_no, tran_date,
                                                  account, dimension_id, dimension2_id, memo_, amount, person_type_id, person_id) VALUES (   '223', '187', '2023-03-31',
                        '54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-4985', '0', '') 

2024-08-12 18:08:25.850165
REPLACE 0_refs SET reference='187', type='223', id='187'

2024-08-12 18:08:25.851505
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:08:25.852658
UPDATE 0_sys_types SET next_reference='188' WHERE type_id = '223'

2024-08-12 18:08:25.854564
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '187',208,17,'2023-03-31','', 0)

2024-08-12 18:08:25.855672
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='187' AND id!=77418

2024-08-12 18:08:25.857026
SELECT max(last_no) last_no FROM (SELECT MAX(`type_no`) as last_no FROM 0_gl_trans WHERE `type`='0' UNION SELECT MAX(`id`) as last_no FROM 0_voided WHERE `type`='0') a

2024-08-12 18:08:25.858496
INSERT INTO 0_journal(
	   `type`,`trans_no`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`,
           `event_date`,`doc_date`,`person_type_id`,`person_id`,`float_id`)
	  VALUES('223','187','-4985','LKR','0','187','187','2023-03-31','2023-03-31','2023-03-31' ,'0','','0')

2024-08-12 18:08:25.859595
SELECT id FROM 0_bank_accounts WHERE account_code='51252'

2024-08-12 18:08:25.860922
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '187', '2023-03-31',
		'51252', '0', '0', '	Reverse Entry - OP Balance adjustment', '4985', '2420', '0', '') 

2024-08-12 18:08:25.862077
SELECT id FROM 0_tax_types WHERE 
		sales_gl_code='51252' OR purchasing_gl_code='51252'

2024-08-12 18:08:25.863360
INSERT INTO 0_gl_trans ( type, type_no, tran_date,
		account, dimension_id, dimension2_id, memo_, amount, gl_trans_type_id, person_type_id, person_id) VALUES ('223', '187', '2023-03-31',
		'54513', '0', '0', '	Reverse Entry - OP Balance adjustment', '-4985', '2420', '0', '') 

2024-08-12 18:08:25.864535
INSERT INTO 0_comments (type, id, date_, memo_)
    		VALUES ('223', '187', '2023-03-31', '	Reverse Entry - OP Balance adjustment')

2024-08-12 18:08:25.865702
REPLACE 0_refs SET reference='187', type='223', id='187'

2024-08-12 18:08:25.866798
SELECT next_reference FROM 0_sys_types WHERE type_id = '223'

2024-08-12 18:08:25.867976
INSERT INTO 0_audit_trail (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
			VALUES('223', '187',208,17,'2023-03-31','', 0)

2024-08-12 18:08:25.869185
UPDATE 0_audit_trail SET gl_seq = NULL WHERE type='223' AND trans_no='187' AND id!=77419

2024-08-12 18:08:25.870489
UPDATE 0_pre_journal 
            SET approval_status = '30', 
                approved_by = '208',
                approved_on = '2024-08-12 18:08:25' 
            WHERE type = '223'  
                AND trans_no = '187' 
                AND approved_by = 0 

2024-08-12 18:08:25.871588
COMMIT

2024-08-12 18:08:34.396752
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:08:34.494947
SELECT name FROM 0_tags WHERE id = ''

2024-08-12 18:08:34.548920
SELECT * FROM 0_fiscal_year WHERE id='17'

2024-08-12 18:08:34.633717
SELECT * FROM 0_chart_class WHERE !inactive AND ctype>0 AND ctype<4 ORDER BY ctype, cid

2024-08-12 18:08:34.637310
SELECT * FROM 0_chart_types WHERE !inactive AND class_id='1' AND (parent = '' OR parent = '-1') ORDER BY class_id, id, parent

2024-08-12 18:08:34.675695
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77000' ORDER BY account_code

2024-08-12 18:08:34.758903
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77299'  AND tran_date < '2023-04-01'

2024-08-12 18:08:34.840500
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77299' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:34.921759
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77000' ORDER BY class_id, id, parent

2024-08-12 18:08:34.961610
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77100' ORDER BY account_code

2024-08-12 18:08:34.999756
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77110'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.43946
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77110' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.93218
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77120'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.168487
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77120' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.257360
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77100' ORDER BY class_id, id, parent

2024-08-12 18:08:35.336928
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77200' ORDER BY account_code

2024-08-12 18:08:35.412094
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77200' ORDER BY class_id, id, parent

2024-08-12 18:08:35.453262
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77210' ORDER BY account_code

2024-08-12 18:08:35.458859
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77209'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.460812
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77209' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.497661
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77210'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.501994
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77210' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.503249
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77211'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.514405
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77211' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.535626
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77212'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.586015
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77212' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.612433
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77213'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.614599
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77213' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.617560
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77214'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.618814
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77214' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.630145
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77215'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.631513
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77215' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.637951
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77216'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.647642
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77216' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.650569
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77217'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.651860
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77217' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.654677
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77218'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.655906
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77218' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.658861
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77219'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.660089
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77219' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.663144
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77220'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.664425
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77220' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.667298
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77210' ORDER BY class_id, id, parent

2024-08-12 18:08:35.670149
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77220' ORDER BY account_code

2024-08-12 18:08:35.671469
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77221'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.672682
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77221' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.673913
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77222'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.675105
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77222' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.676330
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77300'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.677542
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77300' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.681221
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77301'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.682575
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77301' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.685633
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77302'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.694210
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77302' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.697286
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77303'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.698523
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77303' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.701611
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77304'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.702890
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77304' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.705922
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77306'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.707133
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77306' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.710130
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77307'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.711362
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77307' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.714319
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77308'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.715531
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77308' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.718671
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77309'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.719941
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77309' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.722989
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77310'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.724218
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77310' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.725432
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77311'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.726654
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77311' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.729598
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77220' ORDER BY class_id, id, parent

2024-08-12 18:08:35.736182
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='78000' ORDER BY account_code

2024-08-12 18:08:35.737529
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78100'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.739664
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78100' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.755818
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78101'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.766608
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78101' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.773875
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78102'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.775184
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78102' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.778757
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78103'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.780510
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78103' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.783279
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78104'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.784467
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78104' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.787187
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78105'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.788405
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78105' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.791244
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78106'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.792435
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78106' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.795151
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78107'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.796404
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78107' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.806866
SELECT * FROM 0_chart_types WHERE !inactive AND parent='78000' ORDER BY class_id, id, parent

2024-08-12 18:08:35.809954
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='79000' ORDER BY account_code

2024-08-12 18:08:35.811225
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79100'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.848484
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79100' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:35.969649
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79200'  AND tran_date < '2023-04-01'

2024-08-12 18:08:35.990954
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79200' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.12690
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79300'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.33219
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79300' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.57533
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79310'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.82504
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79310' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.87943
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79320'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.89789
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79320' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.102926
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79400'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.104264
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79400' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.118073
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79500'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.119378
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79500' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.122508
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79600'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.123728
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79600' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.124950
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79700'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.126131
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79700' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.129070
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79710'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.132763
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79710' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.167572
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79711'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.180749
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79711' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.228035
SELECT * FROM 0_chart_types WHERE !inactive AND parent='79000' ORDER BY class_id, id, parent

2024-08-12 18:08:36.240665
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='80000' ORDER BY account_code

2024-08-12 18:08:36.242482
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80100'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.269739
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80100' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.294358
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80200'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.318204
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80200' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.343037
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80300'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.353015
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80300' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.354329
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80400'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.355659
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80400' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.356843
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80500'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.360325
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80500' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.376606
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80600'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.378024
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80600' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.379215
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80700'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.380390
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80700' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.381659
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80800'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.382827
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80800' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.385827
SELECT * FROM 0_chart_types WHERE !inactive AND parent='80000' ORDER BY class_id, id, parent

2024-08-12 18:08:36.388638
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='81000' ORDER BY account_code

2024-08-12 18:08:36.389962
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81100'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.391174
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81100' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.419893
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81200'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.460811
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81200' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.467770
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81300'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.469585
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81300' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.472616
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81400'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.473850
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81400' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.477795
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81500'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.479120
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81500' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.482210
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81600'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.483448
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81600' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.484639
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81700'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.485881
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81700' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.487099
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81800'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.488361
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81800' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.489560
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81900'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.490737
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81900' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.491907
SELECT * FROM 0_chart_types WHERE !inactive AND parent='81000' ORDER BY class_id, id, parent

2024-08-12 18:08:36.494642
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='82000' ORDER BY account_code

2024-08-12 18:08:36.496189
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82100'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.498263
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82100' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.508609
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82200'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.509985
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82200' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.511146
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82303'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.512381
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82303' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.513524
SELECT * FROM 0_chart_types WHERE !inactive AND parent='82000' ORDER BY class_id, id, parent

2024-08-12 18:08:36.516724
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='83000' ORDER BY account_code

2024-08-12 18:08:36.517999
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83100'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.631149
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83100' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.779986
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83101'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.867178
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83101' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.922271
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83102'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.925083
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83102' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:36.926314
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83103'  AND tran_date < '2023-04-01'

2024-08-12 18:08:36.954366
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83103' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.27454
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83104'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.32797
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83104' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.40857
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83105'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.42310
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83105' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.46350
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83106'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.47611
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83106' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.50031
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83107'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.51247
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83107' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.54124
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83110'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.75546
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83110' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.112006
SELECT * FROM 0_chart_types WHERE !inactive AND parent='83000' ORDER BY class_id, id, parent

2024-08-12 18:08:37.135776
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84000' ORDER BY account_code

2024-08-12 18:08:37.156341
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84000' ORDER BY class_id, id, parent

2024-08-12 18:08:37.177134
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84100' ORDER BY account_code

2024-08-12 18:08:37.197510
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84110'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.213884
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84110' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.215706
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84120'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.217162
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84120' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.218816
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84100' ORDER BY class_id, id, parent

2024-08-12 18:08:37.220116
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84200' ORDER BY account_code

2024-08-12 18:08:37.221756
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84210'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.238954
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84210' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.269316
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84220'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.281581
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84220' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.284685
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84230'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.286007
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84230' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.300046
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84240'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.311656
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84240' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.326160
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84200' ORDER BY class_id, id, parent

2024-08-12 18:08:37.329133
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84300' ORDER BY account_code

2024-08-12 18:08:37.330488
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84310'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.331870
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84310' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.336965
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84340'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.339289
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84340' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.342393
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84350'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.343945
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84350' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.345321
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84300' ORDER BY class_id, id, parent

2024-08-12 18:08:37.348541
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84400' ORDER BY account_code

2024-08-12 18:08:37.349885
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84410'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.351224
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84410' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.355592
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84411'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.357016
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84411' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.359754
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84412'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.361118
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84412' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.363867
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84413'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.365150
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84413' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.376467
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84420'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.379251
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84420' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.383730
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84421'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.385300
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84421' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.388027
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84422'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.402240
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84422' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.405418
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84423'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.407132
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84423' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.410663
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84400' ORDER BY class_id, id, parent

2024-08-12 18:08:37.413624
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84500' ORDER BY account_code

2024-08-12 18:08:37.414960
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84501'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.416171
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84501' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.431935
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84502'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.444452
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84502' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.447892
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84503'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.449228
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84503' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.452313
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84504'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.458105
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84504' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.459418
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84505'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.460750
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84505' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.463975
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84506'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.504461
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84506' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.508372
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84507'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.509972
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84507' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.511233
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84508'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.512502
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84508' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.513786
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84509'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.515069
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84509' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.518164
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84510'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.519452
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84510' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.520714
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84511'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.589453
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84511' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.756274
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84513'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.763463
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84513' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.770107
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84514'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.771979
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84514' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.774999
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84515'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.776177
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84515' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.779344
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84516'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.780534
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84516' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.782477
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84517'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.783736
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84517' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.784944
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84500' ORDER BY class_id, id, parent

2024-08-12 18:08:37.792067
SELECT * FROM 0_chart_types WHERE !inactive AND class_id='2' AND (parent = '' OR parent = '-1') ORDER BY class_id, id, parent

2024-08-12 18:08:37.794234
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='50000' ORDER BY account_code

2024-08-12 18:08:37.797476
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='50001'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.834737
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='50001' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.882110
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='50002'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.884756
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='50002' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.886050
SELECT * FROM 0_chart_types WHERE !inactive AND parent='50000' ORDER BY class_id, id, parent

2024-08-12 18:08:37.889210
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51100' ORDER BY account_code

2024-08-12 18:08:37.890531
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51110'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.891792
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51110' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.895573
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51120'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.896861
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51120' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.900229
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51130'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.901600
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51130' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.904782
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51100' ORDER BY class_id, id, parent

2024-08-12 18:08:37.908070
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51200' ORDER BY account_code

2024-08-12 18:08:37.909500
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21205'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.911527
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21205' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.912937
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21206'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.914163
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21206' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.915390
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21207'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.916775
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21207' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.920920
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21208'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.922373
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21208' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.926316
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21209'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.928542
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21209' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.933735
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21210'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.934951
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21210' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.937897
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21211'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.939124
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21211' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.940361
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21212'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.942076
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21212' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.943293
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51200'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.944596
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51200' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.947474
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51201'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.948732
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51201' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.951620
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51202'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.957500
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51202' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.960599
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51203'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.961875
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51203' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.964967
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51204'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.966260
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51204' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.967573
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51205'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.968914
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51205' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.973756
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51206'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.975014
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51206' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.976245
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51207'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.977516
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51207' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.980677
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51208'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.981963
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51208' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.984960
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51209'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.986258
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51209' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.989292
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51210'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.990503
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51210' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.993343
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='54513'  AND tran_date < '2023-04-01'

2024-08-12 18:08:37.995396
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='54513' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:37.998232
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84512'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.2881
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84512' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.6778
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51200' ORDER BY class_id, id, parent

2024-08-12 18:08:38.10150
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51250' ORDER BY account_code

2024-08-12 18:08:38.11473
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51251'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.12772
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51251' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.14054
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51252'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.15399
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51252' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.18924
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51253'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.20240
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51253' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.21574
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51254'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.22809
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51254' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.24054
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51250' ORDER BY class_id, id, parent

2024-08-12 18:08:38.26857
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51260' ORDER BY account_code

2024-08-12 18:08:38.28164
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51261'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.29504
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51261' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.41683
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51262'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.43217
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51262' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.46162
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51263'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.47434
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51263' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.50416
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51260' ORDER BY class_id, id, parent

2024-08-12 18:08:38.53152
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51270' ORDER BY account_code

2024-08-12 18:08:38.54525
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51271'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.55788
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51271' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.59413
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51272'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.60702
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51272' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.63724
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51273'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.64975
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51273' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.68089
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51274'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.69463
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51274' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.72652
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51270' ORDER BY class_id, id, parent

2024-08-12 18:08:38.75509
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51280' ORDER BY account_code

2024-08-12 18:08:38.76807
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51281'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.78059
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51281' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.81484
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51282'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.84925
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51282' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.89263
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51283'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.90594
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51283' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.91847
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51284'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.94148
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51284' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.96764
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51285'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.98003
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51285' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.99238
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51286'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.101083
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51286' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.103737
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51287'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.104961
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51287' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.107849
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51288'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.109098
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51288' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.112340
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51280' ORDER BY class_id, id, parent

2024-08-12 18:08:38.115260
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51300' ORDER BY account_code

2024-08-12 18:08:38.116598
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51301'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.117852
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51301' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.119125
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51302'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.120389
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51302' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.121590
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51303'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.122825
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51303' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.124083
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51304'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.125319
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51304' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.126536
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51305'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.127817
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51305' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.129048
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51306'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.130272
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51306' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.131497
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51307'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.132760
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51307' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.134005
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51308'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.135229
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51308' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.136464
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51309'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.137729
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51309' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.138954
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51300' ORDER BY class_id, id, parent

2024-08-12 18:08:38.146067
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='52000' ORDER BY account_code

2024-08-12 18:08:38.147393
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52001'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.148633
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52001' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.149960
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52200'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.151238
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52200' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.152515
SELECT * FROM 0_chart_types WHERE !inactive AND parent='52000' ORDER BY class_id, id, parent

2024-08-12 18:08:38.154196
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='52100' ORDER BY account_code

2024-08-12 18:08:38.155596
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52101'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.156847
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52101' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.160488
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52102'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.161848
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52102' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.165026
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52103'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.166303
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52103' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.169503
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52104'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.170760
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52104' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.173817
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52105'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.175836
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52105' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.178881
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52106'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.180133
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52106' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.183434
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52107'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.184780
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52107' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.188072
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52108'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.189343
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52108' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.192439
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52109'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.193702
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52109' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.196780
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52110'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.198107
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52110' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.201187
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52111'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.202491
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52111' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.205578
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52112'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.206833
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52112' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.208077
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52113'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.209330
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52113' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.212491
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52114'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.221342
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52114' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.224623
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52115'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.225866
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52115' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.228852
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52116'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.230174
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52116' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.233240
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52117'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.234479
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52117' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.237565
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52118'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.247419
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52118' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.250808
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52119'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.252044
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52119' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.255312
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52120'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.256579
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52120' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.259861
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52121'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.261131
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52121' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.264392
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52122'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.265693
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52122' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.268746
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52123'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.270002
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52123' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.273043
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52124'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.274294
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52124' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.277338
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52125'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.278586
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52125' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.281671
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52126'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.282958
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52126' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.286253
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52127'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.287547
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52127' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.290837
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52128'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.292076
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52128' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.295234
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52129'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.296494
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52129' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.299584
SELECT * FROM 0_chart_types WHERE !inactive AND parent='52100' ORDER BY class_id, id, parent

2024-08-12 18:08:38.302604
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='52200' ORDER BY account_code

2024-08-12 18:08:38.303925
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52250'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.305181
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52250' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.308737
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52251'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.310045
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52251' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.321146
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52254'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.322606
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52254' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.323926
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52255'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.325184
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52255' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.328462
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='99131'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.329738
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='99131' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.330990
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='99132'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.332210
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='99132' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.335412
SELECT * FROM 0_chart_types WHERE !inactive AND parent='52200' ORDER BY class_id, id, parent

2024-08-12 18:08:38.340028
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='53000' ORDER BY account_code

2024-08-12 18:08:38.341525
SELECT * FROM 0_chart_types WHERE !inactive AND parent='53000' ORDER BY class_id, id, parent

2024-08-12 18:08:38.343182
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='53100' ORDER BY account_code

2024-08-12 18:08:38.344475
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53101'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.345742
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53101' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.346980
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53102'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.348194
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53102' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.349453
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53103'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.350736
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53103' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.351977
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53104'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.353205
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53104' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.354500
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53105'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.355712
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53105' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.356944
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53106'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.358218
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53106' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.359519
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53107'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.360767
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53107' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.362006
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53108'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.363262
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53108' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.364492
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53109'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.365716
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53109' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.368921
SELECT * FROM 0_chart_types WHERE !inactive AND parent='53100' ORDER BY class_id, id, parent

2024-08-12 18:08:38.371521
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='53200' ORDER BY account_code

2024-08-12 18:08:38.372913
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52201'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.374158
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52201' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.375396
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52202'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.376616
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52202' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.377863
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52203'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.379129
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52203' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.389572
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52204'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.400966
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52204' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.402495
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52205'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.404146
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52205' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.405770
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52206'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.407205
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52206' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.408644
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52207'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.410190
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52207' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.411818
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52208'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.413381
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52208' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.414946
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52209'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.416556
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52209' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.421261
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52210'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.422697
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52210' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.423957
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52211'  AND tran_date < '2023-04-01'

2024-08-12 18:08:38.425214
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52211' AND tran_date >= '2023-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:08:38.428154
SELECT * FROM 0_chart_types WHERE !inactive AND parent='53200' ORDER BY class_id, id, parent

2024-08-12 18:08:38.432361
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='54000' ORDER BY account_code

2024-08-12 18:08:38.433677
SELECT * FROM 0_chart_types WHERE !inactive AND parent='54000' ORDER BY class_id, id, parent

2024-08-12 18:08:38.437195
SELECT * FROM 0_chart_types WHERE !inactive AND class_id='5' AND (parent = '' OR parent = '-1') ORDER BY class_id, id, parent

2024-08-12 18:08:38.447420
SELECT printer FROM 0_print_profiles WHERE profile='' AND report='706'

2024-08-12 18:08:38.451314
SELECT printer FROM 0_print_profiles WHERE profile='' AND report=''

2024-08-12 18:09:03.902652
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:09:06.704027
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:09:06.738148
SELECT * FROM 0_fiscal_year WHERE id='17'

2024-08-12 18:09:06.756644
SELECT * FROM 0_tags WHERE type='1' AND !inactive ORDER BY name

2024-08-12 18:09:26.961039
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:09:27.3217
SELECT name FROM 0_tags WHERE id = ''

2024-08-12 18:09:27.12702
SELECT * FROM 0_fiscal_year WHERE id='17'

2024-08-12 18:09:27.23083
SELECT * FROM 0_chart_class WHERE !inactive AND ctype>0 AND ctype<4 ORDER BY ctype, cid

2024-08-12 18:09:27.26577
SELECT * FROM 0_chart_types WHERE !inactive AND class_id='1' AND (parent = '' OR parent = '-1') ORDER BY class_id, id, parent

2024-08-12 18:09:27.32016
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77000' ORDER BY account_code

2024-08-12 18:09:27.37862
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77299'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.52856
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77299' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.54040
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77000' ORDER BY class_id, id, parent

2024-08-12 18:09:27.55794
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77100' ORDER BY account_code

2024-08-12 18:09:27.57014
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77110'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.69960
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77110' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.73346
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77120'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.74590
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77120' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.75701
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77100' ORDER BY class_id, id, parent

2024-08-12 18:09:27.78622
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77200' ORDER BY account_code

2024-08-12 18:09:27.79893
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77200' ORDER BY class_id, id, parent

2024-08-12 18:09:27.82208
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77210' ORDER BY account_code

2024-08-12 18:09:27.83535
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77209'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.85595
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77209' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.88998
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77210'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.90378
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77210' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.91452
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77211'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.92671
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77211' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.95423
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77212'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.120910
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77212' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.124672
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77213'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.126001
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77213' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.128872
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77214'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.130804
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77214' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.136675
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77215'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.138742
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77215' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.141585
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77216'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.142758
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77216' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.145512
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77217'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.146903
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77217' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.149624
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77218'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.150838
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77218' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.153492
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77219'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.154672
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77219' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.157579
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77220'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.158776
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77220' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.161556
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77210' ORDER BY class_id, id, parent

2024-08-12 18:09:27.164408
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='77220' ORDER BY account_code

2024-08-12 18:09:27.166257
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77221'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.167504
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77221' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.168586
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77222'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.169744
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77222' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.170853
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77300'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.172031
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77300' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.175704
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77301'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.176915
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77301' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.179889
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77302'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.181110
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77302' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.184051
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77303'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.185300
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77303' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.188286
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77304'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.189498
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77304' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.192403
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77306'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.193636
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77306' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.196504
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77307'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.197697
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77307' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.200552
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77308'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.201762
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77308' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.204874
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77309'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.206091
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77309' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.209049
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77310'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.210215
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77310' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.211335
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77311'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.212502
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='77311' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.215294
SELECT * FROM 0_chart_types WHERE !inactive AND parent='77220' ORDER BY class_id, id, parent

2024-08-12 18:09:27.221342
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='78000' ORDER BY account_code

2024-08-12 18:09:27.222639
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78100'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.233426
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78100' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.236795
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78101'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.238950
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78101' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.241604
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78102'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.243460
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78102' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.246007
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78103'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.247196
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78103' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.249866
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78104'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.251048
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78104' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.253655
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78105'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.254868
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78105' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.257533
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78106'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.258714
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78106' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.261335
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78107'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.263455
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='78107' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.264602
SELECT * FROM 0_chart_types WHERE !inactive AND parent='78000' ORDER BY class_id, id, parent

2024-08-12 18:09:27.267561
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='79000' ORDER BY account_code

2024-08-12 18:09:27.268877
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79100'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.399758
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79100' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.404297
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79200'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.405914
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79200' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.409157
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79300'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.411931
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79300' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.415126
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79310'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.418047
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79310' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.421222
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79320'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.422798
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79320' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.425803
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79400'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.427879
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79400' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.438906
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79500'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.440464
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79500' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.443208
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79600'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.444394
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79600' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.445495
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79700'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.446660
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79700' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.449493
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79710'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.475766
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79710' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.479649
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79711'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.488107
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='79711' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.490908
SELECT * FROM 0_chart_types WHERE !inactive AND parent='79000' ORDER BY class_id, id, parent

2024-08-12 18:09:27.493564
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='80000' ORDER BY account_code

2024-08-12 18:09:27.494836
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80100'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.507016
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80100' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.510458
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80200'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.520331
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80200' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.522953
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80300'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.525980
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80300' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.527125
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80400'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.528419
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80400' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.529526
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80500'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.539662
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80500' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.542435
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80600'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.543641
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80600' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.544815
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80700'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.546059
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80700' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.547180
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80800'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.548373
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='80800' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.551221
SELECT * FROM 0_chart_types WHERE !inactive AND parent='80000' ORDER BY class_id, id, parent

2024-08-12 18:09:27.553853
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='81000' ORDER BY account_code

2024-08-12 18:09:27.555145
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81100'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.594157
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81100' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.598461
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81200'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.647001
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81200' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.650972
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81300'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.652683
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81300' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.655509
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81400'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.657757
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81400' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.660728
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81500'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.662306
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81500' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.665281
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81600'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.666532
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81600' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.667727
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81700'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.668938
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81700' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.670125
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81800'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.671389
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81800' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.672550
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81900'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.673769
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='81900' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.674924
SELECT * FROM 0_chart_types WHERE !inactive AND parent='81000' ORDER BY class_id, id, parent

2024-08-12 18:09:27.677671
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='82000' ORDER BY account_code

2024-08-12 18:09:27.678985
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82100'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.690186
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82100' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.693928
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82200'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.695143
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82200' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.696263
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82303'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.697421
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='82303' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.698512
SELECT * FROM 0_chart_types WHERE !inactive AND parent='82000' ORDER BY class_id, id, parent

2024-08-12 18:09:27.701422
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='83000' ORDER BY account_code

2024-08-12 18:09:27.702723
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83100'  AND tran_date < '2024-04-01'

2024-08-12 18:09:27.915221
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83100' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:27.920019
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83101'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.20472
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83101' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.24548
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83102'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.25786
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83102' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.26892
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83103'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.71581
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83103' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.75922
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83104'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.84771
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83104' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.88110
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83105'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.90121
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83105' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.92958
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83106'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.94136
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83106' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.96472
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83107'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.97628
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83107' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.100418
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83110'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.132164
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='83110' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.135659
SELECT * FROM 0_chart_types WHERE !inactive AND parent='83000' ORDER BY class_id, id, parent

2024-08-12 18:09:28.139779
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84000' ORDER BY account_code

2024-08-12 18:09:28.142316
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84000' ORDER BY class_id, id, parent

2024-08-12 18:09:28.144160
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84100' ORDER BY account_code

2024-08-12 18:09:28.146765
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84110'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.148097
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84110' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.149266
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84120'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.150545
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84120' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.151697
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84100' ORDER BY class_id, id, parent

2024-08-12 18:09:28.152957
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84200' ORDER BY account_code

2024-08-12 18:09:28.154329
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84210'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.165761
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84210' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.169012
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84220'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.170452
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84220' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.173190
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84230'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.175957
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84230' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.178749
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84240'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.180998
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84240' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.183705
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84200' ORDER BY class_id, id, parent

2024-08-12 18:09:28.186333
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84300' ORDER BY account_code

2024-08-12 18:09:28.187650
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84310'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.190457
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84310' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.194166
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84340'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.195408
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84340' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.198204
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84350'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.199399
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84350' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.200473
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84300' ORDER BY class_id, id, parent

2024-08-12 18:09:28.203369
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84400' ORDER BY account_code

2024-08-12 18:09:28.204661
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84410'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.207066
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84410' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.210193
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84411'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.211400
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84411' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.213895
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84412'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.215163
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84412' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.217670
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84413'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.218852
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84413' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.221504
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84420'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.225064
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84420' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.235894
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84421'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.237396
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84421' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.239945
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84422'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.242734
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84422' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.245204
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84423'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.246797
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84423' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.249652
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84400' ORDER BY class_id, id, parent

2024-08-12 18:09:28.252382
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='84500' ORDER BY account_code

2024-08-12 18:09:28.253720
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84501'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.255672
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84501' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.259233
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84502'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.261846
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84502' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.264641
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84503'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.265831
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84503' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.268619
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84504'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.269759
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84504' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.270851
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84505'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.272175
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84505' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.274769
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84506'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.278561
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84506' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.281386
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84507'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.282584
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84507' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.283753
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84508'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.284926
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84508' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.286036
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84509'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.287211
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84509' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.290045
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84510'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.291235
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84510' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.292333
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84511'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.372170
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84511' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.375728
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84513'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.377942
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84513' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.379078
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84514'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.380319
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84514' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.382899
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84515'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.384290
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84515' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.387137
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84516'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.388397
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84516' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.389513
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84517'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.390696
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84517' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.391794
SELECT * FROM 0_chart_types WHERE !inactive AND parent='84500' ORDER BY class_id, id, parent

2024-08-12 18:09:28.398224
SELECT * FROM 0_chart_types WHERE !inactive AND class_id='2' AND (parent = '' OR parent = '-1') ORDER BY class_id, id, parent

2024-08-12 18:09:28.400273
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='50000' ORDER BY account_code

2024-08-12 18:09:28.402432
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='50001'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.432008
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='50001' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.435888
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='50002'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.438065
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='50002' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.439247
SELECT * FROM 0_chart_types WHERE !inactive AND parent='50000' ORDER BY class_id, id, parent

2024-08-12 18:09:28.442129
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51100' ORDER BY account_code

2024-08-12 18:09:28.443429
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51110'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.444696
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51110' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.448207
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51120'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.449551
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51120' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.452341
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51130'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.453643
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51130' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.456348
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51100' ORDER BY class_id, id, parent

2024-08-12 18:09:28.459330
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51200' ORDER BY account_code

2024-08-12 18:09:28.460771
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21205'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.463506
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21205' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.464711
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21206'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.465891
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21206' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.467098
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21207'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.468579
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21207' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.472039
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21208'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.473706
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21208' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.476373
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21209'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.480938
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21209' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.483778
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21210'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.484925
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21210' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.487723
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21211'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.488892
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21211' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.490007
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21212'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.491248
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='21212' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.492374
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51200'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.493706
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51200' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.496391
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51201'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.497584
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51201' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.500295
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51202'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.501478
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51202' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.504223
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51203'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.505410
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51203' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.508012
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51204'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.509179
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51204' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.510273
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51205'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.513546
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51205' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.516248
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51206'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.517411
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51206' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.518698
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51207'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.519958
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51207' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.522619
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51208'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.523996
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51208' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.526611
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51209'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.527967
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51209' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.530515
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51210'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.531710
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51210' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.534379
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='54513'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.536359
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='54513' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.539052
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84512'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.541702
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='84512' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.544801
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51200' ORDER BY class_id, id, parent

2024-08-12 18:09:28.547839
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51250' ORDER BY account_code

2024-08-12 18:09:28.549059
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51251'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.550317
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51251' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.551449
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51252'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.552753
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51252' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.553868
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51253'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.555136
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51253' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.556251
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51254'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.557400
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51254' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.558493
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51250' ORDER BY class_id, id, parent

2024-08-12 18:09:28.559689
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51260' ORDER BY account_code

2024-08-12 18:09:28.560928
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51261'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.563080
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51261' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.564201
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51262'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.565522
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51262' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.566613
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51263'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.567992
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51263' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.569100
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51260' ORDER BY class_id, id, parent

2024-08-12 18:09:28.570304
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51270' ORDER BY account_code

2024-08-12 18:09:28.571561
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51271'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.572842
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51271' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.573955
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51272'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.575240
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51272' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.576339
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51273'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.577599
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51273' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.578713
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51274'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.580137
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51274' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.581230
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51270' ORDER BY class_id, id, parent

2024-08-12 18:09:28.582413
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51280' ORDER BY account_code

2024-08-12 18:09:28.583663
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51281'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.584902
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51281' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.588167
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51282'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.591681
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51282' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.594445
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51283'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.595735
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51283' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.596847
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51284'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.599195
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51284' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.606608
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51285'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.607862
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51285' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.609006
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51286'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.611064
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51286' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.613810
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51287'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.615209
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51287' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.626023
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51288'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.627681
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51288' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.630432
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51280' ORDER BY class_id, id, parent

2024-08-12 18:09:28.633182
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='51300' ORDER BY account_code

2024-08-12 18:09:28.634444
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51301'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.635635
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51301' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.636887
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51302'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.638073
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51302' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.639171
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51303'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.640330
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51303' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.641461
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51304'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.642661
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51304' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.643800
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51305'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.645006
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51305' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.646172
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51306'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.647353
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51306' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.648435
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51307'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.649631
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51307' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.650748
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51308'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.651915
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51308' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.653027
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51309'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.654218
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51309' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.655332
SELECT * FROM 0_chart_types WHERE !inactive AND parent='51300' ORDER BY class_id, id, parent

2024-08-12 18:09:28.656550
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='52000' ORDER BY account_code

2024-08-12 18:09:28.657741
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52001'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.658941
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52001' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.660057
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52200'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.661254
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52200' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.662370
SELECT * FROM 0_chart_types WHERE !inactive AND parent='52000' ORDER BY class_id, id, parent

2024-08-12 18:09:28.664009
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='52100' ORDER BY account_code

2024-08-12 18:09:28.665424
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52101'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.666632
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52101' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.669912
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52102'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.671133
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52102' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.673859
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52103'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.675050
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52103' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.677902
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52104'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.679111
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52104' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.680208
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52105'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.681375
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52105' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.682487
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52106'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.683679
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52106' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.686616
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52107'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.687873
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52107' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.690771
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52108'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.691977
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52108' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.694896
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52109'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.696096
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52109' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.698998
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52110'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.700199
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52110' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.701307
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52111'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.702507
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52111' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.703696
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52112'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.704876
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52112' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.705983
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52113'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.707175
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52113' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.708289
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52114'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.709475
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52114' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.712377
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52115'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.713599
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52115' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.714714
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52116'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.715869
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52116' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.716991
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52117'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.719134
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52117' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.720253
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52118'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.721545
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52118' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.724526
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52119'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.725804
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52119' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.728708
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52120'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.729953
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52120' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.732871
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52121'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.734150
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52121' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.737055
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52122'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.738339
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52122' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.741195
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52123'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.742474
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52123' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.745286
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52124'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.746565
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52124' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.749374
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52125'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.750657
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52125' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.753480
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52126'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.754708
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52126' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.757774
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52127'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.758965
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52127' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.762048
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52128'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.763261
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52128' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.766339
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52129'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.767557
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52129' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.770467
SELECT * FROM 0_chart_types WHERE !inactive AND parent='52100' ORDER BY class_id, id, parent

2024-08-12 18:09:28.773256
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='52200' ORDER BY account_code

2024-08-12 18:09:28.774473
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52250'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.775755
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52250' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.778815
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52251'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.780036
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52251' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.782621
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52254'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.783829
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52254' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.784975
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52255'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.786276
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52255' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.789311
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='99131'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.790477
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='99131' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.791571
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='99132'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.792759
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='99132' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.795799
SELECT * FROM 0_chart_types WHERE !inactive AND parent='52200' ORDER BY class_id, id, parent

2024-08-12 18:09:28.799967
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='53000' ORDER BY account_code

2024-08-12 18:09:28.801130
SELECT * FROM 0_chart_types WHERE !inactive AND parent='53000' ORDER BY class_id, id, parent

2024-08-12 18:09:28.802688
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='53100' ORDER BY account_code

2024-08-12 18:09:28.803927
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53101'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.805125
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53101' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.806238
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53102'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.807415
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53102' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.808498
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53103'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.809704
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53103' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.810820
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53104'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.812059
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53104' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.813168
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53105'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.814325
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53105' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.815457
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53106'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.816680
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53106' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.817809
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53107'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.819010
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53107' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.820132
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53108'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.821309
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53108' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.822418
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53109'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.823638
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='53109' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.826649
SELECT * FROM 0_chart_types WHERE !inactive AND parent='53100' ORDER BY class_id, id, parent

2024-08-12 18:09:28.829118
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='53200' ORDER BY account_code

2024-08-12 18:09:28.830425
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52201'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.831614
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52201' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.832718
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52202'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.833877
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52202' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.834978
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52203'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.836165
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52203' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.837309
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52204'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.838507
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52204' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.839648
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52205'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.840839
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52205' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.841942
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52206'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.843116
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52206' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.844196
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52207'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.845364
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52207' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.846487
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52208'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.847693
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52208' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.848797
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52209'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.849992
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52209' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.853792
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52210'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.854943
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52210' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.856182
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52211'  AND tran_date < '2024-04-01'

2024-08-12 18:09:28.857447
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='52211' AND tran_date >= '2024-04-01' AND tran_date <= '2024-03-31'

2024-08-12 18:09:28.860187
SELECT * FROM 0_chart_types WHERE !inactive AND parent='53200' ORDER BY class_id, id, parent

2024-08-12 18:09:28.864259
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND account_type='54000' ORDER BY account_code

2024-08-12 18:09:28.865433
SELECT * FROM 0_chart_types WHERE !inactive AND parent='54000' ORDER BY class_id, id, parent

2024-08-12 18:09:28.868665
SELECT * FROM 0_chart_types WHERE !inactive AND class_id='5' AND (parent = '' OR parent = '-1') ORDER BY class_id, id, parent

2024-08-12 18:09:28.886270
SELECT printer FROM 0_print_profiles WHERE profile='' AND report='706'

2024-08-12 18:09:28.889149
SELECT printer FROM 0_print_profiles WHERE profile='' AND report=''

2024-08-12 18:10:45.231600
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:10:45.313865
SELECT * FROM 0_fiscal_year WHERE id='17'

2024-08-12 18:10:45.356096
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND 0_chart_master.account_code >= '51262' AND 0_chart_master.account_code <= '51262' ORDER BY account_code

2024-08-12 18:10:45.365184
SELECT 0_chart_class.ctype 
            FROM 0_chart_class, 0_chart_types, 0_chart_master
            WHERE 0_chart_master.account_type=0_chart_types.id AND
                    0_chart_types.class_id=0_chart_class.cid
                    AND 0_chart_master.account_code='51262'

2024-08-12 18:10:45.368890
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51262'  AND tran_date < '2023-04-01'

2024-08-12 18:10:45.388081
SELECT gt.*, 
		cm.account_name, 
		pm.project_code   
                
                FROM 0_gl_trans gt 
                    JOIN 0_chart_master cm 
                        ON cm.account_code=gt.account 
                    LEFT JOIN 0_projects_master pm 
                        ON pm.project_id = gt.dimension_id  
                    LEFT JOIN 0_voided v 
                        ON gt.type_no=v.id 
                        AND v.type=gt.type 
                WHERE ISNULL(v.date_)
		AND tran_date >= '2023-04-01'
		AND tran_date <= '2024-03-31' AND gt.amount <> 0 AND gt.account = '51262' ORDER BY tran_date, counter

2024-08-12 18:10:45.427476
SELECT * FROM 0_refs WHERE type='1' AND id='457'

2024-08-12 18:10:45.431310
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.463298
SELECT * FROM 0_refs WHERE type='1' AND id='458'

2024-08-12 18:10:45.465111
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.485100
SELECT * FROM 0_refs WHERE type='1' AND id='459'

2024-08-12 18:10:45.487712
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.489256
SELECT * FROM 0_refs WHERE type='222' AND id='267'

2024-08-12 18:10:45.491546
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.533059
SELECT * FROM 0_refs WHERE type='222' AND id='249'

2024-08-12 18:10:45.538699
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.580083
SELECT * FROM 0_refs WHERE type='222' AND id='276'

2024-08-12 18:10:45.603090
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.617065
SELECT * FROM 0_refs WHERE type='1' AND id='524'

2024-08-12 18:10:45.621043
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.653820
SELECT * FROM 0_refs WHERE type='1' AND id='525'

2024-08-12 18:10:45.655595
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.657157
SELECT * FROM 0_refs WHERE type='1' AND id='526'

2024-08-12 18:10:45.658643
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.660166
SELECT * FROM 0_refs WHERE type='222' AND id='280'

2024-08-12 18:10:45.664335
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.666004
SELECT * FROM 0_refs WHERE type='222' AND id='281'

2024-08-12 18:10:45.667634
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.669127
SELECT * FROM 0_refs WHERE type='222' AND id='285'

2024-08-12 18:10:45.670581
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.672113
SELECT * FROM 0_refs WHERE type='1' AND id='696'

2024-08-12 18:10:45.675708
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.677208
SELECT * FROM 0_refs WHERE type='1' AND id='697'

2024-08-12 18:10:45.678654
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.680176
SELECT * FROM 0_refs WHERE type='1' AND id='698'

2024-08-12 18:10:45.681618
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.683102
SELECT * FROM 0_refs WHERE type='222' AND id='263'

2024-08-12 18:10:45.684593
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.686233
SELECT * FROM 0_refs WHERE type='222' AND id='290'

2024-08-12 18:10:45.687674
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.689161
SELECT * FROM 0_refs WHERE type='222' AND id='292'

2024-08-12 18:10:45.690597
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.692091
SELECT * FROM 0_refs WHERE type='1' AND id='807'

2024-08-12 18:10:45.694439
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.695966
SELECT * FROM 0_refs WHERE type='1' AND id='808'

2024-08-12 18:10:45.697438
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.698966
SELECT * FROM 0_refs WHERE type='1' AND id='809'

2024-08-12 18:10:45.700400
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.702523
SELECT * FROM 0_refs WHERE type='1' AND id='810'

2024-08-12 18:10:45.704695
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='235'

2024-08-12 18:10:45.706366
SELECT * FROM 0_refs WHERE type='222' AND id='293'

2024-08-12 18:10:45.712800
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.714445
SELECT * FROM 0_refs WHERE type='222' AND id='294'

2024-08-12 18:10:45.715961
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.717492
SELECT * FROM 0_refs WHERE type='222' AND id='295'

2024-08-12 18:10:45.718953
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.720488
SELECT * FROM 0_refs WHERE type='222' AND id='296'

2024-08-12 18:10:45.722044
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.723648
SELECT * FROM 0_refs WHERE type='222' AND id='164'

2024-08-12 18:10:45.726088
SELECT * FROM 0_refs WHERE type='223' AND id='38'

2024-08-12 18:10:45.728686
SELECT * FROM 0_refs WHERE type='1' AND id='907'

2024-08-12 18:10:45.731099
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.732703
SELECT * FROM 0_refs WHERE type='1' AND id='908'

2024-08-12 18:10:45.734465
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.736001
SELECT * FROM 0_refs WHERE type='1' AND id='909'

2024-08-12 18:10:45.737476
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.738976
SELECT * FROM 0_refs WHERE type='1' AND id='910'

2024-08-12 18:10:45.740466
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.742040
SELECT * FROM 0_refs WHERE type='222' AND id='297'

2024-08-12 18:10:45.743464
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.744938
SELECT * FROM 0_refs WHERE type='222' AND id='299'

2024-08-12 18:10:45.746368
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.747865
SELECT * FROM 0_refs WHERE type='222' AND id='300'

2024-08-12 18:10:45.749354
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.750834
SELECT * FROM 0_refs WHERE type='222' AND id='301'

2024-08-12 18:10:45.752344
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.753970
SELECT * FROM 0_refs WHERE type='1' AND id='1018'

2024-08-12 18:10:45.756163
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.757677
SELECT * FROM 0_refs WHERE type='1' AND id='1019'

2024-08-12 18:10:45.759112
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.760594
SELECT * FROM 0_refs WHERE type='1' AND id='1020'

2024-08-12 18:10:45.762112
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.763636
SELECT * FROM 0_refs WHERE type='1' AND id='1021'

2024-08-12 18:10:45.765079
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.766565
SELECT * FROM 0_refs WHERE type='222' AND id='302'

2024-08-12 18:10:45.767996
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.769472
SELECT * FROM 0_refs WHERE type='222' AND id='304'

2024-08-12 18:10:45.770904
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.772387
SELECT * FROM 0_refs WHERE type='222' AND id='305'

2024-08-12 18:10:45.773819
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.775326
SELECT * FROM 0_refs WHERE type='222' AND id='306'

2024-08-12 18:10:45.776811
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.778278
SELECT * FROM 0_refs WHERE type='1' AND id='1058'

2024-08-12 18:10:45.780651
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.782163
SELECT * FROM 0_refs WHERE type='1' AND id='1059'

2024-08-12 18:10:45.783613
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.785515
SELECT * FROM 0_refs WHERE type='1' AND id='1060'

2024-08-12 18:10:45.787050
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.788569
SELECT * FROM 0_refs WHERE type='1' AND id='1061'

2024-08-12 18:10:45.790112
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.791629
SELECT * FROM 0_refs WHERE type='222' AND id='307'

2024-08-12 18:10:45.794024
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.795565
SELECT * FROM 0_refs WHERE type='222' AND id='308'

2024-08-12 18:10:45.797050
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.799500
SELECT * FROM 0_refs WHERE type='222' AND id='309'

2024-08-12 18:10:45.800977
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.802507
SELECT * FROM 0_refs WHERE type='222' AND id='310'

2024-08-12 18:10:45.803956
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.805511
SELECT * FROM 0_refs WHERE type='2' AND id='398'

2024-08-12 18:10:45.807678
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.809171
SELECT * FROM 0_refs WHERE type='2' AND id='399'

2024-08-12 18:10:45.810603
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.812115
SELECT * FROM 0_refs WHERE type='2' AND id='400'

2024-08-12 18:10:45.813542
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.815094
SELECT * FROM 0_refs WHERE type='2' AND id='401'

2024-08-12 18:10:45.816527
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.818015
SELECT * FROM 0_refs WHERE type='1' AND id='1224'

2024-08-12 18:10:45.820265
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.821860
SELECT * FROM 0_refs WHERE type='1' AND id='1225'

2024-08-12 18:10:45.823266
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.825222
SELECT * FROM 0_refs WHERE type='1' AND id='1226'

2024-08-12 18:10:45.826668
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.828189
SELECT * FROM 0_refs WHERE type='1' AND id='1227'

2024-08-12 18:10:45.829646
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.831140
SELECT * FROM 0_refs WHERE type='222' AND id='311'

2024-08-12 18:10:45.832720
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.834279
SELECT * FROM 0_refs WHERE type='222' AND id='312'

2024-08-12 18:10:45.835770
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.837297
SELECT * FROM 0_refs WHERE type='222' AND id='313'

2024-08-12 18:10:45.838742
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.840232
SELECT * FROM 0_refs WHERE type='222' AND id='314'

2024-08-12 18:10:45.841661
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.843140
SELECT * FROM 0_refs WHERE type='1' AND id='1445'

2024-08-12 18:10:45.845270
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.846773
SELECT * FROM 0_refs WHERE type='1' AND id='1446'

2024-08-12 18:10:45.848239
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.849743
SELECT * FROM 0_refs WHERE type='1' AND id='1447'

2024-08-12 18:10:45.851175
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.852666
SELECT * FROM 0_refs WHERE type='1' AND id='1448'

2024-08-12 18:10:45.854109
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.855577
SELECT * FROM 0_refs WHERE type='222' AND id='315'

2024-08-12 18:10:45.857051
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.858582
SELECT * FROM 0_refs WHERE type='222' AND id='316'

2024-08-12 18:10:45.860006
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.861494
SELECT * FROM 0_refs WHERE type='222' AND id='317'

2024-08-12 18:10:45.862921
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:10:45.864405
SELECT * FROM 0_refs WHERE type='222' AND id='318'

2024-08-12 18:10:45.865834
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:19:17.154953
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:19:19.406239
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:19.419512
SELECT * 
           FROM 0_petty_cash_floats
           WHERE id='-1'

2024-08-12 18:19:19.438803
SELECT 118 type_id,
                    ioub.batch_no id,
                    ioub.batch_no iou_id,
                    pm.description project_description,
                    pt.name,
                    ioub.approved_on tran_date,
                    ioub.amount,   
                    ioub.reimbursed_amount,   
                    ioub.advances_total,  
                    ioub.row_state,
                    ioub.batch_no,
                    ioub.float_id,
                    '' comment,
                    ioub.created_on 
            FROM 0_i_owe_you_batches ioub,
                 0_projects_master pm,
                 0_petty_cash_floats pt
                                      
            WHERE ioub.project_id = pm.project_id AND
                    ioub.float_id = pt.id AND 
                    ioub.approval_status = '30' AND 
                    ioub.amount > ioub.reimbursed_amount AND 
                    pt.id='-1' AND 
                    ioub.created_on >= '2024-08-05' AND 
                    ioub.created_on <= '2024-08-13' 
            ORDER BY ioub.created_on, ioub.batch_no

2024-08-12 18:19:19.455340
SELECT 154 type_id,
                    ioup.id id,
                    0 iou_id,
                    '' project_description,
                    pt.name,
                    ioup.payment_date tran_date,
                    ioup.amount,   
                    ioup.reimbursed_amount,   
                    0 advances_total,  
                    ioup.row_state,
                    0 batch_no,
                    ioup.float_id,
                    ioup.comment comment,
                    ioup.created_on 
            FROM 0_i_owe_you_payments ioup,
                 0_petty_cash_floats pt 
                                      
            WHERE ABS(ioup.amount) > ioup.reimbursed_amount AND 
                    ioup.float_id = pt.id AND 
                    ioup.expense_source IN(127,126) AND 
                    ioup.float_id = '-1' AND 
                    ioup.created_on >= '2024-08-05' AND 
                    ioup.created_on <= '2024-08-13' 
            ORDER BY created_on, id 

2024-08-12 18:19:19.457907
SELECT 22 type_id, 
                st.trans_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                st.tran_date,
                (st.ov_amount - st.ov_discount)*-1 amount,      
                st.reimbursed_amount,
                0 advances_total,
                0 row_state,
                0 batch_no,
                st.float_id,
                '' comment,
                st.created_on 
            FROM 0_supp_trans st 
                    JOIN 0_petty_cash_floats pt ON 
                            st.float_id = pt.id 
            WHERE ABS((st.ov_amount - st.ov_discount)) > st.reimbursed_amount AND 
                st.type = 22 AND 
                pt.id='-1' AND 
                st.created_on >= '2024-08-05' AND 
                st.created_on <= '2024-08-13'

2024-08-12 18:19:19.459493
SELECT tran_type type_id, 
                j.type_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                j.tran_date,
                (j.amount * -1) amount,      
                j.reimbursed_amount,
                0 advances_total,
                j.row_state,
                0 batch_no,
                j.float_id,
                '' comment,
                j.tran_date 
            FROM 0_petty_cash_float_trans j  
                    JOIN 0_petty_cash_floats pt ON 
                            j.float_id = pt.id 
            WHERE ABS(j.amount) > j.reimbursed_amount AND 
                j.tran_type = 220 AND 
                pt.id='-1' AND 
                j.tran_date >= '2024-08-05' AND 
                j.tran_date <= '2024-08-13'

2024-08-12 18:19:19.460956
SELECT tran_type type_id, 
                j.type_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                j.tran_date,
                (j.amount * -1) amount,      
                j.reimbursed_amount,
                0 advances_total,
                j.row_state,
                0 batch_no,
                j.float_id,
                '' comment,
                j.tran_date 
            FROM 0_petty_cash_float_trans j  
                    JOIN 0_petty_cash_floats pt ON 
                            j.float_id = pt.id 
            WHERE ABS(j.amount) > j.reimbursed_amount AND 
                j.tran_type = 221 AND 
                pt.id='-1' AND 
                j.tran_date >= '2024-08-05' AND 
                j.tran_date <= '2024-08-13'

2024-08-12 18:19:19.462483
SELECT 119 type_id, 
                pcfa.id,
                0 iou_id,
                '' project_description,
                pt.name,
                pcfa.tran_date,
                pcfa.amount * -1 amount,         
                pcfa.reimbursed_amount,         
                0 advances_total,
                pcfa.row_state,
                0 batch_no,
                pcfa.float_id,
                pcfa.comment,
                pcfa.created_on 
            FROM 0_petty_cash_float_adjustments pcfa 
                    LEFT JOIN 0_petty_cash_floats pt ON 
                            pcfa.float_id = pt.id 

            WHERE ABS(pcfa.amount) > pcfa.reimbursed_amount AND 
                pt.id='-1' AND 
                pcfa.created_on >= '2024-08-05' AND 
                pcfa.created_on <= '2024-08-13'

2024-08-12 18:19:19.464200
SELECT 120 type_id, 
                    pcfr.id,
                    0 iou_id,
                    '' project_description,
                    pt.name,
                    pcfr.tran_date,
                    pcfr.amount,      
                    pcfr.reimbursed_amount,      
                    0 advances_total,
                    pcfr.row_state,
                    0 batch_no,
                    pcfr.from_float_id float_id,
                    CONCAT('Paid to ', (SELECT name FROM 0_petty_cash_floats WHERE id = pcfr.float_id)) comment,
                    pcfr.created_on 
                FROM 0_i_owe_you_float_reimbursements pcfr 
                        LEFT JOIN 0_petty_cash_floats pt ON 
                                pcfr.from_float_id = pt.id 

                WHERE ABS(pcfr.amount) > pcfr.reimbursed_amount AND 
                    pt.id='-1' AND 
                    pcfr.created_on >= '2024-08-05' AND 
                    pcfr.created_on <= '2024-08-13'

2024-08-12 18:19:19.465705
SELECT next_reference FROM 0_sys_types WHERE type_id = '120'

2024-08-12 18:19:19.468584
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:19.470329
SELECT ba.id, 
                    CONCAT(ba.bank_account_name,' - ',bnk.value_name,' (', IF(ba.internal = 1, 'Internal', 'Bank'),')') acc_full_name, ba.bank_curr_code, ba.inactive
            FROM 0_bank_accounts ba 
                    LEFT JOIN 0_list_values bnk ON 
                            ba.bank_id = bnk.id ORDER BY acc_full_name

2024-08-12 18:19:19.476778
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:19:19.644320
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:19.646914
SELECT * 
           FROM 0_petty_cash_floats
           WHERE id='-1'

2024-08-12 18:19:19.648442
SELECT 118 type_id,
                    ioub.batch_no id,
                    ioub.batch_no iou_id,
                    pm.description project_description,
                    pt.name,
                    ioub.approved_on tran_date,
                    ioub.amount,   
                    ioub.reimbursed_amount,   
                    ioub.advances_total,  
                    ioub.row_state,
                    ioub.batch_no,
                    ioub.float_id,
                    '' comment,
                    ioub.created_on 
            FROM 0_i_owe_you_batches ioub,
                 0_projects_master pm,
                 0_petty_cash_floats pt
                                      
            WHERE ioub.project_id = pm.project_id AND
                    ioub.float_id = pt.id AND 
                    ioub.approval_status = '30' AND 
                    ioub.amount > ioub.reimbursed_amount AND 
                    pt.id='-1' AND 
                    ioub.created_on >= '2024-08-05' AND 
                    ioub.created_on <= '2024-08-13' 
            ORDER BY ioub.created_on, ioub.batch_no

2024-08-12 18:19:19.650303
SELECT 154 type_id,
                    ioup.id id,
                    0 iou_id,
                    '' project_description,
                    pt.name,
                    ioup.payment_date tran_date,
                    ioup.amount,   
                    ioup.reimbursed_amount,   
                    0 advances_total,  
                    ioup.row_state,
                    0 batch_no,
                    ioup.float_id,
                    ioup.comment comment,
                    ioup.created_on 
            FROM 0_i_owe_you_payments ioup,
                 0_petty_cash_floats pt 
                                      
            WHERE ABS(ioup.amount) > ioup.reimbursed_amount AND 
                    ioup.float_id = pt.id AND 
                    ioup.expense_source IN(127,126) AND 
                    ioup.float_id = '-1' AND 
                    ioup.created_on >= '2024-08-05' AND 
                    ioup.created_on <= '2024-08-13' 
            ORDER BY created_on, id 

2024-08-12 18:19:19.660407
SELECT 22 type_id, 
                st.trans_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                st.tran_date,
                (st.ov_amount - st.ov_discount)*-1 amount,      
                st.reimbursed_amount,
                0 advances_total,
                0 row_state,
                0 batch_no,
                st.float_id,
                '' comment,
                st.created_on 
            FROM 0_supp_trans st 
                    JOIN 0_petty_cash_floats pt ON 
                            st.float_id = pt.id 
            WHERE ABS((st.ov_amount - st.ov_discount)) > st.reimbursed_amount AND 
                st.type = 22 AND 
                pt.id='-1' AND 
                st.created_on >= '2024-08-05' AND 
                st.created_on <= '2024-08-13'

2024-08-12 18:19:19.662533
SELECT tran_type type_id, 
                j.type_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                j.tran_date,
                (j.amount * -1) amount,      
                j.reimbursed_amount,
                0 advances_total,
                j.row_state,
                0 batch_no,
                j.float_id,
                '' comment,
                j.tran_date 
            FROM 0_petty_cash_float_trans j  
                    JOIN 0_petty_cash_floats pt ON 
                            j.float_id = pt.id 
            WHERE ABS(j.amount) > j.reimbursed_amount AND 
                j.tran_type = 220 AND 
                pt.id='-1' AND 
                j.tran_date >= '2024-08-05' AND 
                j.tran_date <= '2024-08-13'

2024-08-12 18:19:19.664123
SELECT tran_type type_id, 
                j.type_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                j.tran_date,
                (j.amount * -1) amount,      
                j.reimbursed_amount,
                0 advances_total,
                j.row_state,
                0 batch_no,
                j.float_id,
                '' comment,
                j.tran_date 
            FROM 0_petty_cash_float_trans j  
                    JOIN 0_petty_cash_floats pt ON 
                            j.float_id = pt.id 
            WHERE ABS(j.amount) > j.reimbursed_amount AND 
                j.tran_type = 221 AND 
                pt.id='-1' AND 
                j.tran_date >= '2024-08-05' AND 
                j.tran_date <= '2024-08-13'

2024-08-12 18:19:19.667456
SELECT 119 type_id, 
                pcfa.id,
                0 iou_id,
                '' project_description,
                pt.name,
                pcfa.tran_date,
                pcfa.amount * -1 amount,         
                pcfa.reimbursed_amount,         
                0 advances_total,
                pcfa.row_state,
                0 batch_no,
                pcfa.float_id,
                pcfa.comment,
                pcfa.created_on 
            FROM 0_petty_cash_float_adjustments pcfa 
                    LEFT JOIN 0_petty_cash_floats pt ON 
                            pcfa.float_id = pt.id 

            WHERE ABS(pcfa.amount) > pcfa.reimbursed_amount AND 
                pt.id='-1' AND 
                pcfa.created_on >= '2024-08-05' AND 
                pcfa.created_on <= '2024-08-13'

2024-08-12 18:19:19.669854
SELECT 120 type_id, 
                    pcfr.id,
                    0 iou_id,
                    '' project_description,
                    pt.name,
                    pcfr.tran_date,
                    pcfr.amount,      
                    pcfr.reimbursed_amount,      
                    0 advances_total,
                    pcfr.row_state,
                    0 batch_no,
                    pcfr.from_float_id float_id,
                    CONCAT('Paid to ', (SELECT name FROM 0_petty_cash_floats WHERE id = pcfr.float_id)) comment,
                    pcfr.created_on 
                FROM 0_i_owe_you_float_reimbursements pcfr 
                        LEFT JOIN 0_petty_cash_floats pt ON 
                                pcfr.from_float_id = pt.id 

                WHERE ABS(pcfr.amount) > pcfr.reimbursed_amount AND 
                    pt.id='-1' AND 
                    pcfr.created_on >= '2024-08-05' AND 
                    pcfr.created_on <= '2024-08-13'

2024-08-12 18:19:19.671443
SELECT next_reference FROM 0_sys_types WHERE type_id = '120'

2024-08-12 18:19:19.672722
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:19.674333
SELECT ba.id, 
                    CONCAT(ba.bank_account_name,' - ',bnk.value_name,' (', IF(ba.internal = 1, 'Internal', 'Bank'),')') acc_full_name, ba.bank_curr_code, ba.inactive
            FROM 0_bank_accounts ba 
                    LEFT JOIN 0_list_values bnk ON 
                            ba.bank_id = bnk.id ORDER BY acc_full_name

2024-08-12 18:19:19.676105
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:19:21.803173
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:21.805900
SELECT * 
           FROM 0_petty_cash_floats
           WHERE id='2'

2024-08-12 18:19:21.807734
SELECT 118 type_id,
                    ioub.batch_no id,
                    ioub.batch_no iou_id,
                    pm.description project_description,
                    pt.name,
                    ioub.approved_on tran_date,
                    ioub.amount,   
                    ioub.reimbursed_amount,   
                    ioub.advances_total,  
                    ioub.row_state,
                    ioub.batch_no,
                    ioub.float_id,
                    '' comment,
                    ioub.created_on 
            FROM 0_i_owe_you_batches ioub,
                 0_projects_master pm,
                 0_petty_cash_floats pt
                                      
            WHERE ioub.project_id = pm.project_id AND
                    ioub.float_id = pt.id AND 
                    ioub.approval_status = '30' AND 
                    ioub.amount > ioub.reimbursed_amount AND 
                    pt.id='2' AND 
                    ioub.created_on >= '2024-08-05' AND 
                    ioub.created_on <= '2024-08-13' 
            ORDER BY ioub.created_on, ioub.batch_no

2024-08-12 18:19:21.915075
SELECT 154 type_id,
                    ioup.id id,
                    0 iou_id,
                    '' project_description,
                    pt.name,
                    ioup.payment_date tran_date,
                    ioup.amount,   
                    ioup.reimbursed_amount,   
                    0 advances_total,  
                    ioup.row_state,
                    0 batch_no,
                    ioup.float_id,
                    ioup.comment comment,
                    ioup.created_on 
            FROM 0_i_owe_you_payments ioup,
                 0_petty_cash_floats pt 
                                      
            WHERE ABS(ioup.amount) > ioup.reimbursed_amount AND 
                    ioup.float_id = pt.id AND 
                    ioup.expense_source IN(127,126) AND 
                    ioup.float_id = '2' AND 
                    ioup.created_on >= '2024-08-05' AND 
                    ioup.created_on <= '2024-08-13' 
            ORDER BY created_on, id 

2024-08-12 18:19:21.919765
SELECT 22 type_id, 
                st.trans_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                st.tran_date,
                (st.ov_amount - st.ov_discount)*-1 amount,      
                st.reimbursed_amount,
                0 advances_total,
                0 row_state,
                0 batch_no,
                st.float_id,
                '' comment,
                st.created_on 
            FROM 0_supp_trans st 
                    JOIN 0_petty_cash_floats pt ON 
                            st.float_id = pt.id 
            WHERE ABS((st.ov_amount - st.ov_discount)) > st.reimbursed_amount AND 
                st.type = 22 AND 
                pt.id='2' AND 
                st.created_on >= '2024-08-05' AND 
                st.created_on <= '2024-08-13'

2024-08-12 18:19:21.987603
SELECT tran_type type_id, 
                j.type_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                j.tran_date,
                (j.amount * -1) amount,      
                j.reimbursed_amount,
                0 advances_total,
                j.row_state,
                0 batch_no,
                j.float_id,
                '' comment,
                j.tran_date 
            FROM 0_petty_cash_float_trans j  
                    JOIN 0_petty_cash_floats pt ON 
                            j.float_id = pt.id 
            WHERE ABS(j.amount) > j.reimbursed_amount AND 
                j.tran_type = 220 AND 
                pt.id='2' AND 
                j.tran_date >= '2024-08-05' AND 
                j.tran_date <= '2024-08-13'

2024-08-12 18:19:21.995928
SELECT tran_type type_id, 
                j.type_no id,
                0 iou_id,
                '' project_description,
                pt.name,
                j.tran_date,
                (j.amount * -1) amount,      
                j.reimbursed_amount,
                0 advances_total,
                j.row_state,
                0 batch_no,
                j.float_id,
                '' comment,
                j.tran_date 
            FROM 0_petty_cash_float_trans j  
                    JOIN 0_petty_cash_floats pt ON 
                            j.float_id = pt.id 
            WHERE ABS(j.amount) > j.reimbursed_amount AND 
                j.tran_type = 221 AND 
                pt.id='2' AND 
                j.tran_date >= '2024-08-05' AND 
                j.tran_date <= '2024-08-13'

2024-08-12 18:19:22.47193
SELECT 119 type_id, 
                pcfa.id,
                0 iou_id,
                '' project_description,
                pt.name,
                pcfa.tran_date,
                pcfa.amount * -1 amount,         
                pcfa.reimbursed_amount,         
                0 advances_total,
                pcfa.row_state,
                0 batch_no,
                pcfa.float_id,
                pcfa.comment,
                pcfa.created_on 
            FROM 0_petty_cash_float_adjustments pcfa 
                    LEFT JOIN 0_petty_cash_floats pt ON 
                            pcfa.float_id = pt.id 

            WHERE ABS(pcfa.amount) > pcfa.reimbursed_amount AND 
                pt.id='2' AND 
                pcfa.created_on >= '2024-08-05' AND 
                pcfa.created_on <= '2024-08-13'

2024-08-12 18:19:22.52074
SELECT 120 type_id, 
                    pcfr.id,
                    0 iou_id,
                    '' project_description,
                    pt.name,
                    pcfr.tran_date,
                    pcfr.amount,      
                    pcfr.reimbursed_amount,      
                    0 advances_total,
                    pcfr.row_state,
                    0 batch_no,
                    pcfr.from_float_id float_id,
                    CONCAT('Paid to ', (SELECT name FROM 0_petty_cash_floats WHERE id = pcfr.float_id)) comment,
                    pcfr.created_on 
                FROM 0_i_owe_you_float_reimbursements pcfr 
                        LEFT JOIN 0_petty_cash_floats pt ON 
                                pcfr.from_float_id = pt.id 

                WHERE ABS(pcfr.amount) > pcfr.reimbursed_amount AND 
                    pt.id='2' AND 
                    pcfr.created_on >= '2024-08-05' AND 
                    pcfr.created_on <= '2024-08-13'

2024-08-12 18:19:22.108462
SELECT next_reference FROM 0_sys_types WHERE type_id = '120'

2024-08-12 18:19:22.109785
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:22.111339
SELECT ba.id, 
                    CONCAT(ba.bank_account_name,' - ',bnk.value_name,' (', IF(ba.internal = 1, 'Internal', 'Bank'),')') acc_full_name, ba.bank_curr_code, ba.inactive
            FROM 0_bank_accounts ba 
                    LEFT JOIN 0_list_values bnk ON 
                            ba.bank_id = bnk.id ORDER BY acc_full_name

2024-08-12 18:19:22.112591
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:19:24.529858
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:24.974696
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:27.94820
SELECT id, name  FROM 0_petty_cash_floats  ORDER BY name

2024-08-12 18:19:27.97770
SELECT SUM(amount) total                  
            FROM 0_petty_cash_float_trans 
            WHERE float_id = '2' 
                AND tran_date > '1970-01-01' 
                AND tran_date < '2024-08-05'

2024-08-12 18:19:27.100314
SELECT 
                pt.id,
                pt.tran_type,
                pt.type_no,
                pf.name,
                
                pt.tran_date,
                pt.amount,    
                pt.balance
                
            FROM 0_petty_cash_float_trans pt
            LEFT JOIN 0_petty_cash_floats pf ON
                    pf.id = pt.float_id
            WHERE pt.tran_date >='2024-08-05'AND 
                    pt.tran_date <='2024-08-19'AND pt.float_id = '2' ORDER BY id

2024-08-12 18:24:06.927032
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:24:06.968187
SELECT * FROM 0_fiscal_year WHERE id='17'

2024-08-12 18:24:06.975324
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND 0_chart_master.account_code >= '51262' AND 0_chart_master.account_code <= '51262' ORDER BY account_code

2024-08-12 18:24:06.984781
SELECT 0_chart_class.ctype 
            FROM 0_chart_class, 0_chart_types, 0_chart_master
            WHERE 0_chart_master.account_type=0_chart_types.id AND
                    0_chart_types.class_id=0_chart_class.cid
                    AND 0_chart_master.account_code='51262'

2024-08-12 18:24:06.988602
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51262'  AND tran_date < '2023-04-01'

2024-08-12 18:24:07.11322
SELECT gt.*, 
		cm.account_name, 
		pm.project_code   
                
                FROM 0_gl_trans gt 
                    JOIN 0_chart_master cm 
                        ON cm.account_code=gt.account 
                    LEFT JOIN 0_projects_master pm 
                        ON pm.project_id = gt.dimension_id  
                    LEFT JOIN 0_voided v 
                        ON gt.type_no=v.id 
                        AND v.type=gt.type 
                WHERE ISNULL(v.date_)
		AND tran_date >= '2023-04-01'
		AND tran_date <= '2024-03-31' AND gt.amount <> 0 AND gt.account = '51262' ORDER BY tran_date, counter

2024-08-12 18:24:07.40433
SELECT * FROM 0_refs WHERE type='1' AND id='457'

2024-08-12 18:24:07.44123
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.48077
SELECT * FROM 0_refs WHERE type='1' AND id='458'

2024-08-12 18:24:07.49333
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.50661
SELECT * FROM 0_refs WHERE type='1' AND id='459'

2024-08-12 18:24:07.51890
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.53196
SELECT * FROM 0_refs WHERE type='222' AND id='267'

2024-08-12 18:24:07.55318
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.56635
SELECT * FROM 0_refs WHERE type='222' AND id='249'

2024-08-12 18:24:07.58714
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.60065
SELECT * FROM 0_refs WHERE type='222' AND id='276'

2024-08-12 18:24:07.61297
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.62574
SELECT * FROM 0_refs WHERE type='1' AND id='524'

2024-08-12 18:24:07.64477
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.65828
SELECT * FROM 0_refs WHERE type='1' AND id='525'

2024-08-12 18:24:07.67083
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.68769
SELECT * FROM 0_refs WHERE type='1' AND id='526'

2024-08-12 18:24:07.74448
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.75869
SELECT * FROM 0_refs WHERE type='222' AND id='280'

2024-08-12 18:24:07.77891
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.79230
SELECT * FROM 0_refs WHERE type='222' AND id='281'

2024-08-12 18:24:07.80510
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.81834
SELECT * FROM 0_refs WHERE type='222' AND id='285'

2024-08-12 18:24:07.83213
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.84508
SELECT * FROM 0_refs WHERE type='1' AND id='696'

2024-08-12 18:24:07.86568
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.88107
SELECT * FROM 0_refs WHERE type='1' AND id='697'

2024-08-12 18:24:07.89343
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.90758
SELECT * FROM 0_refs WHERE type='1' AND id='698'

2024-08-12 18:24:07.92060
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.93437
SELECT * FROM 0_refs WHERE type='222' AND id='263'

2024-08-12 18:24:07.94699
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.96086
SELECT * FROM 0_refs WHERE type='222' AND id='290'

2024-08-12 18:24:07.97330
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.98648
SELECT * FROM 0_refs WHERE type='222' AND id='292'

2024-08-12 18:24:07.99974
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.101384
SELECT * FROM 0_refs WHERE type='1' AND id='807'

2024-08-12 18:24:07.103262
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.104719
SELECT * FROM 0_refs WHERE type='1' AND id='808'

2024-08-12 18:24:07.106160
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.107512
SELECT * FROM 0_refs WHERE type='1' AND id='809'

2024-08-12 18:24:07.108798
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.110147
SELECT * FROM 0_refs WHERE type='1' AND id='810'

2024-08-12 18:24:07.112273
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='235'

2024-08-12 18:24:07.113687
SELECT * FROM 0_refs WHERE type='222' AND id='293'

2024-08-12 18:24:07.114946
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.116252
SELECT * FROM 0_refs WHERE type='222' AND id='294'

2024-08-12 18:24:07.117529
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.118943
SELECT * FROM 0_refs WHERE type='222' AND id='295'

2024-08-12 18:24:07.120204
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.121600
SELECT * FROM 0_refs WHERE type='222' AND id='296'

2024-08-12 18:24:07.122985
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.124282
SELECT * FROM 0_refs WHERE type='222' AND id='164'

2024-08-12 18:24:07.126768
SELECT * FROM 0_refs WHERE type='223' AND id='38'

2024-08-12 18:24:07.129694
SELECT * FROM 0_refs WHERE type='1' AND id='907'

2024-08-12 18:24:07.131688
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.133024
SELECT * FROM 0_refs WHERE type='1' AND id='908'

2024-08-12 18:24:07.134258
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.135544
SELECT * FROM 0_refs WHERE type='1' AND id='909'

2024-08-12 18:24:07.136820
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.138122
SELECT * FROM 0_refs WHERE type='1' AND id='910'

2024-08-12 18:24:07.139491
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.140935
SELECT * FROM 0_refs WHERE type='222' AND id='297'

2024-08-12 18:24:07.142322
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.143734
SELECT * FROM 0_refs WHERE type='222' AND id='299'

2024-08-12 18:24:07.145111
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.146541
SELECT * FROM 0_refs WHERE type='222' AND id='300'

2024-08-12 18:24:07.147799
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.149217
SELECT * FROM 0_refs WHERE type='222' AND id='301'

2024-08-12 18:24:07.150605
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.151936
SELECT * FROM 0_refs WHERE type='1' AND id='1018'

2024-08-12 18:24:07.154557
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.155909
SELECT * FROM 0_refs WHERE type='1' AND id='1019'

2024-08-12 18:24:07.157143
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.158463
SELECT * FROM 0_refs WHERE type='1' AND id='1020'

2024-08-12 18:24:07.159807
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.161214
SELECT * FROM 0_refs WHERE type='1' AND id='1021'

2024-08-12 18:24:07.162486
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.163777
SELECT * FROM 0_refs WHERE type='222' AND id='302'

2024-08-12 18:24:07.165029
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.166310
SELECT * FROM 0_refs WHERE type='222' AND id='304'

2024-08-12 18:24:07.167576
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.168884
SELECT * FROM 0_refs WHERE type='222' AND id='305'

2024-08-12 18:24:07.170257
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.171547
SELECT * FROM 0_refs WHERE type='222' AND id='306'

2024-08-12 18:24:07.172760
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.174125
SELECT * FROM 0_refs WHERE type='1' AND id='1058'

2024-08-12 18:24:07.176338
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.177721
SELECT * FROM 0_refs WHERE type='1' AND id='1059'

2024-08-12 18:24:07.179029
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.180318
SELECT * FROM 0_refs WHERE type='1' AND id='1060'

2024-08-12 18:24:07.181590
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.182983
SELECT * FROM 0_refs WHERE type='1' AND id='1061'

2024-08-12 18:24:07.184224
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.185518
SELECT * FROM 0_refs WHERE type='222' AND id='307'

2024-08-12 18:24:07.187510
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.188901
SELECT * FROM 0_refs WHERE type='222' AND id='308'

2024-08-12 18:24:07.190199
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.191526
SELECT * FROM 0_refs WHERE type='222' AND id='309'

2024-08-12 18:24:07.192775
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.194094
SELECT * FROM 0_refs WHERE type='222' AND id='310'

2024-08-12 18:24:07.195326
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.196621
SELECT * FROM 0_refs WHERE type='2' AND id='398'

2024-08-12 18:24:07.198811
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.200218
SELECT * FROM 0_refs WHERE type='2' AND id='399'

2024-08-12 18:24:07.201465
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.202760
SELECT * FROM 0_refs WHERE type='2' AND id='400'

2024-08-12 18:24:07.204009
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.205376
SELECT * FROM 0_refs WHERE type='2' AND id='401'

2024-08-12 18:24:07.206641
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.207964
SELECT * FROM 0_refs WHERE type='1' AND id='1224'

2024-08-12 18:24:07.210144
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.211504
SELECT * FROM 0_refs WHERE type='1' AND id='1225'

2024-08-12 18:24:07.212730
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.214080
SELECT * FROM 0_refs WHERE type='1' AND id='1226'

2024-08-12 18:24:07.215335
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.216655
SELECT * FROM 0_refs WHERE type='1' AND id='1227'

2024-08-12 18:24:07.217918
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.219277
SELECT * FROM 0_refs WHERE type='222' AND id='311'

2024-08-12 18:24:07.220581
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.222010
SELECT * FROM 0_refs WHERE type='222' AND id='312'

2024-08-12 18:24:07.223252
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.224580
SELECT * FROM 0_refs WHERE type='222' AND id='313'

2024-08-12 18:24:07.225825
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.227133
SELECT * FROM 0_refs WHERE type='222' AND id='314'

2024-08-12 18:24:07.228367
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.229970
SELECT * FROM 0_refs WHERE type='1' AND id='1445'

2024-08-12 18:24:07.232019
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.233424
SELECT * FROM 0_refs WHERE type='1' AND id='1446'

2024-08-12 18:24:07.234771
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.236179
SELECT * FROM 0_refs WHERE type='1' AND id='1447'

2024-08-12 18:24:07.237535
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.238927
SELECT * FROM 0_refs WHERE type='1' AND id='1448'

2024-08-12 18:24:07.240237
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.241693
SELECT * FROM 0_refs WHERE type='222' AND id='315'

2024-08-12 18:24:07.242968
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.244265
SELECT * FROM 0_refs WHERE type='222' AND id='316'

2024-08-12 18:24:07.245506
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.246798
SELECT * FROM 0_refs WHERE type='222' AND id='317'

2024-08-12 18:24:07.248046
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:07.249334
SELECT * FROM 0_refs WHERE type='222' AND id='318'

2024-08-12 18:24:07.250650
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.333171
SELECT name, value FROM 0_sys_prefs

2024-08-12 18:24:17.361799
SELECT * FROM 0_fiscal_year WHERE id='17'

2024-08-12 18:24:17.365166
SELECT 0_chart_master.*, 0_chart_types.name AS AccountTypeName, 0_chart_types.depth   
		FROM 0_chart_master,0_chart_types
		WHERE 0_chart_master.account_type=0_chart_types.id AND 0_chart_master.account_code >= '51262' AND 0_chart_master.account_code <= '51262' ORDER BY account_code

2024-08-12 18:24:17.366616
SELECT 0_chart_class.ctype 
            FROM 0_chart_class, 0_chart_types, 0_chart_master
            WHERE 0_chart_master.account_type=0_chart_types.id AND
                    0_chart_types.class_id=0_chart_class.cid
                    AND 0_chart_master.account_code='51262'

2024-08-12 18:24:17.377837
SELECT SUM(amount) FROM 0_gl_trans
		WHERE account='51262'  AND tran_date < '2023-04-01'

2024-08-12 18:24:17.379185
SELECT gt.*, 
		cm.account_name, 
		pm.project_code   
                
                FROM 0_gl_trans gt 
                    JOIN 0_chart_master cm 
                        ON cm.account_code=gt.account 
                    LEFT JOIN 0_projects_master pm 
                        ON pm.project_id = gt.dimension_id  
                    LEFT JOIN 0_voided v 
                        ON gt.type_no=v.id 
                        AND v.type=gt.type 
                WHERE ISNULL(v.date_)
		AND tran_date >= '2023-04-01'
		AND tran_date <= '2024-03-31' AND gt.amount <> 0 AND gt.account = '51262' ORDER BY tran_date, counter

2024-08-12 18:24:17.383968
SELECT * FROM 0_refs WHERE type='1' AND id='457'

2024-08-12 18:24:17.385349
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.386744
SELECT * FROM 0_refs WHERE type='1' AND id='458'

2024-08-12 18:24:17.388083
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.389449
SELECT * FROM 0_refs WHERE type='1' AND id='459'

2024-08-12 18:24:17.390736
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.392123
SELECT * FROM 0_refs WHERE type='222' AND id='267'

2024-08-12 18:24:17.393447
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.394807
SELECT * FROM 0_refs WHERE type='222' AND id='249'

2024-08-12 18:24:17.396147
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.397520
SELECT * FROM 0_refs WHERE type='222' AND id='276'

2024-08-12 18:24:17.398833
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.400346
SELECT * FROM 0_refs WHERE type='1' AND id='524'

2024-08-12 18:24:17.401659
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.403124
SELECT * FROM 0_refs WHERE type='1' AND id='525'

2024-08-12 18:24:17.404451
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.405832
SELECT * FROM 0_refs WHERE type='1' AND id='526'

2024-08-12 18:24:17.407155
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.408527
SELECT * FROM 0_refs WHERE type='222' AND id='280'

2024-08-12 18:24:17.409816
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.411209
SELECT * FROM 0_refs WHERE type='222' AND id='281'

2024-08-12 18:24:17.412530
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.413894
SELECT * FROM 0_refs WHERE type='222' AND id='285'

2024-08-12 18:24:17.415186
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.416602
SELECT * FROM 0_refs WHERE type='1' AND id='696'

2024-08-12 18:24:17.417921
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.419273
SELECT * FROM 0_refs WHERE type='1' AND id='697'

2024-08-12 18:24:17.420766
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.422188
SELECT * FROM 0_refs WHERE type='1' AND id='698'

2024-08-12 18:24:17.423692
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.425067
SELECT * FROM 0_refs WHERE type='222' AND id='263'

2024-08-12 18:24:17.426419
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.427817
SELECT * FROM 0_refs WHERE type='222' AND id='290'

2024-08-12 18:24:17.429139
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.430515
SELECT * FROM 0_refs WHERE type='222' AND id='292'

2024-08-12 18:24:17.431819
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.433188
SELECT * FROM 0_refs WHERE type='1' AND id='807'

2024-08-12 18:24:17.434999
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.436716
SELECT * FROM 0_refs WHERE type='1' AND id='808'

2024-08-12 18:24:17.438095
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.439455
SELECT * FROM 0_refs WHERE type='1' AND id='809'

2024-08-12 18:24:17.440757
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.442144
SELECT * FROM 0_refs WHERE type='1' AND id='810'

2024-08-12 18:24:17.443460
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='235'

2024-08-12 18:24:17.444801
SELECT * FROM 0_refs WHERE type='222' AND id='293'

2024-08-12 18:24:17.446116
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.447511
SELECT * FROM 0_refs WHERE type='222' AND id='294'

2024-08-12 18:24:17.448817
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.459025
SELECT * FROM 0_refs WHERE type='222' AND id='295'

2024-08-12 18:24:17.461145
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.462818
SELECT * FROM 0_refs WHERE type='222' AND id='296'

2024-08-12 18:24:17.465450
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.467520
SELECT * FROM 0_refs WHERE type='222' AND id='164'

2024-08-12 18:24:17.470208
SELECT * FROM 0_refs WHERE type='223' AND id='38'

2024-08-12 18:24:17.472152
SELECT * FROM 0_refs WHERE type='1' AND id='907'

2024-08-12 18:24:17.473542
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.474996
SELECT * FROM 0_refs WHERE type='1' AND id='908'

2024-08-12 18:24:17.476717
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.478207
SELECT * FROM 0_refs WHERE type='1' AND id='909'

2024-08-12 18:24:17.479662
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.481392
SELECT * FROM 0_refs WHERE type='1' AND id='910'

2024-08-12 18:24:17.482729
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.484205
SELECT * FROM 0_refs WHERE type='222' AND id='297'

2024-08-12 18:24:17.485512
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.486855
SELECT * FROM 0_refs WHERE type='222' AND id='299'

2024-08-12 18:24:17.488180
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.489550
SELECT * FROM 0_refs WHERE type='222' AND id='300'

2024-08-12 18:24:17.490854
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.492232
SELECT * FROM 0_refs WHERE type='222' AND id='301'

2024-08-12 18:24:17.493647
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.495021
SELECT * FROM 0_refs WHERE type='1' AND id='1018'

2024-08-12 18:24:17.496319
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.497689
SELECT * FROM 0_refs WHERE type='1' AND id='1019'

2024-08-12 18:24:17.499066
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.500434
SELECT * FROM 0_refs WHERE type='1' AND id='1020'

2024-08-12 18:24:17.501773
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.503187
SELECT * FROM 0_refs WHERE type='1' AND id='1021'

2024-08-12 18:24:17.504500
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.505846
SELECT * FROM 0_refs WHERE type='222' AND id='302'

2024-08-12 18:24:17.507232
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.508616
SELECT * FROM 0_refs WHERE type='222' AND id='304'

2024-08-12 18:24:17.509937
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.511281
SELECT * FROM 0_refs WHERE type='222' AND id='305'

2024-08-12 18:24:17.512618
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.514015
SELECT * FROM 0_refs WHERE type='222' AND id='306'

2024-08-12 18:24:17.515306
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.516688
SELECT * FROM 0_refs WHERE type='1' AND id='1058'

2024-08-12 18:24:17.518052
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.519429
SELECT * FROM 0_refs WHERE type='1' AND id='1059'

2024-08-12 18:24:17.520741
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.522124
SELECT * FROM 0_refs WHERE type='1' AND id='1060'

2024-08-12 18:24:17.523459
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.524808
SELECT * FROM 0_refs WHERE type='1' AND id='1061'

2024-08-12 18:24:17.526139
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.527498
SELECT * FROM 0_refs WHERE type='222' AND id='307'

2024-08-12 18:24:17.528802
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.530182
SELECT * FROM 0_refs WHERE type='222' AND id='308'

2024-08-12 18:24:17.531501
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.532839
SELECT * FROM 0_refs WHERE type='222' AND id='309'

2024-08-12 18:24:17.534181
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.535536
SELECT * FROM 0_refs WHERE type='222' AND id='310'

2024-08-12 18:24:17.536799
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.538199
SELECT * FROM 0_refs WHERE type='2' AND id='398'

2024-08-12 18:24:17.539533
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.540904
SELECT * FROM 0_refs WHERE type='2' AND id='399'

2024-08-12 18:24:17.542204
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.543609
SELECT * FROM 0_refs WHERE type='2' AND id='400'

2024-08-12 18:24:17.544911
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.546263
SELECT * FROM 0_refs WHERE type='2' AND id='401'

2024-08-12 18:24:17.547579
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.548954
SELECT * FROM 0_refs WHERE type='1' AND id='1224'

2024-08-12 18:24:17.550246
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.551624
SELECT * FROM 0_refs WHERE type='1' AND id='1225'

2024-08-12 18:24:17.552938
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.554318
SELECT * FROM 0_refs WHERE type='1' AND id='1226'

2024-08-12 18:24:17.555638
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.557036
SELECT * FROM 0_refs WHERE type='1' AND id='1227'

2024-08-12 18:24:17.558339
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.559714
SELECT * FROM 0_refs WHERE type='222' AND id='311'

2024-08-12 18:24:17.561054
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.562430
SELECT * FROM 0_refs WHERE type='222' AND id='312'

2024-08-12 18:24:17.563856
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.565242
SELECT * FROM 0_refs WHERE type='222' AND id='313'

2024-08-12 18:24:17.566658
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.568051
SELECT * FROM 0_refs WHERE type='222' AND id='314'

2024-08-12 18:24:17.569339
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.570728
SELECT * FROM 0_refs WHERE type='1' AND id='1445'

2024-08-12 18:24:17.572051
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.573414
SELECT * FROM 0_refs WHERE type='1' AND id='1446'

2024-08-12 18:24:17.574890
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.576252
SELECT * FROM 0_refs WHERE type='1' AND id='1447'

2024-08-12 18:24:17.577585
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.579647
SELECT * FROM 0_refs WHERE type='1' AND id='1448'

2024-08-12 18:24:17.581006
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.582337
SELECT * FROM 0_refs WHERE type='222' AND id='315'

2024-08-12 18:24:17.583683
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.585074
SELECT * FROM 0_refs WHERE type='222' AND id='316'

2024-08-12 18:24:17.586347
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.587709
SELECT * FROM 0_refs WHERE type='222' AND id='317'

2024-08-12 18:24:17.589001
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

2024-08-12 18:24:17.590299
SELECT * FROM 0_refs WHERE type='222' AND id='318'

2024-08-12 18:24:17.599323
SELECT supp_name AS name FROM 0_suppliers WHERE supplier_id='225'

