
[dbo].[XLedgerCheckIfTransactionUploadCompleted]
CREATE PROCEDURE [dbo].[XLedgerCheckIfTransactionUploadCompleted]
@xledgerJournalEntryBatchId int
as
begin
set nocount on
select convert( bit, 1 )
from XLedgerJournalEntryBatch
where
XLedgerJournalEntryBatch.XLedgerJournalEntryBatchId = @xledgerJournalEntryBatchId and
XLedgerJournalEntryBatch.CompletedOn is not null
end
GO
GRANT EXECUTE ON [dbo].[XLedgerCheckIfTransactionUploadCompleted] TO [MssExec]
GO