home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG102.ARC
/
GENLED.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
3KB
|
77 lines
* GENLED.PRG
*GENERAL LEDGER PROGRAM
*TO ENTER CHEQUES OUT AND CLASSIFY THEM FOR ACCOUNTING PURPOSES
SET TALK OFF
ERASE
RELEASE ALL
RESTORE FROM A:GENLED
STORE CHQNUM TO CHQNUMA
STORE ' ' TO DATECHQA
STORE ' ' TO TYPEA
STORE 00.00 TO AMTCHQA
STORE ' ' TO COMMA
STORE DATE() TO DATIN
STORE ' ' TO PAYEEA
STORE 1 TO DRAW
STORE F TO PRESENTEDA
DO WHILE T
*******************FORMAT SCREEN***************FOR ENTRY********
@ 2,0 SAY 'CHEQUE ENTRY, '
@ 2,48 SAY DATIN
@ 3,0 SAY 'DATE OF CHEQUE ' GET DATECHQA PICT '99/99/99'
@ 3,25 SAY 'CHEQUE NUMBER(SET TO 999 FOR BANK CHARGES)'GET;
CHQNUMA PICT '999999'
@ 4,0 SAY 'CHEQUE PAID TO ' GET;
PAYEEA PICT '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
@ 5,0 SAY 'REASON FOR CHEQUE' GET;
COMMA PICT '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
@ 6,0 SAY 'CATEGORY OF CHEQUE' GET TYPEA PICT '!!!!!!!'
@ 7,0 SAY 'AMOUNT OF CHEQUE (ZERO TO EXIT) ' GET;
AMTCHQA PICT '999999.99'
@ 8,0 SAY 'IF BANK CHARGES OR PAYMENT DIRECT FROM ACCOUNT INSERT T';
GET PRESENTEDA
STORE DRAW+1 TO DRAW
IF DRAW <3
SET INTENSITY OFF
@ 9,0 SAY '****************************************************************'
@ 10,0 SAY ' CATEGORY.. NUMBER CATEGORY... .NUMBER CATEGORY. .NUMBER '
@ 11,0 SAY ' ADVERTISING 5010 BANK CHARGES 5070 DONATIONS 5630 '
@ 12,0 SAY ' ENTERTAIN 5830 INSURANCE 6280 LEGAL EXP 6600 '
@ 13,0 SAY ' LIGHT&POWER 6640 PETTYCASH EXP 7290 POSTAGE 7320 '
@ 14,0 SAY ' PRINT&STAT 7360 RATES&TAXES 7500 REGISTRATION 7510 '
@ 15,0 SAY ' RENT 7590 REPAIRS &MAINT 7630 REPAIR CAR 7700 '
@ 16,0 SAY ' REPLACEMENTS 7750 SALARIES&WAGES 8250 SUBSCRIPTION 8560 '
@ 17,0 SAY ' SUPERANUATION 8600 TELECOM 8680 SALESTAX 700 '
@ 18,0 SAY ' FREIGHT 1600 STOCK 2000 MISCELLANEOUS * '
@ 19,0 SAY ' CAPITAL ITEM 62100 LEASE PAYMENTS LEASE LOAN REPAYMENT REP'
@ 20,0 SAY ' TOOLS 7770 PACKAGING 9040 '
@ 21,0 SAY '****************************************************************'
ENDIF
READ
IF AMTCHQA=0
STORE CHQNUMA TO CHQNUM
RELEASE ALL EXCEPT CHQNUM
SAVE TO A:GENLED
ERASE
RETURN
ENDIF
USE GENLED index gentype
APPEND BLANK
REPLACE CHQNUM WITH CHQNUMA,PAYEE WITH PAYEEA,COMM WITH ;
COMMA ,TYPE WITH TYPEA,AMTCHQ WITH AMTCHQA,DATECHQ WITH DATECHQA,DATE WITH;
DATE(),PRESENTED WITH PRESENTEDA
STORE CHQNUMA+1 TO CHQNUMA
STORE ' ' TO TYPEA
STORE 00.00 TO AMTCHQA
STORE ' ' TO COMMA
STORE ' ' TO PAYEEA
STORE F TO PRESENTEDA
CLEAR GETS
ENDDO
,0 SAY ' REPLACEMENTS 7750 SALARIES&WAGES 8250 SUBSCRIPTION 8560 '
@ 17,0 SAY ' SUPERANUATION 8600 TELECOM 8680 SALESTAX 700 '
@ 18,0 SAY ' FREIGHT 1600 STOCK 2000 MISCELLANEOUS * '
@ 19,0 SAY ' CAPITAL ITEM 62100 LEASE PAYMENTS LEASE LOAN REPAYMENT REP'
@ 20,0 SAY ' TOOLS