USP_LEDGERACCOUNT_DELETE
Executes the "Ledger Account: Delete" record operation.
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | Input parameter indicating the ID of the record being deleted. |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the delete. |
Definition
Copy
CREATE procedure dbo.USP_LEDGERACCOUNT_DELETE
(
@ID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier
)
as begin
-- TODO: Add checks for in use when transactions and budgets are added
-- TODO: Validate record security to ensure rights to delete
exec dbo.USP_LEDGERACCOUNT_INUSE @ID
exec USP_GLACCOUNT_DELETEBYID_WITHCHANGEAGENTID @ID, @CHANGEAGENTID
return 0;
end