24-10-2025 09:29:58 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '6511ab24-5862-49c9-96af-0813cd2f3003' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 09:52:16 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '6511ab24-5862-49c9-96af-0813cd2f3003' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 09:52:48 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 09:52:48 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 09:53:50 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '6511ab24-5862-49c9-96af-0813cd2f3003' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 09:54:12 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 09:54:12 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 09:54:12 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-09-30 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-09-30 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 09:54:12 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 09:54:55 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '85d820ad-e168-4c45-a07e-e919ae5ed336' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 09:55:56 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '6511ab24-5862-49c9-96af-0813cd2f3003' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 09:56:34 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 09:56:34 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 10:07:42 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-01 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-01 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '8fb5df02-6e24-4360-a1c7-c0685acdc4fb' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 10:07:54 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-01 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-01 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '3c753738-5259-454c-a721-9f6115bb016a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 10:08:28 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-01 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-01 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '30694545-93f0-462b-82f7-7309d3d7e3ba' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 10:14:41 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '6511ab24-5862-49c9-96af-0813cd2f3003' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 10:17:40 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '6511ab24-5862-49c9-96af-0813cd2f3003' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 10:26:28 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '6511ab24-5862-49c9-96af-0813cd2f3003' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 10:27:36 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 10:27:36 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 10:27:45 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 10:27:45 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 10:27:46 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-09-30 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-09-30 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 10:27:46 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 10:50:55 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '6511ab24-5862-49c9-96af-0813cd2f3003' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 24-10-2025 10:53:06 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 10:53:06 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 11:08:18 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-01 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-01 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-10-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '18fde49c-29d8-4e6a-883a-ec13f550a2ae' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 11:10:07 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 11:23:41 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-10-15 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = 'f7fe545a-e677-4e86-8b75-0b69f9ea6051' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 11:25:13 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-10-15 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = 'f7fe545a-e677-4e86-8b75-0b69f9ea6051' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 11:27:43 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 11:28:10 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 11:32:40 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 11:32:40 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 11:42:31 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-23 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 11:43:48 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 11:48:58 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-23 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 11:49:58 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 11:57:23 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-23 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 11:58:48 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 12:06:17 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-23 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 12:07:09 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 12:12:35 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-23 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 12:13:36 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 12:23:07 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-23 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-23 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 12:24:07 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 12:25:38 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 12:25:38 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 13:33:00 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 13:33:00 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 13:37:56 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 13:37:56 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', '4c9c962e-9a2e-4e85-a86f-b821bc9368ac', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = '4c9c962e-9a2e-4e85-a86f-b821bc9368ac' and ST.VDate <= '2025-10-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 13:43:12 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', '4c9c962e-9a2e-4e85-a86f-b821bc9368ac', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', '4c9c962e-9a2e-4e85-a86f-b821bc9368ac', I.id, '', '', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-24 00:00:00' and r.company_id = '4c9c962e-9a2e-4e85-a86f-b821bc9368ac' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('4c9c962e-9a2e-4e85-a86f-b821bc9368ac', '') and I.id = '93fbd951-18ed-4475-8211-be2e25a60855' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 13:44:03 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', '4c9c962e-9a2e-4e85-a86f-b821bc9368ac', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = '4c9c962e-9a2e-4e85-a86f-b821bc9368ac' and ST.VDate <= '2025-10-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 13:44:03 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 13:52:39 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 13:52:39 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 14:51:51 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-24 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 14:53:52 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 14:57:28 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-01 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-01 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-10-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '8fb5df02-6e24-4360-a1c7-c0685acdc4fb' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 15:00:10 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 15:36:05 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-24 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 15:37:58 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 16:03:50 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-24 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 16:04:39 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 16:08:08 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-24 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 16:09:24 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 16:13:10 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-03-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-03-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 16:13:10 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 16:13:27 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 16:13:27 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 16:19:30 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' and r.effective_from <= '2025-10-24 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 16:22:08 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 16:22:08 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 16:22:19 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 24-10-2025 16:44:08 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-24 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-24 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 16:44:08 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 24-10-2025 16:44:08 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-09-30 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-09-30 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '6511ab24-5862-49c9-96af-0813cd2f3003')) And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 24-10-2025 16:44:08 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop