gtINSerialLotLine
This function supplies the information to add serial and lot number information on Inventory line items to Accounts Receivable Credit Note headers. The inventory line item reference parameter must be the unique ID returned by the gtARCreditNoteINLine function call. There must be one function call for each serial or lot number.
SourceLine
This must be the unique identifier generated by the gtARCreditNoteINLine function call. It has the format ARCN-nnn-nn. This ensures the serial lot lines are of the correct inventory line item details and it ensures Excel creates the line item information before attempting to calculate and create the serial lot details.
Quantity
The number of units relevant for this serial/lot line. For serial items this must always be one (1.00)
Number
The serial or lot number of the quantity entered above.
ExpiryDate
The expiry date of this serial or lot item if expiry dates are used.
Tree Codes
If serial/lot trees are in use, you can enter the tree branch short code to assign the serial/lot number to a tree branches (use a blank space as the separator if you are assigning more than one branch). This is applicable if the serial/lot number is new and the transaction has an increasing effect on inventory.
Returns
- Ok - if no errors are encountered
- Header Error - if the database is closed
- Error - if an error is encountered
Errors Returned
- Invalid source line reference. Should be ARCN-nnn-nn
- The source line must be specified
- The quantity must be specified
- The serial lot number must be specified
- Invalid Expiry Date
- The credit note header could not be found
- The credit note line could not be found