USP_DATAFORMTEMPLATE_VIEW_MERCHANDISEPRODUCTLABELBULKPRINT

The load procedure used by the view dataform template "Merchandise Inventory Item View"

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN The input ID parameter used to load the fields defined on the form.
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@MERCHANDISEQUERYID uniqueidentifier INOUT Merchandise query ID
@MERCHANDISEPRODUCTID uniqueidentifier INOUT Merchandise product ID
@INCLUDEINACTIVE bit INOUT Include inactive
@INCLUDEZEROQUANTITY bit INOUT Include merchandise with no available inventory
@PRODUCTLABELS xml INOUT Labels to print

Definition

Copy

CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_MERCHANDISEPRODUCTLABELBULKPRINT
(
    @ID uniqueidentifier,
    @DATALOADED bit = 0 output,
    @MERCHANDISEQUERYID uniqueidentifier = null output,
    @MERCHANDISEPRODUCTID uniqueidentifier = null output,
    @INCLUDEINACTIVE bit = null output,
    @INCLUDEZEROQUANTITY bit = null output,
    @PRODUCTLABELS xml = null output
)
as
    set nocount on;

    -- be sure to set this, in case the select returns no rows
    set @DATALOADED = 0;

    set @PRODUCTLABELS = dbo.UFN_MERCHANDISE_GETPRODUCTLABELSTOBULKPRINT_TOITEMLISTXML(@ID, @MERCHANDISEPRODUCTID, @INCLUDEINACTIVE, @INCLUDEZEROQUANTITY)

    set @DATALOADED = 1

    return 0;