# ############################################################## # takestock-7m.rul merge rule file for TakeStock application # # Requires, at least, UnForm version 7.0.09 # # This rule file includes rule set setup for extra # # features like archiving and emailing # ############################################################## # This rule file is provided "AS IS", without warranty. # # Under no circumstances will the publisher be liable # # for consequential damages resulting from the use or # # inability to use the contents. # ######################################################### # # NOTE: SDSI has attempted to create # rule sets that are generic enough # that they cover as many options as # possible.If you find situations that # the rule set is not handling properly, # do not hesitate to contact us and # provide us with a sample text file # showing the problem. We will be # happy to provide the "correction" # in a timely manner. # The above assumes that no modifications # have been made to the application. # # # Modification history # # Last modified 01/29/2007 - BCJ # [AR Statement] dsn_sample "/u0/unform_test/takestock/txt/ar_stmtC1011P.txt" # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Accounting" # arcdoctype$=document type, default=rule set name ufa_doctype$="Statement" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docdate$=get(89,8,10,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") ufa_custid$="Id: "+get(12,10,10,"UFTRIM") ufa_docid$=ufa_custid$+"-"+ufa_yyyy$+upper(ufa_mmm$)+ufa_dd$ # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_custname$=get(12,11,30,"UFTRIM") ufa_title$=ufa_docdate$+" "+ufa_custid$+":"+ufa_custname$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Customer|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyy$+";" ufa_cats$+="Customer|Name|"+ufa_custname$+"|"+ufa_yyyy$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Year|"+ufa_yyyy$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="STM" ufs_docdate$=get(89,8,10,"UFTRIM") ufs_yyyy$=dte(ufa_docdate$:"%Ys") ufs_mmm$=dte(ufa_docdate$:"%Ms") ufs_dd$=dte(ufa_docdate$:"%Dz") ufs_custid$=get(12,10,10,"UFTRIM") ufs_docid$=ufs_custid$+"-"+ufs_yyyy$+upper(ufs_mmm$)+ufs_dd$ # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Paid By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [IC Transfer Ticket] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Operations" # arcdoctype$=document type, default=rule set name ufa_doctype$="Transfer Ticket" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(119,5,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(117,9,10,"UFTRIM") ufa_shipto$="To: "+get(21,11,10,"UFTRIM") ufa_shipfrom$="From: "+get(105,11,10,"UFTRIM") ufa_shiptoname$=get(12,12,34,"UFTRIM") ufa_shipfromname$=get(94,12,34,"UFTRIM") ufa_custpo$="PO/Ref "+get(36,19,15,"UFTRIM") if trim(ufa_custpo$)="PO/Ref" then ufa_custpo$="PO/Ref (none)" ufa_title$=ufa_docdate$+" "+ufa_shipto$+":"+ufa_shiptoname$+" - "+ufa_shipfrom$+":"+ufa_shipfromname$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_warehouse$=get(22,19,3,"UFTRIM") ufa_refdoc$=get(27,19,8,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="TransferTo|Id|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="TransferTo|Name|"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="TransferFrom|Id|"+ufa_shipfrom$+":"+ufa_shipfromname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="TransferFrom|Name|"+ufa_shipfromname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="DocXref|"+ufa_docid$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="TSFR" ufs_docid$=get(119,5,8,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Accepted By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [IC Transfer BOL] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Operations" # arcdoctype$=document type, default=rule set name ufa_doctype$="Transfer BOL" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(80,4,12,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(83,8,10,"UFTRIM") ufa_shipto$="To: "+get(10,10,10,"UFTRIM") ufa_shipfrom$="From: "+get(57,10,10,"UFTRIM") ufa_shiptoname$=get(12,11,30,"UFTRIM") ufa_shipfromname$=get(50,11,30,"UFTRIM") ufa_custpo$="PO/Ref "+get(36,19,15,"UFTRIM") if trim(ufa_custpo$)="PO/Ref" then ufa_custpo$="PO/Ref (none)" ufa_title$=ufa_docdate$+" "+ufa_shipto$+":"+ufa_shiptoname$+" - "+ufa_shipfrom$+":"+ufa_shipfromname$+" "+ufa_custpo$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_warehouse$=get(22,19,3,"UFTRIM") ufa_refdoc$=get(27,19,8,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="TransferTo|Id|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="TransferTo|Name|"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$="TransferFrom|Id|"+ufa_shipfrom$+":"+ufa_shipfromname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="TransferFrom|Name|"+ufa_shipfromname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustPoRef|To Id|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPoRef|To Name|"+ufa_shiptoname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPoRef|From Id|"+ufa_shipfrom$+":"+ufa_shipfromname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPoRef|From Name|"+ufa_shipfromname$+"|"+ufa_custpo$+";" ufa_cats$+="CustShipTo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustShipTo|Name|"+ufa_custname$+"|"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Warehouse|"+ufa_warehouse$+"|"+ufa_YYYYMMM$+";" ufa_cats$+="DocXref|"+ufa_refdoc$+";" ufa_cats$+="DocXref|"+ufa_docid$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="BOL" ufs_docid$=get(80,4,12,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Accepted By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [PO Purchase Order] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Purchasing" # arcdoctype$=document type, default=rule set name ufa_doctype$="Purchase Order" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(77,4,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_vendid$="Id: "+get(10,11,10,"UFTRIM") ufa_vendname$=get(10,12,30,"UFTRIM") ufa_docdate$=get(75,8,10,"UFTRIM") ufa_title$=ufa_docdate$+" "+ufa_vendid$+":"+ufa_vendname$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_shipto$="To: "+get(57,11,10,"UFTRIM") ufa_shiptoname$=get(57,12,30,"UFTRIM") ufa_warehouse$=ufa_shipto$+" "+ufa_shiptoname$ ufa_buyer$=get(2,21,30,"UFTRIM") if trim(ufa_buyer$)="" then ufa_buyer$="(none)" ufa_refdoc$=get(14,25,15,"UFTRIM") ufa_customer$=get(48,25,30,"UFTRIM") if trim(ufa_customer$)="" then ufa_customer$="(none)" ufa_shiptoname$=get(12,12,35,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Vendor|Id|"+ufa_vendid$+":"+ufa_vendname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Vendor|Name|"+ufa_vendname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="PO Cust|"+ufa_customer$+";" ufa_cats$+="Buyer|"+ufa_buyer$+"|Vendor ID|"+ufa_vendid$+": "+ufa_vendname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Buyer|"+ufa_buyer$+"|Vendor Name|"+ufa_vendname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Shipto Warehouse|"+ufa_warehouse$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Reference|"+ufa_refdoc$+ufa_yyyymmm$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { shdoctype$="PO" # uses global constant UFTRIM set in global area of rule file docid$=get(77,4,8,"UFTRIM") } prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="PO" ufs_docid$=get(77,4,8,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Received By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [SO Acknowledgement] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Sales" # arcdoctype$=document type, default=rule set name ufa_doctype$="Acknowledgement" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(77,5,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(75,9,10,"UFTRIM") ufa_custid$="Id: "+get(10,12,10,"UFTRIM") ufa_custname$=get(6,13,30,"UFTRIM") ufa_custpo$="PO "+get(2,21,15,"UFTRIM") if trim(ufa_custpo$)="PO" then ufa_custpo$="PO (none)" ufa_title$=ufa_docdate$+" "+ufa_custid$+":"+ufa_custname$+" "+ufa_custpo$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_shipto$=get(57,12,10,"UFTRIM") ufa_shiptoname$=get(50,13,30,"UFTRIM") ufa_salesperson$=get(31,21,30,"UFTRIM") ufa_warehouse$=get(18,25,30,"UFTRIM") ufa_refdoc$=get(2,25,8,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Customer|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Customer|Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustPo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPo|Name|"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustShipTo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustShipTo|Name|"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer ID|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Warehouse|"+ufa_warehouse$+"|"+ufa_yyyymmm$+";" ufa_cats$+="DocXref|"+ufa_refdoc$+";" ufa_cats$+="DocXref|"+ufa_docid$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { shdoctype$="ACK # uses global constant UFTRIM set in global area of rule file docid$=get(77,5,8,"UFTRIM") } prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="ACK" ufs_docid$=get(77,5,8,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Accepted By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [SO Counter Ticket] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Sales" # arcdoctype$=document type, default=rule set name ufa_doctype$="Counter Ticket" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(77,5,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(75,9,10,"UFTRIM") ufa_custid$="Id: "+get(10,12,10,"UFTRIM") ufa_custname$=get(6,13,30,"UFTRIM") ufa_custpo$="PO "+get(2,21,15,"UFTRIM") if trim(ufa_custpo$)="PO" then ufa_custpo$="PO (none)" ufa_title$=ufa_docdate$+" "+ufa_custid$+":"+ufa_custname$+" "+ufa_custpo$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_shipto$=get(57,12,10,"UFTRIM") ufa_shiptoname$=get(50,13,30,"UFTRIM") ufa_salesperson$=get(31,21,30,"UFTRIM") ufa_warehouse$=get(18,25,30,"UFTRIM") ufa_refdoc$=get(2,25,8,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Customer|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Customer|Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustPo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPo|Name|"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustShipTo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustShipTo|Name|"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer ID|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Warehouse|"+ufa_warehouse$+"|"+ufa_yyyymmm$+";" ufa_cats$+="DocXref|"+ufa_refdoc$+";" ufa_cats$+="DocXref|"+ufa_docid$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { shdoctype$="CI" # uses global constant UFTRIM set in global area of rule file docid$=get(77,5,8,"UFTRIM") } prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="CTR" ufs_docid$=get(77,5,8,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Accepted By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [SO Pick Ticket] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Sales" # arcdoctype$=document type, default=rule set name ufa_doctype$="Pick Ticket" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(77,5,16,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(81,9,10,"UFTRIM") ufa_custid$="Id: "+get(55,12,10,"UFTRIM") ufa_custname$=get(55,13,30,"UFTRIM") ufa_custpo$="PO "+get(2,21,15,"UFTRIM") if trim(ufa_custpo$)="PO" then ufa_custpo$="PO (none)" ufa_title$=ufa_docdate$+" "+ufa_custid$+":"+ufa_custname$+" "+ufa_custpo$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_shipto$=get(12,12,10,"UFTRIM") ufa_shiptoname$=get(12,13,30,"UFTRIM") ufa_salesperson$=get(40,21,5,"UFTRIM") ufa_warehouse$=get(62,21,3,"UFTRIM") ufa_refdoc$=docid$ ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Customer|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Customer|Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustPo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPo|Name|"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustShipTo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustShipTo|Name|"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer ID|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Warehouse|"+ufa_warehouse$+"|"+ufa_yyyymmm$+";" ufa_cats$+="DocXref|"+ufa_refdoc$+";" ufa_cats$+="DocXref|"+ufa_docid$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="PICK" ufs_docid$=get(75,5,16,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Picked By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [PR Production] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Operations" # arcdoctype$=document type, default=rule set name ufa_doctype$="Production Ticket" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(115,4,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(113,8,10,"UFTRIM") ufa_item$=get(20,10,20,"UFTRIM") ufa_itemname$=get(42,10,30,"UFTRIM") ufa_dept$=get(47,15,6,"UFTRIM") ufa_prodqty$="Qty= "+get(95,10,11,"UFTRIM")+" "+get(109,10,4,"UFTRIM") ufa_title$=ufa_docdate$+" "+ufa_item$+":"+ufa_itemname$+" Dept: "+ufa_dept$+" "+ufa_prodqty$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_warehouse$=get(2,15,5,"UFTRIM") ufa_reserv$=get(68,15,60,"UFTRIM") if trim(ufa_reserv$)="" then ufa_reserv$="(none)" ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="ItemProduced|"+ufa_item$+":"+ufa_itemname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Warehouse|"+ufa_warehouse$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Department|"+ufa_dept$+"|"+ufa_yyyymmm$+";" ufa_cats$+="ReservedFor|"+ufa_reserv$+ufa_yyyymmm$+";" ufa_cats$+="DocXref|"+ufa_docid$+ufa_yyyymmm$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="PROD" ufs_docid$=get(115,4,8,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Accepted By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [SO Quote] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Sales" # arcdoctype$=document type, default=rule set name ufa_doctype$="Quote" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(77,5,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(75,9,10,"UFTRIM") ufa_custid$="Id: "+get(10,12,10,"UFTRIM") ufa_custname$=get(10,13,30,"UFTRIM") ufa_custpo$="PO "+get(2,21,15,"UFTRIM") if trim(ufa_custpo$)="PO" then ufa_custpo$="PO (none)" ufa_title$=ufa_docdate$+" "+ufa_custid$+":"+ufa_custname$+" "+ufa_custpo$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_shipto$=get(57,12,10,"UFTRIM") ufa_shiptoname$=get(57,13,30,"UFTRIM") ufa_salesperson$=get(31,21,30,"UFTRIM") ufa_warehouse$=get(18,25,30,"UFTRIM") ufa_refdoc$=get(2,25,8,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Customer|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Customer|Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustPo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPo|Name|"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustShipTo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustShipTo|Name|"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer ID|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Warehouse|"+ufa_warehouse$+"|"+ufa_yyyymmm$+";" ufa_cats$+="DocXref|"+ufa_refdoc$+";" ufa_cats$+="DocXref|"+ufa_docid$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="QTE" ufs_docid$=get(77,5,8,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Accepted By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [SO Invoice with Backorders] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Sales" # arcdoctype$=document type, default=rule set name ufa_doctype$="Invoice" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(77,5,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(75,9,10,"UFTRIM") ufa_custid$="Id: "+get(10,12,10,"UFTRIM") ufa_custname$=get(6,13,30,"UFTRIM") ufa_custpo$="PO "+get(2,21,15,"UFTRIM") if trim(ufa_custpo$)="PO" then ufa_custpo$="PO (none)" ufa_title$=ufa_docdate$+" "+ufa_custid$+":"+ufa_custname$+" "+ufa_custpo$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_shipto$=get(57,12,10,"UFTRIM") ufa_shiptoname$=get(50,13,30,"UFTRIM") ufa_salesperson$=get(31,21,30,"UFTRIM") ufa_warehouse$=get(18,25,30,"UFTRIM") ufa_refdoc$=get(2,25,8,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Customer|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Customer|Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustPo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPo|Name|"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustShipTo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustShipTo|Name|"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer ID|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Warehouse|"+ufa_warehouse$+"|"+ufa_yyyymmm$+";" ufa_cats$+="DocXref|"+ufa_refdoc$+";" ufa_cats$+="DocXref|"+ufa_docid$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { shdoctype$="IN # uses global constant UFTRIM set in global area of rule file docid$=get(77,5,8,"UFTRIM") } prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="INV" ufs_docid$=get(77,5,8,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Accepted By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [SO Invoice without Backorders] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YYYY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Sales" # arcdoctype$=document type, default=rule set name ufa_doctype$="Invoice" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(77,5,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(75,9,10,"UFTRIM") ufa_custid$="Id: "+get(10,12,10,"UFTRIM") ufa_custname$=get(6,13,30,"UFTRIM") ufa_custpo$="PO "+get(2,21,15,"UFTRIM") if trim(ufa_custpo$)="PO" then ufa_custpo$="PO (none)" ufa_title$=ufa_docdate$+" "+ufa_custid$+":"+ufa_custname$+" "+ufa_custpo$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_shipto$=get(57,12,10,"UFTRIM") ufa_shiptoname$=get(50,13,30,"UFTRIM") ufa_salesperson$=get(31,21,30,"UFTRIM") ufa_warehouse$=get(18,25,30,"UFTRIM") ufa_refdoc$=get(2,25,8,"UFTRIM") ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Customer|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Customer|Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustPo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustPo|Name|"+ufa_custname$+"|"+ufa_custpo$+";" ufa_cats$+="CustShipTo|Id|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="CustShipTo|Name|"+ufa_custname$+"|"+ufa_shipto$+":"+ufa_shiptoname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer ID|"+ufa_custid$+":"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Salesperson|"+ufa_salesperson$+"|Customer Name|"+ufa_custname$+"|"+ufa_yyyymmm$+";" ufa_cats$+="Warehouse|"+ufa_warehouse$+"|"+ufa_yyyymmm$+";" ufa_cats$+="DocXref|"+ufa_refdoc$+";" ufa_cats$+="DocXref|"+ufa_docid$+";" ufa_cats$+="by Month|"+ufa_yyyymmm$+";" ufa_cats$+="by Day|"+ufa_yyyymmmdd$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif # # Scanning barcode copy section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # DFONT - detail font (std, cgtimes,9) # locals constants set near top of rule set # MAXCOLS - max columns on document, eg. 80 # MAXROWS - max rows on document, eg. 66 # SCANNING_COPY- copy # barcodes should be placed, eg. 2 # # These constants must be added in rule file/set as needed # or inserted below # prepage { # ufs_doctype$ MUST be upper case ufs_doctype$="INV" ufs_docid$=get(77,5,8,"UFTRIM") # warning message text ufs_warnmsg$="Please do not write in this area." # increase rows to allow space for barcodes. # s/b at least 4 rows more than maximum # for enhanced page. ufs_maxrows=MAXROWS+4 # adjusted max form columns as needed ufs_maxcols=MAXCOLS # set flag for right-justified signature # line: 0=no, 1=yes ufs_sign=1 # set signature text, "" for no text ufs_text_sign$="Accepted By" } precopy { # if no archiving enabled then turn off scanning copy if copy=SCANNING_COPY and not(uf.arcenabled) then skip=1 # to turn off scanning copy, remove the # from next line # if copy=SCANNING_COPY then skip=1 # Specify copy to print barcodes ufs_copy=SCANNING_COPY } merge "Engine for scanning copy barcodes","DOC_ENGINE" [AP Check] # # Archiving section # # Coding for this feature uses the following constants # which are preset in standard SDSI rule files/sets # Globals constants set at top of rule file # UFTRIM - trim value for get command (std, "Y") # # These constant(s) must be added in rule file/set as needed # or inserted below # # establish text-based docdate format for date conversion into segments # adjust this format to fit your document local UFA_DATEFMT="MM/DD/YY" prejob { day_format "UFA_DATEFMT" } prepage { # arclibpath$=name of library ufa_libpath$="TKS_Accounting" # arcdoctype$=document type, default=rule set name ufa_doctype$="A/P Check" # arcdocid$=document id,eg invoice #, default=10 digit sequential number ufa_docid$=get(62,51,8,"UFTRIM") # arcsubid$=subid name, default=@unform ufa_subid$="" # arctitle$=document title, default=title command or derived from data ufa_docdate$=get(71,51,8,"UFTRIM") ufa_vendid$="Id: "+get(29,3,10,"UFTRIM") ufa_vendname$=get(39,3,30,"UFTRIM") ufa_title$=ufa_docdate$+" "+ufa_vendid$+":"+ufa_vendname$ # arcnotes$=free form document notes ufa_notes$="" # arckeywords$=semi-colon delimited document identifiers, # default=derived from unique words in document ufa_keywords$="*;" # arccats$=semi-colon delimited sort keys(indexes), # categories can contain multiple segments separated by pipes (|) # info needed for categories ufa_yyyy$=dte(ufa_docdate$:"%Ys") ufa_mmm$=dte(ufa_docdate$:"%Ms") ufa_dd$=dte(ufa_docdate$:"%Dz") # 3 segment category:year then year-month then year-month-day ufa_yyyymmmdd$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$+"|"+ufa_yyyy$+" "+ufa_mmm$+" "+ufa_dd$ # 2 segment year category: year then year-month ufa_yyyymmm$=ufa_yyyy$+"|"+ufa_yyyy$+" "+ufa_mmm$ # now set categories ufa_cats$="Vendor|Id|"+ufa_vendid$+":"+ufa_vendname$+"|"+ufa_yyyy$+";" ufa_cats$+="Vendor|Name|"+ufa_vendname$+"|"+ufa_yyyy$+";" ufa_cats$+="by Year|"+ufa_yyyy$+";" # arclinks$=links to other documents ufa_links$="" # arcargs$=UnForm command line arguments to pass to archive subjobs ufa_args$="-ce 1" # arcdtm$= date & time for document, # default=current date and time ufa_dtm$="" # arcsubtitle$=titles for subids ufa_subtitle$="" # arcsubdtm$=date & time for subids ufa_subdtm$="" } # Place a # in front of the archive line to turn off archiving if uf.arcenabled archive {ufa_libpath$},{ufa_doctype$},{ufa_docid$},subid {ufa_subid$},title {ufa_title$},notes {ufa_notes$},keywords {ufa_keywords$},categories {ufa_cats$},links {ufa_links$},args {ufa_args$},dtm {ufa_dtm$},subtitle {ufa_subtitle$},subdtm {ufa_subdtm$} endif