..!interpreterenglish
..Program:GSTREP
..Author:T3CHN0M4NC3R
..Created on:08.04.08
..Function:GST Report for WITTE FAR EAST
.TYPE text xtdata xtdate xtdate2 xdcoun xttax xcname
.TYPE R9.2 xrammount xzammount xeammount xtammount xtotal xoutd xintax xgst
.TYPE gd xddate ddate2
!PERIOD
.READ "Print period from" xddate
.READ "Print period to" xddate2
.MENU
.FO xtdate2 = xddate2
.FO xtdata = "%,,budat="+'xddate'+"!"+'xddate2'+";ans=;nummer=;such=;@bereich=yes;@gruppe=1;"
.FO xrammount = 0
.SEL sales 'xtdata'
.FO xcname = 'ans'
.FO xdcoun = 'staat'
.FO xttax = 'steuerfrei'
.FO xtdate = xddate
!SUMM
.SEL line
.FO xrammount = xrammount + pwert ? art^gruppe=1 & xdcoun="SINGAPORE"
.FO xzammount = xzammount + pwert ? art^gruppe=1 & xdcoun<>"SINGAPORE"
.FO xeammount = xeammount + pwert ? art^gruppe=1 & xttax = "No"
.FO xtammount = xtammount + pwert ? art^gruppe=1 & xttax = "Yes"
.FO xoutd = xrammount * 0.05
.FO xintax = xtammount * 0.05
.FO xgst = xintax - xoutd
.CONT STOP?_mehr
.CONT SUMM ? art^gruppe<>1
.CONT SUMM
!STOP
.SEL Sales
.CONT Next? _mehr
.FO xcname = 'ans'
.FO xdcoun = 'staat'
.FO xttax = 'steuerfrei'
.CONT SUMM
!NEXT
.FO xtotal = xrammount + xzammount + xeammount
Company: WITTE FAR EAST PTE LTD
Subject: Summary
Period: 'xtdate' to 'xtdate2'
Total Value of Standard-rated supplies:'xrammount'(1)
Total value of zero-rated supplies'xzammount'(2)
Total value of exempted supplies'xeammount'(3)
Total value of (1)+(2)+(3)'xtotal'(4)
Total Value of taxable purchases'xtammount'(5)
Output due'xoutd'(6)
Less
Input tax and refunds claimed'xintax'(7)
Net GST to paid to IRAS
OR'xgst'(8)
Net GST to be claimed from IRAS
!END
.END