Difference between revisions of "S41 - Barcode (Stock Control Report Generator variable)"

From Catalyst
Jump to: navigation, search
(Updated from revision control)
(Updated from revision control)
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
== Syntax ==
 
== Syntax ==
  '''S41'''{barcode-ID}
+
  '''S41'''{barcode-ID, Y/N, }
  
 
== Description ==
 
== Description ==
Returns the barcode for this stock item that is set to be printed. If no barcodes are set to be printed then it will return the first barcode for the stock item.
+
Returns a barcode for this stock item.
  
 
== Parameters ==
 
== Parameters ==
 
;barcode-ID
 
;barcode-ID
 
:A numeric parameter that can be omitted (it defaults to "0").
 
:A numeric parameter that can be omitted (it defaults to "0").
:The barcode to be printed.
+
:The barcode to be returned.
:If {{DataValue|zero}} then it will return the barcode that is set to be {{DataValue|Printed}}. If none are set to be {{DataValue|Printed}} then it will return the first barcode for the stock item.
+
:If {{DataValue|zero}} then it will return the barcode that is set to be {{DataValue|Printed}}.
 
:If {{DataValue|non-zero}} then it will return the nth {{DataValue|non-Printed}} barcode for the stock item.
 
:If {{DataValue|non-zero}} then it will return the nth {{DataValue|non-Printed}} barcode for the stock item.
 +
;Y/N
 +
:A text parameter that can be omitted (it defaults to "N").
 +
:;Y
 +
::Return the printed or unprinted barcode for a specific depot.
 +
:;N
 +
::Return the default printed or unprinted barcode.
 +
;
 +
:A text parameter that can be omitted.
 +
:If the previous parameter is set to {{DataValue|Y}}, enter the depot here. If left blank, the current depot will be used.
  
 
== Returns ==
 
== Returns ==

Latest revision as of 05:39, 12 April 2022

Syntax

S41{barcode-ID, Y/N, }

Description

Returns a barcode for this stock item.

Parameters

barcode-ID
A numeric parameter that can be omitted (it defaults to "0").
The barcode to be returned.
If 'zero' then it will return the barcode that is set to be 'Printed'.
If 'non-zero' then it will return the nth 'non-Printed' barcode for the stock item.
Y/N
A text parameter that can be omitted (it defaults to "N").
Y
Return the printed or unprinted barcode for a specific depot.
N
Return the default printed or unprinted barcode.
A text parameter that can be omitted.
If the previous parameter is set to 'Y', enter the depot here. If left blank, the current depot will be used.

Returns

A text value whose typical size is 20 characters.