18-10-2025 09:24:21 ## 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 18-10-2025 09:48:24 ## 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-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-09-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-09-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '30694545-93f0-462b-82f7-7309d3d7e3ba' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 09:48:37 ## 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-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-09-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-09-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '3c753738-5259-454c-a721-9f6115bb016a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 09:50:44 ## 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-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 18-10-2025 09:50:44 ## 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 18-10-2025 09:56: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-09-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-09-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-09-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '3c753738-5259-454c-a721-9f6115bb016a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 09:59:34 ## 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-08-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-08-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-08-01 00:00:00' and r.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and (r.branch_id is null or r.branch_id = 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc') order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('da4ea374-92ca-42d7-81f5-91752c307311', '') and I.id = '3c753738-5259-454c-a721-9f6115bb016a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 10:46: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 18-10-2025 10:46: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 18-10-2025 10:50:08 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 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 18-10-2025 10:51:14 ## 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 18-10-2025 10:54:37 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 10:55:42 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-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 = '3c753738-5259-454c-a721-9f6115bb016a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 10:56:15 ## 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 = '3c753738-5259-454c-a721-9f6115bb016a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 10:57:52 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 10:59:07 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 11:00:57 ## 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 18-10-2025 11:02:06 ## 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 = '3c753738-5259-454c-a721-9f6115bb016a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 11:03:00 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 11:03:49 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 11:16: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 = '3c753738-5259-454c-a721-9f6115bb016a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 11:44:40 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' and ST.VDate <= '2025-10-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 18-10-2025 11:44:40 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 18-10-2025 11:46:08 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-01 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '', '', 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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('f129b67a-d3dd-4929-9f31-6bb868b582ea', '') and I.id = 'c5556da0-3744-4e26-a12a-bba67f068eaa' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 11:47:26 ## 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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '', '', 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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('f129b67a-d3dd-4929-9f31-6bb868b582ea', '') and I.id = 'c5556da0-3744-4e26-a12a-bba67f068eaa' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 11:49:02 ## 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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '', '', 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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('f129b67a-d3dd-4929-9f31-6bb868b582ea', '') and I.id = 'c5556da0-3744-4e26-a12a-bba67f068eaa' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 11:54: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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' and ST.VDate <= '2025-10-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 18-10-2025 11:54: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 18-10-2025 11:57: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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' and ST.VDate <= '2025-10-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 18-10-2025 11:57: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 18-10-2025 11:58:26 ## 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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-17 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-17 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 = '6e006662-19da-4a83-9934-b93e36ed8602' and r.effective_from <= '2025-10-17 00:00:00' and r.company_id = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('f129b67a-d3dd-4929-9f31-6bb868b582ea', '') and I.id = '943e1f27-6161-4604-a9d2-ed603a1fd13a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 11:59:54 ## 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', '2025-10-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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' and ST.VDate <= '2025-10-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 18-10-2025 11:59:54 ## 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 18-10-2025 12:08: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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-01 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '', '', 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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('f129b67a-d3dd-4929-9f31-6bb868b582ea', '') and I.id = 'c5556da0-3744-4e26-a12a-bba67f068eaa' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 12:09:28 ## 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', '2025-10-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 = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' and ST.VDate <= '2025-10-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 18-10-2025 12:09:28 ## 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 18-10-2025 12:13:51 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', '4c9c962e-9a2e-4e85-a86f-b821bc9368ac', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = '4c9c962e-9a2e-4e85-a86f-b821bc9368ac' and ST.VDate <= '2025-10-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 12:13:51 ## 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 18-10-2025 12:14: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', '4c9c962e-9a2e-4e85-a86f-b821bc9368ac', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', '4c9c962e-9a2e-4e85-a86f-b821bc9368ac', I.id, '', '', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = '4c9c962e-9a2e-4e85-a86f-b821bc9368ac' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('4c9c962e-9a2e-4e85-a86f-b821bc9368ac', '') and I.id = 'b2313036-2e53-4b47-97bd-d68a2991c0fa' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 12:17: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', '4c9c962e-9a2e-4e85-a86f-b821bc9368ac', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = '4c9c962e-9a2e-4e85-a86f-b821bc9368ac' and ST.VDate <= '2025-10-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ifnull(ST.with_jobber,0) = 0 Group by mst_item.group_id, mst_item.name, mst_item.code, mst_item.sales_description, mst_brand.name, mst_item.udf1, mst_item.udf2, mst_item.udf3, mst_item.udf4, mst_item.udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rack_box, mst_item.rate_per, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) , ST.item_id, mst_item_group.name, mst_item_category.name, mst_location.name, ST.branch_id, ST.warehouse_id, mst_warehouse.name, mst_item_unit.name, mst_gst_classification.name having sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) <> 0 ) as A ) as B Group by group_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, stock_vs_pack, rack_box, rate_per, item_type, item_id, group_name, category_name, unit_name, hsn_code ) C where 1=1 and closing_qty <> 0 order by item_name Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 12:17: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 18-10-2025 12:20: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', '58cf0800-8106-4f76-8e81-d370feb550be', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', '58cf0800-8106-4f76-8e81-d370feb550be', I.id, '', '', '', '', 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 = '58cf0800-8106-4f76-8e81-d370feb550be' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('58cf0800-8106-4f76-8e81-d370feb550be', '') and I.id = '46514512-6590-4011-93d4-936fb1b23f98' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 12:21:44 ## 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', '58cf0800-8106-4f76-8e81-d370feb550be', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-15 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', '58cf0800-8106-4f76-8e81-d370feb550be', I.id, '', '', '', '', 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 = '58cf0800-8106-4f76-8e81-d370feb550be' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('58cf0800-8106-4f76-8e81-d370feb550be', '') and I.id = '46514512-6590-4011-93d4-936fb1b23f98' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 12:23: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-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 18-10-2025 12:23: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 18-10-2025 12:26:44 ## 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 18-10-2025 12:26:44 ## 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 18-10-2025 12:33: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-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 18-10-2025 12:33: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 18-10-2025 12:40:35 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-16 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-16 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-16 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 18-10-2025 12:41:47 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 12:48: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 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-16 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-16 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-16 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 18-10-2025 12:49:17 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 12:49: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-16 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-16 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-16 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 18-10-2025 12:50:20 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 12:54:47 ## 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-16 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-16 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-16 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 18-10-2025 12:55:36 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 12:58:50 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-16 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-16 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-16 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 18-10-2025 12:59:49 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 12:59:59 ## 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-16 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-16 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 18-10-2025 12:59:59 ## 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 18-10-2025 13:05: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-16 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-16 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 18-10-2025 13:05: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 18-10-2025 13:07: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-16 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-16 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 18-10-2025 13:07: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 18-10-2025 13:42: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-16 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-16 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 18-10-2025 13:42: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 18-10-2025 13:44:08 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 18-10-2025 13:44:08 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 18-10-2025 13:52:29 ## 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-17 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-17 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-17 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 18-10-2025 13:53:43 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 13:58:51 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-17 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-17 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-17 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 18-10-2025 13:59:34 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 14:03:16 ## 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-17 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-17 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-17 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 18-10-2025 14:04:36 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 14:09:45 ## 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-17 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-17 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-17 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 18-10-2025 14:10:51 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 14:14:05 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 7 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-10-17 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-17 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-17 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 18-10-2025 14:14:48 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 14:23:19 ## 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-17 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-17 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-17 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 18-10-2025 14:24:34 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 14:30:06 ## 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-17 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-17 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-17 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 18-10-2025 14:31:39 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 14:34: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-17 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-17 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 18-10-2025 14:34: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 18-10-2025 14:42:38 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 18-10-2025 14:42:38 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 18-10-2025 14:49:03 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 18-10-2025 14:49:03 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 18-10-2025 14:58:38 ## 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 18-10-2025 15:00:08 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 15:03: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-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 18-10-2025 15:03: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 18-10-2025 15:07:55 ## 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-18 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-18 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-18 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 18-10-2025 15:09:16 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 15:16:39 ## 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-18 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-18 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-18 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 18-10-2025 15:17:57 ## Exception ## Unable to connect to the remote server ## FABUtilityService.UploadFileOnFTP ## ## FTP File Load Error **** Unable to connect to the remote server 18-10-2025 15:18:38 ## 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 18-10-2025 15:22:08 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', '345243a1-9c25-42f7-b4e9-081d121a1441', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = '345243a1-9c25-42f7-b4e9-081d121a1441' and ST.VDate <= '2025-10-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 18-10-2025 15:22:08 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 18-10-2025 15:27: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', '345243a1-9c25-42f7-b4e9-081d121a1441', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = '345243a1-9c25-42f7-b4e9-081d121a1441' and ST.VDate <= '2025-10-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 18-10-2025 15:27: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 18-10-2025 15:29: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 15:29: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 18-10-2025 15:32:31 ## 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-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 15:32:31 ## 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 18-10-2025 15:38: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 15:38: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 18-10-2025 15:43: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-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 15:43: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 18-10-2025 15:43: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-09-30 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-09-30 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 15:43: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 18-10-2025 15:43:31 ## 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-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 15:43:31 ## 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 18-10-2025 15:43:32 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-03-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-03-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 15:43:32 ## 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 18-10-2025 15:52: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 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:00: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-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:02: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 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:05: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-06-18 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-06-18 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-06-18 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:07:21 ## 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-06-18 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-06-18 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-06-18 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:11: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:11: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 18-10-2025 16:12:14 ## 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-06-18 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-06-18 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-06-18 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:13:03 ## 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-06-18 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-06-18 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-06-18 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:13:13 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-20 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:16: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 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-20 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:18:06 ## 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-07-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-07-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-07-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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:18:15 ## 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-06-18 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-06-18 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-06-18 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:18:23 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-20 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:18:41 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-07-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-07-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-07-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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:19:35 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 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-07-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-07-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-07-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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:19:39 ## 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-06-18 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-06-18 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-06-18 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:19:45 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-20 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:19: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-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:20: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:20: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 18-10-2025 16:22:57 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:23:14 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-20 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:23:30 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 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-06-18 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-06-18 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-06-18 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:24:03 ## 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-07-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-07-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-07-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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:28:28 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:28: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-05-20 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-20 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:33: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 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:33:45 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-20 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:33:57 ## 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-06-18 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-06-18 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-06-18 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:34:07 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 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-07-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-07-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-07-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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:35:02 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:35:07 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-20 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-20 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:38: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-03-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-03-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:38: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 18-10-2025 16:39: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-03-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-03-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:39: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 18-10-2025 16:39: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-09-30 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-09-30 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:39: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 18-10-2025 16:39:00 ## Exception ## There is no row at position 0. ## FABReportModifyDataset.ModifyDataset ## ## There is no row at position 0. ReportType: Rpt_ProfitLossStatement_Horizontal QueryType: Rpt_BalanceSheet 18-10-2025 16:39: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-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:39: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 18-10-2025 16:39: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-03-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-03-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:39: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 18-10-2025 16:39: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-03-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-03-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:39: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 18-10-2025 16:39: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', '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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2024-03-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:39: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 18-10-2025 16:42: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', '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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:42: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 18-10-2025 16:43: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:43: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 18-10-2025 16:43: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-03-31 23:59:59', 0, 0, A.closing_stk_qty), 0) as rate_valuation from ( Select mst_item.group_id, mst_item.name as item_name, mst_item.code as item_code, mst_item.sales_description, mst_brand.name as brand_name, mst_item.udf1 as item_master_udf1, mst_item.udf2 as item_master_udf2, mst_item.udf3 as item_master_udf3, mst_item.udf4 as item_master_udf4, mst_item.udf5 as item_master_udf5, mst_item.barcode, mst_item.sales_rate, mst_item.gst_classification_id, mst_item.stock_vs_pack, mst_item.rate_per, mst_item.rack_box, (Case IFNULL(mst_item.type,0) when 0 then 'FinishProduct' when 1 then 'Consumable' when 2 then 'RawMaterial' when 3 then 'PackingMaterial' when 4 then 'Scrap' when 5 then 'Service' when 6 then 'Asset' when 7 then 'Rental' when 8 then 'SemiFinish' when 9 then 'TradeGoods' when 10 then 'ImportedAsset' when 11 then 'ServiceWithBOQ' when 12 then 'BOMBasedItem' else '' end) as item_type, ST.item_id as item_id, mst_item_group.name as group_name, mst_item_category.name as category_name, mst_item_unit.name as unit_name, mst_location.name as location_name, ST.branch_id, ST.warehouse_id, mst_warehouse.name as warehouse_name, mst_gst_classification.name as hsn_code, sum(case when ST.ri_tag = 0 then ST.qty else -ST.qty end) as closing_stk_qty, sum(case when ST.ri_tag = 0 then ST.pack_qty else -ST.pack_qty end) as closing_pack_qty from et_stock ST LEFT OUTER JOIN mst_item ON mst_item.id = ST.item_id LEFT OUTER JOIN mst_item_group ON mst_item_group.id = mst_item.group_id LEFT OUTER JOIN mst_item_category ON mst_item_category.id = mst_item.item_category_id left outer join mst_brand on mst_brand.id = mst_item.brand_id LEFT OUTER JOIN mst_item_unit ON mst_item_unit.id = mst_item.stock_unit_id LEFT OUTER JOIN mst_location ON mst_location.id = ST.branch_id LEFT OUTER JOIN mst_warehouse ON mst_warehouse.id = ST.warehouse_id LEFT OUTER JOIN mst_gst_classification ON mst_gst_classification.id = mst_item.gst_classification_id Where ST.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ST.company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-03-31 23:59:59' and ifnull(ST.approval_status, 0) = 1 And ST.branch_ID IN (Select id from mst_location where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and id not in(select master_id from con_user_permission_data_skip where company_id = 'da4ea374-92ca-42d7-81f5-91752c307311' and type = 1 and user_id = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:43: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 18-10-2025 16:44:14 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## GetItemInfo Select I.company_id, I.ID, mst_rate.master_id as rate_master_id, (Case when mst_rate.id is null then I.mrp else mst_rate.mrp end) as mrp, (Case when mst_rate.id is null then I.wholesale_rate else mst_rate.wholesale_rate end) as wholesale_rate, (Case when mst_rate.id is null then I.dealer_rate else mst_rate.dealer_rate end) as dealer_rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_rate else I.purchase_rate end) else mst_rate.rate end) as rate, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_1 else I.purchase_misc_1 end) else mst_rate.misc1 end) as misc1, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_2 else I.purchase_misc_2 end) else mst_rate.misc2 end) as misc2, (Case when mst_rate.id is null then(case when 8 = 7 then I.sales_misc_3 else I.purchase_misc_3 end) else mst_rate.misc3 end) as misc3, (Case when mst_rate.id is null then I.min_rate else mst_rate.min_rate end) as min_rate, GetItemBalance('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', I.id, '', 'cbf4b89f-3857-4869-8295-4e0ed5d7b1dc', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-05-05 00:00:00', 0, 0, 0) as StockValuation From mst_item I LEFT OUTER JOIN mst_rate on mst_rate.id = (select id from mst_rate r where r.item_id = I.id and r.master_type = (case when 8 = 7 then 2201 else 2202 end) and r.price_category_id = '' and r.effective_from <= '2025-05-05 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 = 'acffed1e-ed1f-4bd3-aa32-8b7e309c1c8d' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:49:26 ## 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', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '00000000-0000-0000-0000-000000000000', '2025-10-18 00:00:00') as item_balance, GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'f129b67a-d3dd-4929-9f31-6bb868b582ea', I.id, '', '', '', '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-18 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-18 00:00:00' and r.company_id = 'f129b67a-d3dd-4929-9f31-6bb868b582ea' order by branch_id desc, effective_from desc limit 1) Where I.enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and I.company_id IN ('f129b67a-d3dd-4929-9f31-6bb868b582ea', '') and I.id = '943e1f27-6161-4604-a9d2-ed603a1fd13a' Inner Exception: NULL Error: FUNCTION maindb001.GetStockValuationFinal does not exist Source: MySql.Data ## ClientType: Desktop 18-10-2025 16:53:36 ## Exception ## Table 'support.ab_survey_24_nov' doesn't exist ## DataAccess.GetData ## ## GetMisc Select cu.survey_index, (select count(*) from ab_survey_24_nov where enterprise_id = '6700a7e5-5008-4d8c-9671-26fe90448bce' and ifnull(survey_index, 0) = 4) as enterprise_count from ab_survey_24_nov cu where cu.user_id = '85d820ad-e168-4c45-a07e-e919ae5ed336' Inner Exception: NULL Error: Table 'support.ab_survey_24_nov' doesn't exist Source: MySql.Data 18-10-2025 16:53:40 ## Exception ## FUNCTION maindb001.GetStockValuationFinal does not exist ## DataAccess.GetData ## ## Rpt_StockValuation Select * from( Select 4060 as ZoomType, group_id, item_id as voucher_id, item_name, item_code, sales_description, brand_name, item_master_udf1, item_master_udf2, item_master_udf3, item_master_udf4, item_master_udf5, barcode, sales_rate, gst_classification_id, stock_vs_pack, rate_per, rack_box, item_type, item_id, group_name, category_name, unit_name, Sum(closing_stk_qty) as closing_qty, Sum(closing_pack_qty) as closing_pack_qty, Sum(closing_stk_qty * rate_valuation) as amount, (case when Sum(closing_stk_qty) <> 0 then (Sum(closing_stk_qty * rate_valuation) / Sum(closing_stk_qty)) * rate_per else 0 end) as rate from ( Select A.*, ifnull(GetStockValuationFinal('6700a7e5-5008-4d8c-9671-26fe90448bce', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:53:40 ## Exception ## Object reference not set to an instance of an object. ## FABReportService.GetReportData ## ## Object reference not set to an instance of an object. Report Type: Rpt_StockValuation ## ClientType: Desktop 18-10-2025 16:54: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-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '85d820ad-e168-4c45-a07e-e919ae5ed336')) 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 18-10-2025 16:54: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 18-10-2025 16:56: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '85d820ad-e168-4c45-a07e-e919ae5ed336')) 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 18-10-2025 16:56: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 18-10-2025 16:57: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '85d820ad-e168-4c45-a07e-e919ae5ed336')) 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 18-10-2025 16:57: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 18-10-2025 16:58:23 ## 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 = '74ae3060-0a7b-4bc7-bc3d-d06ed288c20f')) 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 18-10-2025 16:58:23 ## 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 18-10-2025 16:59: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', 'da4ea374-92ca-42d7-81f5-91752c307311', A.item_id, '', A.branch_id, A.warehouse_id, '', 0, '00000000-0000-0000-0000-000000000000', '2025-10-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 = 'da4ea374-92ca-42d7-81f5-91752c307311' and ST.VDate <= '2025-10-18 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 = '85d820ad-e168-4c45-a07e-e919ae5ed336')) 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 18-10-2025 16:59: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