USP_DATAFORMTEMPLATE_VIEW_PDACCOUNTCODEMAPFIXEDASSETS
The load procedure used by the view dataform template "Map Fixed Assets View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@VERBAGE | nvarchar(200) | INOUT | VERBAGE |
@VERBAGE2 | nvarchar(200) | INOUT | VERBAGE2 |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_PDACCOUNTCODEMAPFIXEDASSETS
(
@DATALOADED bit = 0 output,
@VERBAGE nvarchar(200) = null output,
@VERBAGE2 nvarchar(200) = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
-- populate the output parameters, which correspond to fields on the form. Note that
-- we set @DATALOADED = 1 to indicate that the load was successful. Otherwise, the system
-- will display a "no data loaded" message.
select
@DATALOADED = 1,
@VERBAGE = 'Specify the values to use for this segment to generate both the debit and credit accounts for distributions.',
@VERBAGE2 = 'These values will be used when generating GL distributions for transactions entered for fixed assets (stock, gift-in-kind, and property).'
FROM PDACCOUNTCODEMAPSUBLEDGER
-- No gift-in-kind for Altru
if not exists (select 1 from dbo.INSTALLEDPRODUCTLIST where ID = '3117D2C8-7F46-42F2-ABEB-B654F2F63046')
set @VERBAGE2 = REPLACE(@VERBAGE2, ', gift-in-kind,', '')
return 0;