15-10-2025 09:36:30 ## 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 15-10-2025 09:39:17 ## 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-15 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-15 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 15-10-2025 09:39:17 ## 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 15-10-2025 09:44:59 ## 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 15-10-2025 09:47:01 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 09:49: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 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-14 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-14 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-14 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 = 'e673c532-6990-4cf7-8e22-9b778647b41f' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 09:50:36 ## 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-14 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-14 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-14 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 = 'e673c532-6990-4cf7-8e22-9b778647b41f' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 09:53:52 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 09:54: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-15 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-15 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 15-10-2025 09:54: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 15-10-2025 10:01:41 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', 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 = '58cf0800-8106-4f76-8e81-d370feb550be' 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 15-10-2025 10:01:41 ## 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 15-10-2025 10:04:16 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-03-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 15-10-2025 10:04:16 ## 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 15-10-2025 10:06:09 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-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 15-10-2025 10:06:09 ## 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 15-10-2025 10:06:09 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-06-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-06-30 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 15-10-2025 10:06:09 ## 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 15-10-2025 10:49:26 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-09-30 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 15-10-2025 10:49:26 ## 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 15-10-2025 10:49:26 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-08-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-08-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 15-10-2025 10:49:26 ## 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 15-10-2025 12:05: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-03-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 15-10-2025 12:05: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 15-10-2025 12:07:02 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-03-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 15-10-2025 12:07:02 ## 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 15-10-2025 12:07:02 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-02-29 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-02-29 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 15-10-2025 12:07:02 ## 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 15-10-2025 12:10:57 ## 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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' and ST.VDate <= '2024-03-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 15-10-2025 12:10:57 ## 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 15-10-2025 12:11:24 ## 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', '2024-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 = '4c9c962e-9a2e-4e85-a86f-b821bc9368ac' and ST.VDate <= '2024-03-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 15-10-2025 12:11:24 ## 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 15-10-2025 12:12:13 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-03-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 15-10-2025 12:12:13 ## 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 15-10-2025 12:13:22 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-03-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 15-10-2025 12:13:22 ## 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 15-10-2025 12:31:30 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-03-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-03-30 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 15-10-2025 12:31:30 ## 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 15-10-2025 12:32: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-04-02 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-04-02 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 15-10-2025 12:32: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 15-10-2025 12:33: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-02-04 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2025-02-04 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 15-10-2025 12:33: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 15-10-2025 12:38: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-02-28 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2025-02-28 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 15-10-2025 12:38: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 15-10-2025 12:38: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2024-01-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2024-01-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 15-10-2025 12:38: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 15-10-2025 12:38:13 ## 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 15-10-2025 12:38:13 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-02-28 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2025-02-28 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 15-10-2025 12:38:50 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-04-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-04-01 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 15-10-2025 12:38:50 ## 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 15-10-2025 12:44:11 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-01 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 15-10-2025 12:44:11 ## 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 15-10-2025 12:46:24 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-02-18 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-02-18 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 15-10-2025 12:46:24 ## 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 15-10-2025 12:46:24 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:46: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-03-18 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-03-18 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 15-10-2025 12:46: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 15-10-2025 12:46:39 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:46:49 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-04-18 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-04-18 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 15-10-2025 12:46:49 ## 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 15-10-2025 12:47:16 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-05-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-05-01 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 15-10-2025 12:47:16 ## 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 15-10-2025 12:47:35 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-06-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-06-01 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 15-10-2025 12:47:35 ## 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 15-10-2025 12:47: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-01 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 15-10-2025 12:47: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 15-10-2025 12:48:15 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-02 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-02 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 15-10-2025 12:48:15 ## 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 15-10-2025 12:48:43 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-18 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-18 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 15-10-2025 12:48:43 ## 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 15-10-2025 12:50:49 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-18 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-18 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 15-10-2025 12:50:49 ## 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 15-10-2025 12:51:17 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-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 15-10-2025 12:51:17 ## 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 15-10-2025 12:51: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-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 15-10-2025 12:51: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 15-10-2025 12:56:50 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-01-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-01-01 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 15-10-2025 12:56:50 ## 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 15-10-2025 12:56:50 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:57:01 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-07-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-07-01 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 15-10-2025 12:57:01 ## 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 15-10-2025 12:57:29 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-06-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-06-01 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 15-10-2025 12:57:29 ## 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 15-10-2025 12:57: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-05-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-05-01 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 15-10-2025 12:57: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 15-10-2025 12:57:47 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-04-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-04-01 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 15-10-2025 12:57:47 ## 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 15-10-2025 12:57:57 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-03-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-03-01 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 15-10-2025 12:57:57 ## 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 15-10-2025 12:57:58 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:58:11 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-03-10 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-03-10 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 15-10-2025 12:58:11 ## 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 15-10-2025 12:58:11 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:58:19 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-03-15 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-03-15 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 15-10-2025 12:58:19 ## 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 15-10-2025 12:58:19 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:58:26 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-03-20 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-03-20 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 15-10-2025 12:58:26 ## 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 15-10-2025 12:58:26 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:58: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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-03-25 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-03-25 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 15-10-2025 12:58: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 15-10-2025 12:58:34 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:58:42 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-03-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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-03-30 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 15-10-2025 12:58:42 ## 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 15-10-2025 12:58:42 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_BalanceSheet_Horizontal QueryType: Rpt_BalanceSheet 15-10-2025 12:58:50 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2023-04-01 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2023-04-01 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 15-10-2025 12:58:50 ## 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 15-10-2025 13:40:29 ## 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 15-10-2025 13:40:29 ## 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-15 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-15 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 15-10-2025 13:40:30 ## 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', '2022-12-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 <= '2022-12-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 15-10-2025 13:40:30 ## 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 15-10-2025 13:40:43 ## 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-15 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-15 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 15-10-2025 13:40:43 ## 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 15-10-2025 13:42: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-15 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-15 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 15-10-2025 13:42: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 15-10-2025 13:43:20 ## 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 = '386bcd61-831a-40bc-9a84-c1d43294989a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 13:45:04 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 13:46: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-15 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-15 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 15-10-2025 13:46: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 15-10-2025 13:58:49 ## 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-14 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-14 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-14 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 = 'e673c532-6990-4cf7-8e22-9b778647b41f' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 13:59:49 ## 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-14 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-14 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-14 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 = 'e673c532-6990-4cf7-8e22-9b778647b41f' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 14:03:26 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-15 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 = '58cf0800-8106-4f76-8e81-d370feb550be' and ST.VDate <= '2025-10-15 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 15-10-2025 14:03:26 ## 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 15-10-2025 14:22:18 ## 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-15 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-15 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 15-10-2025 14:22:18 ## 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 15-10-2025 14:22:19 ## 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', '2022-12-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 <= '2022-12-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 15-10-2025 14:22:19 ## 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 15-10-2025 14:22: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-15 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-15 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 15-10-2025 14:22: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 15-10-2025 14:28: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 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-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 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' 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 = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 14:29:02 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 14:29: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-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 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' 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 = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 14:30:37 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 14:34:19 ## 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-14 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-14 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 15-10-2025 14:34:19 ## 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 15-10-2025 14:36: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-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 15-10-2025 14:36: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 15-10-2025 14:37: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-14 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-14 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 15-10-2025 14:37: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 15-10-2025 14:39:18 ## 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-14 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-14 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 15-10-2025 14:39:18 ## 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 15-10-2025 14:39:33 ## 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-15 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-15 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 15-10-2025 14:39:33 ## 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 15-10-2025 14:39:52 ## 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 15-10-2025 14:43:09 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 14:45:18 ## 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-15 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-15 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 15-10-2025 14:45:18 ## 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 15-10-2025 14:46: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 15-10-2025 14:48: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 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-09-02 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-09-02 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-09-02 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 = 'bf9b7394-6031-4c9a-8401-5eb759d0c69d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 14:51:43 ## 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-09-19 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-09-19 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-09-19 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 = 'bf9b7394-6031-4c9a-8401-5eb759d0c69d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 14:55:37 ## 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-15 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-15 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 15-10-2025 14:55:37 ## 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 15-10-2025 15:41:04 ## 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-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 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' 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 = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 15:42:18 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 15:47:48 ## 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-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 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' 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 = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 15:48:30 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 16:10:48 ## 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-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 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' 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 = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 16:12:08 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 15-10-2025 16:24:19 ## 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-15 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-15 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 15-10-2025 16:24:19 ## 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 15-10-2025 16:25:21 ## 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-15 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-15 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 15-10-2025 16:25:21 ## 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 15-10-2025 16:26:50 ## 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-15 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-15 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 15-10-2025 16:26:50 ## 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 15-10-2025 16:28:16 ## 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-15 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-15 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 15-10-2025 16:28:16 ## 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 15-10-2025 16:42: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-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 7 = 7 then 2201 else 2202 end) and r.price_category_id = '00000000-0000-0000-0000-000000000000' 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 = '4eb3d55c-e4d4-41c1-af36-feaa900d0066' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 15-10-2025 16:43:49 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server