XactCommerce Xact Objects
Home
News
XactCommerce
Typical Applications
Custom Development
Private Backend
XactScript Language
Performance
Deployment
Partners
Portfolio
About Us
leXml Language < Interface Modules & Commands < If_LineItemRecord

If_LineItemRecord
LineItem Record interface provides tools and commands to manage individual order line item records.

load
This is called to load an lineitems :
 
Required arguments:
owner_id - The owner ID#
 
Optional arguments:
line_id - The lineitems ID# (if not present, new line item)
 
This returns 'yes' or 'no' depending on whether the item was loaded.


addupdatelineitem
This command creates or updates an existing line item.
(Nothing is committed to the database yet)
 
Optional arguments (all the fields default to empty):
act_id
cli_id
item_id
item_invtype
desc
enddate
extprice
name
line_no
openclosed
ordered
price
pricelevel
startdate
starttime
stoptime
taxable
type
unit
wotime
xact_acct
linked_line
ord_id
owner_id
rel_ord_id
tax_rate
refno
relauth
auth_line
releasetime
shdesc
Returns the addressnum of the new address unless an error occurs.


setclosed
Sets the line item as closed


These are commands to print/get info about the current line item All of these that print something support 'prefix' and 'postfix'.


name
Prints line item name


starttime
Prints line item start time


oplenclosed
Prints line item open/closed status


templatelineiteminfo
This command shows the line item information based on a template
 
Arguments:
template - Template format as below (required)
 
Template replacable macros:
blah - just look below
##ID## - Record (lineitems) ID
##CLI_ID## - Client ID
##ITEM_ID## - Item ID
##ITEM_INVTYPE## - Item Invtype
##DESC## - Item Description
##ENDDATE## - Enddate
##EXTPRICE - Extended Price
##NAME## - Item Name
##LINE_NO## - Line Number
##OPENCLOSED## - Line Open/Closed Status
##ORDERED## - Quantity Ordered
##PRICE## - Price
##PRICELEVEL## - Pricelevel
##STARTDATE## - Startdate
##STARTTIME## - Starttime
##STOPTIME## - Stoptime
##TAXABLE## - Taxable
##TYPE## - Type
##UNIT## - Unit
##WOTIME## - Write Off Time
##XACT_ACCT## - G/L Account Number
##LINKED_LINE## - Linked LineItem Line
##ORD_ID## - Order ID
##OWNER_ID## - Owner ID
##REL_ORD_ID## - Release Order ID
##TAX_RATE## - Tax Rate
##REFNO## - Reference Number
##RELAUTH## - Release Authorization
##AUTH_LINE## - Authorizing Line
##RELEASETIME## - Release Time
##SHDESC## - Short Description
 
Returns 'ok' or 'error:...'


commit
Commits data to database
 
Returns 'ok' or 'error:...'