Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delete from tblmenu where ParentID in (20,60)
- update tblmenu set hasSubMenu = 1 where intMenuid = 60
- go
- go
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'A/C Ledger', N'', N'', 1, 20, 1, 0, N'/Account/AccountLedger/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Journal Voucher', N'', N'', 1, 20, 1, 0, N'/Account/JournalVoucherSub/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Payment Voucher', N'', N'', 1, 20, 1, 0, N'/Account/PaymentVoucher/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Receipt Voucher', N'', N'', 1, 20, 1, 0, N'/Account/ReceiptVoucher/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Contra Voucher', N'', N'', 1, 20, 1, 0, N'/Account/ContraVoucher/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Materialized ', N'', N'', 1, 3096, 1, 0, N'/Log/MaterializedReport', 1, N'fas fa-layer-group')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Ledger Report', N'', N'', 1, 60, 1, 0, N'/Account/AcLedgerReport/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Hospital Journal', N'', N'', 1, 20, 1, 0, N'/Account/HJournal/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Aging Report', N'', N'', 1, 60, 1, 0, N'/Account/AgingReport/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Bank Cash Book', N'', N'', 1, 60, 1, 0, N'/Budget/BankCashBook/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Budget Baadhphaad', N'', N'', 1, 60, 1, 0, N'/Budget/BudgetBaadhphaad/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Journal Register', N'', N'', 1, 60, 1, 0, N'/Account/JournalReport/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Payment Register', N'', N'', 1, 60, 1, 0, N'/Account/PaymentReport/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Contra Register', N'', N'', 1, 60, 1, 0, N'/Account/ContraReport/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Receipt Register', N'', N'', 1, 60, 1, 0, N'/Account/ReceiptReport/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Balance Sheet', N'', N'', 1, 60, 1, 0, N'/Account/BalanceSheet/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Trial Balance', N'', N'', 1, 60, 1, 0, N'/Account/TrialBalance/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Bank Reconciliation', N'', N'', 1, 20, 1, 0, N'/Account/BankReconciliation/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Cash Flow', N'', N'', 1, 60, 1, 0, N'/Account/CashFlow/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES (N'Debit Credit Note', N'', N'', 1, 20, 1, 0, N'/Account/DebitCreditNote/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Debit Credit Note Report', N'', N'', 1, 60, 1, 0, N'/Account/DebitCreditNote/Report', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Journal Voucher Sub', N'', N'', 1, 20, 1, 0, N'/Account/JournalVoucherSub/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'PDC', N'', N'', 1, 20, 1, 0, N'/Account/PDC/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'PDC Clearance', N'', N'', 1, 20, 1, 0, N'/Account/PDC/PDCClearance', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'PDC Report', N'', N'', 1, 60, 1, 0, N'/Account/PDCReport/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'PDC Clearance Report', N'', N'', 1, 60, 1, 0, N'/Account/PDCReport/PDCClearanceReport', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Profit & Loss', N'', N'', 1, 60, 1, 0, N'/Account/ProfitAndLoss/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Budget Type', N'', N'', 1, 20, 1, 0, N'/Budget/BudgetType/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Budget Category', N'', N'', 1, 20, 1, 0, N'/Budget/BudgetCategory/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Budget Title', N'', N'', 1, 20, 1, 0, N'/Budget/BudgetTitle/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Budget Khata Report', N'', N'', 1, 60, 1, 0, N'/Budget/BudgetKhataReport/Index', 1, N'fas fa-file-invoice')
- GO
- INSERT [dbo].[tblmenu] ( [strName], [strFormName], [strShorCut], [isOpen], [ParentID], [isActive], [hasSubMenu], [WebUrl], [IsActiveWeb], [Menuicon]) VALUES ( N'Budget Transfer', N'', N'', 1, 20, 1, 0, N'/Budget/BudgetTransfer/Index', 1, N'fas fa-file-invoice')
- GO
- go
- ALTER Procedure [dbo].[AccountPurchaseDetailsgetByBillNo]
- @fromBillNo nvarchar(max),
- @toBillNo nvarchar(max)
- AS
- BEGIN
- declare @patientLedger decimal(18,5)
- declare @frombillId int
- declare @toBillID int
- set @frombillId= (isnull((select PurchaseMasterID from tblpurchaseMaster Where ReferenceNo=@fromBillNo),0))
- set @toBillID= (isnull((select PurchaseMasterID from tblpurchaseMaster Where ReferenceNo=@toBillNo),0))
- if @frombillId<>0 and @toBillID<>0
- BEGIN
- select 'Purchase A/c' as heading,11 as ledgerid,sum(BillAmt) as Amount,'Dr'
- DrCR from tblpurchaseMaster
- where PurchaseMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- Union all
- select 'VAT A/c' as heading,10022 as ledgerid,sum(taxAmt) as Amount,'Dr' DrCR from tblpurchaseMaster
- where PurchaseMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- Union all
- select 'Discount Allow A/c' as heading,8 as ledgerid,sum(DiscAmt+billdisamt) as Amount,
- 'Cr' DrCR from tblpurchaseMaster
- where PurchaseMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- Union all
- --Purchase CC Charge
- select 'Purchase CC Charge' as heading,141011 as ledgerid, ABS(sum(ccamt)) as Amount,'Dr' DrCR
- from tblpurchaseMaster
- where PurchaseMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- union all
- --Purchase Adjustment
- select 'Purchase Adjustment' as heading,140988 as ledgerid, abs(sum(AdjustmentAmt)) as Amount,
- case when sum(AdjustmentAmt) > 0 then 'Dr' else 'Cr' end DrCR
- from tblpurchaseMaster
- where PurchaseMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- union all
- select acl.ledgername as heading, AccRefId as ledgerid,sum(NettotalAmt) as Amount,'Cr' DrCR
- from tblpurchaseMaster TPM
- Inner join tbl_accountLedger acl ON acl.ledgerid=TPM.AccountLedgerID
- where TPM.PurchaseMasterID between @frombillId and @toBillID and TPM.type in ('Purchases','Purchases Return')
- group by AccRefId,acl.LedgerName
- END
- END
- go
- GO
- ALTER proc [dbo].[AccountFixedAssetsPurchasegetByBillNo]
- @fromBillNo nvarchar(max),
- @toBillNo nvarchar(max)
- as
- declare @frombillId int = (isnull((select AssetMasterID from tblFixedAssetsPurchasemaster Where ReferenceNo = @fromBillNo),0));
- declare @toBillID int = (isnull((select AssetMasterID from tblFixedAssetsPurchasemaster Where ReferenceNo = @toBillNo),0));
- if @frombillId<>0 and @toBillID<>0
- BEGIN
- select 'Purchase A/c' as heading,11 as ledgerid,sum(BillAmt) as Amount,'Dr'
- DrCR from tblFixedAssetsPurchasemaster
- where AssetMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- Union all
- select 'VAT A/c' as heading,10022 as ledgerid,sum(taxAmt) as Amount,'Dr' DrCR from tblFixedAssetsPurchasemaster
- where AssetMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- Union all
- select 'Discount Allow A/c' as heading,8 as ledgerid,sum(DIscAmt) as Amount,
- 'Cr' DrCR from tblFixedAssetsPurchasemaster
- where AssetMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- --Union all
- --Purchase CC Charge --group under 15
- --select 'Purchase CC Charge' as heading,10020 as ledgerid, ABS(sum(ccamt)) as Amount,'Dr' DrCR
- --from tblFixedAssetsPurchasemaster
- --where AssetMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- union all
- --Purchase Adjustment --group under 15
- select 'Purchase Adjustment' as heading,10021 as ledgerid, abs(sum(AdjustmentAmt)) as Amount,
- case when sum(AdjustmentAmt) > 0 then 'Dr' else 'Cr' end DrCR
- from tblFixedAssetsPurchasemaster
- where AssetMasterID between @frombillId and @toBillID and type in ('Purchases','Purchases Return')
- union all
- select acl.ledgername as heading, AccRefId as ledgerid,sum(NettotalAmt) as Amount,'Cr' DrCR
- from tblFixedAssetsPurchasemaster TPM
- Inner join tbl_accountLedger acl ON acl.ledgerid=TPM.AccountLedgerID
- where TPM.AssetMasterID between @frombillId and @toBillID and TPM.type in ('Purchases','Purchases Return')
- group by AccRefId,acl.LedgerName
- END
- go
- GO
- ALTER Procedure [dbo].[AccountDetailsgetPharmacyByBillNo]
- @fromBillNo nvarchar(max),
- @toBillNo nvarchar(max)
- AS
- declare @patientLedger decimal(18,2)
- declare @frombillId int
- declare @toBillID int
- set @frombillId= (isnull((select pharmacyMasterID from tblPharmacySalesMaster Where strBillNo=@fromBillNo),0))
- set @toBillID= (isnull((select pharmacyMasterID from tblPharmacySalesMaster Where strBillNo=@toBillNo),0))
- set @patientLedger = (select
- ((sum(receiveAmt)+sum(discountAmt+pharmacyDiscount)-sum(total + DiscountAmt-taxAmt)+sum(taxAmt)))
- from tblPharmacySalesMaster WHERE AcledgerID=22 and pharmacyMasterID between @frombillId and @toBillID )
- select 'sales' as heading,18 as ledgerid,
- ABS(sum(total + DiscountAmt-taxAmt))
- as amount,
- Case WHEN sum(total + DiscountAmt-taxAmt)>0 THEN 'Cr' else 'Dr' End DrCR
- from tblPharmacySalesMaster Where pharmacyMasterID between @frombillId and @toBillID
- Union ALL
- select 'cash' as heading,1 as ledgerid,
- ABS(sum(receiveAmt))
- as amount, case WHEN sum(receiveAmt)> 0 Then 'Dr' else 'Cr' end DrCR
- from tblPharmacySalesMaster Where pharmacyMasterID between @frombillId and @toBillID
- and LOWER(PharmacyType) <> 'bank'
- Union ALL
- select 'Discount' as heading, 8 as ledgerid,
- ABS(sum(discountAmt + pharmacyDiscount ))
- as amount, --case WHEN sum(case when billdispercent = 100 then 0 else discountAmt end +pharmacyDiscount) > 0 THEN 'Dr' else 'Cr' END DrCR
- 'Dr' as DrCR
- from tblPharmacySalesMaster Where pharmacyMasterID between @frombillId and @toBillID
- Union ALL
- select 'tax' as heading, 10022 as ledgerid,
- ABS((sum(taxAmt)))
- as tax, case WHEN (sum(taxAmt))>0 then 'Cr' else 'Dr' END DrCR
- from tblPharmacySalesMaster Where pharmacyMasterID between @frombillId and @toBillID
- Union ALL
- select 'patientLedger' as heading,22 as ledgerid,
- ABS(@patientLedger)
- as amount, case when @patientLedger> 0 then 'Cr' when @patientLedger<0 then'Dr' else 'Dr' end DrCR
- Union ALL
- select ac.ledgerName as heading,(select AccRefId from tbl_AccountLedger where ledgerId=AcLedgerID) as ledgerid,
- case when sum(receiveAmt) = 0 then sum(Total) else sum(ReceiveAmt) end as amount,'Dr' DrCr
- --ABS((sum(total + DiscountAmt-taxAmt - (case when tm.pharmacytype = 'credit' then tm.PharmacyDiscount else 0 end))+sum(taxAmt))-(sum(receiveAmt)+sum(taxAmt))) as amount,
- --case when (sum(total + DiscountAmt-taxAmt - (case when tm.pharmacytype = 'credit' then tm.PharmacyDiscount else 0 end))+sum(taxAmt))-(sum(receiveAmt)+sum(taxAmt)) >0 then 'Dr' else 'Cr' END DrCr
- from tblPharmacySalesMaster tm
- inner join tbl_accountledger ac on tm.AcledgerID=ac.ledgerid
- WHERE AcledgerID<>22
- and tm.pharmacyMasterID between @frombillId and @toBillID
- group by tm.AcledgerID,ac.ledgerName
- go
- GO
- ALTER Procedure [dbo].[AccountDetailsgetByBillNo]
- @fromBillNo nvarchar(max),
- @toBillNo nvarchar(max)
- AS
- declare @patientLedger decimal(18,5)
- declare @frombillId int
- declare @toBillID int
- set @frombillId= (isnull((select billingMasterID from tblbillingmaster Where strBillNo=@fromBillNo),0))
- set @toBillID= (isnull((select billingMasterID from tblbillingmaster Where strBillNo=@toBillNo),0))
- set @patientLedger = (select ((sum(receiveAmt)+sum(discountAmt+BillDiscount)-sum(total + DiscountAmt-taxAmt)+sum(taxAmt)))
- from tblbillingmaster WHERE AcledgerID=22 and billingMasterID between @frombillId and @toBillID )
- ; with tempCash as
- (select accountGroupId from tbl_AccountGroup where accountGroupId = 27
- union
- select accountGroupId from tbl_AccountGroup where groupUnder = 27)
- , tempBank as (select accountGroupId from tbl_AccountGroup where accountGroupId = 28
- union
- select accountGroupId from tbl_AccountGroup where groupUnder = 28)
- select 'sales' as heading,16 as ledgerid,
- sum(total + DiscountAmt) as amount,
- --sum(total + DiscountAmt + BillDiscount -taxAmt) as amount,
- 'Cr' as DrCR
- from tblbillingmaster Where billingMasterID between @frombillId and @toBillID
- Union ALL
- select 'cash' as heading,1 as ledgerid, isnull( sum(receiveAmt) ,0) as amount, 'Dr' as DrCR
- from tblbillingmaster bm
- inner join tempCash c on c.accountGroupId in (select accountGroupId from tbl_AccountLedger where ledgerId = ReceiveLedgerID)
- Where billingMasterID between @frombillId and @toBillID
- Union ALL
- select 'Discount' as heading, 8 as ledgerid,
- sum(discountAmt+BillDiscount )
- as amount, 'Dr' as DrCR
- from tblbillingmaster Where billingMasterID between @frombillId and @toBillID
- Union ALL
- select 'tax' as heading, 36 as ledgerid, sum(taxAmt) as tax, 'Cr' as DrCR from tblbillingmaster Where billingMasterID between @frombillId and @toBillID
- Union ALL
- select 'patientLedger' as heading,22 as ledgerid, ABS(@patientLedger) as amount, case when @patientLedger> 0 then 'Cr' when @patientLedger<0 then'Dr' else 'Dr' end as DrCR
- Union ALL
- select ac.ledgerName as heading,
- (select AccRefId from tbl_AccountLedger where ledgerId = ReceiveLedgerID) as ledgerid,
- --(sum(total + case when billdispercent = 100 or BillingType = 'Credit' then 0 else
- --discountAmt+BillDiscount
- --end-taxAmt)+sum(taxAmt))-(sum(receiveAmt)+sum(taxAmt))
- --(sum(total) - sum(receiveAmt))
- sum(receiveAmt)
- as amount,
- --case when (select accountGroupId from tbl_AccountLedger where ledgerId = ReceiveLedgerID) = 28 then 'Dr'
- --else case when @patientLedger> 0 then 'Cr' when @patientLedger<0 then'Dr' else 'Dr' end
- --end
- 'Dr'
- as DrCR
- --case when @patientLedger> 0 then 'Cr' when @patientLedger<0 then'Dr' else 'Dr' end as DrCR
- from tblbillingmaster tm
- inner join tbl_accountledger ac on tm.ReceiveLedgerID = ac.ledgerid
- inner join tempBank bank on bank.accountGroupId in (select accountGroupId from tbl_AccountLedger where ledgerId = ReceiveLedgerID)
- WHERE tm.billingMasterID between @frombillId and @toBillID
- group by tm.ReceiveLedgerID, ac.ledgerName
- go
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement