home *** CD-ROM | disk | FTP | other *** search
- /*ACash pro Print Entry normal*/
-
- OPTIONS RESULTS
- address ACASH_REXX
-
- /*Nötige Daten besorgen: Empfängerliste, Projektinfo, aktives konto*/
-
- GetAttrs '"CUSTOMERS"' '"CUST"'
-
- getprtfile
- file=result
-
- if Open('temp',file,'w') then do
- setscrtitle '"Fetching data ..."'
- getactiveENTRY '"entry"'
- if (result=="1") then do
- setscrtitle '"Rendering..."'
-
- i=0
- x=-1
- do while i<cust.count
- namen=""
- namen=cust.i.name||" "||cust.i.surename
-
- if (namen=entry.customer) then do
- x=i
- break
- end
- if (x>-1) then break
- i=i+1
- end
- if (x>-1) then do
-
- call writeln('temp',"")
-
- call writeln('temp'," "||entry.customer)
- call writeln('temp'," "||cust.i.street)
- call writeln('temp'," "||cust.i.zip||" "||cust.i.city)
-
-
- if (length(cust.i.tel)>0) then do
- call writeln('temp'," "||"Tel1: "||cust.i.tel)
- end
- else do
- call writeln('temp',"")
- end
- if (length(cust.i.fax)>0) then do
- call writeln('temp'," "||"Tel2: "||cust.i.fax)
- end
- else do
- call writeln('temp',"")
- end
-
- call writeln('temp',"")
-
- end
-
- end
- Call Close('temp')
- end
-
- exit 0
-
-