CABANG BANDUNG
4.35 Listing Program Untuk Cetak Laporan Penggajian
4.6.4 Tampilan Menu Pada Bagian Accounting
Accountingadalah salah satu dari bagian-bagian yang terdapat dalam program sistem informasi akuntansi laporan keuangan arus kas yang terdapat pada perusahaan, berikut tampilan dari menu Accounting:
177
Gambar 4.88Tampilan Menu Utama Bagian Accounting
Tabel 4.36Listing Program Masuk Menu Utama Bagian Accounting Listing Program Keterangan Private Sub PERUSAHAAN_Click()
Form18.Show
End Sub
Private Sub PP_Click() Form10.Show 1
End Sub
Private Sub PROGRAMER_Click() Form19.Show
End Sub
Private Sub Timer1_Timer()
Label1.ForeColor = QBColor(Rnd * 15) Label1.Caption = (Label1.Caption)
Label1.Caption = Right(Label1.Caption, Len(Label1.Caption) - 2) + Left(Label1.Caption, 2) Label2.ForeColor = QBColor(Rnd * 15) Label2.Caption = (Label2.Caption) Label3.ForeColor = QBColor(Rnd * 15) Label3.Caption = (Label3.Caption) Label4.ForeColor = QBColor(Rnd * 15) Label4.Caption = (Label4.Caption) End Sub Tampilan untuk menu utama bagian
accounting.
178
4.6.4.1Perancangan Masukan
Gambar 4.89Tampilan Untuk Jurnal Umum
179
Tabel 4.37Listing Program Untuk Jurnal umum
Listing Program Keterangan Private Sub Command1_Click()
If Option1.Value = True Then
CR1.ReportFileName = App.Path & "\Report\JURNAL.rpt" CR1.SelectionFormula = "month({A_JURNAL.Tanggal})=" & Combo1.ListIndex + 1 & " and " & "year({A_JURNAL.Tanggal})=" & Text1.Text
CR1.RetrieveDataFiles
CR1.WindowState = crptMaximized CR1.Action = True
Else
CR1.ReportFileName = App.Path & "\Report\JURNAL.rpt" CR1.SelectionFormula = "year({A_JURNAL.Tanggal})=" & Text1.Text CR1.RetrieveDataFiles CR1.WindowState = crptMaximized CR1.Action = True End If End Sub
Private Sub Command2_Click() Unload Me
End Sub
Tampilan Untuk jurnal Umum
Gambar 4.91Tampilan Untuk Buku Besar Umum
180
Gambar 4.93Tampilan Untuk Cetak Buku Besar Umum Piutang
Gambar 4.94Tampilan Untuk Cetak Buku Besar Umum Beban Gaji
Gambar 4.95Tampilan Untuk Cetak Buku Besar UmumBeban Listrik
181
Gambar 4.97Tampilan Untuk Cetak Buku Besar Umum Beban Telepon
Gambar 4.98Tampilan Untuk Cetak Buku Besar Umum Peralatan
Gambar 4.100Tampilan Untuk Cetak Buku Besar Umum Perlengkapan
182
Gambar 4.102 Tampilan Untuk Buku Besar Umum Kantor Pusat
Gambar 4.103 Tampilan Untuk Cetak Buku Besar Umum Diskon
Gambar 4.104 Tampilan Untuk Cetak Buku Besar Umum Biaya Transit
183
Tabel 4.38Listing Program Untuk Buku Besar Umum
Listing Program Keterangan Private Sub Combo2_Click()
If Combo2.ListIndex = 0 Then Text2 = "111" If Combo2.ListIndex = 1 Then Text2 = "411" If Combo2.ListIndex = 2 Then Text2 = "112" If Combo2.ListIndex = 3 Then Text2 = "511" If Combo2.ListIndex = 4 Then Text2 = "512" If Combo2.ListIndex = 5 Then Text2 = "513" If Combo2.ListIndex = 6 Then Text2 = "514" If Combo2.ListIndex = 7 Then Text2 = "113" If Combo2.ListIndex = 8 Then Text2 = "114" If Combo2.ListIndex = 9 Then Text2 = "515" If Combo2.ListIndex = 10 Then Text2 = "516" End Sub
Private Sub Command1_Click() Text4 = 0
If Option1.Value = True Then
Tanggal = DateSerial(Text1, Combo1.ListIndex + 1, 1) Else
Tanggal = DateSerial(Text1, 1, 1) End If
If Combo2.ListIndex = 0 Or Combo2.ListIndex = 2 Or Combo2.ListIndex = 7 Or Combo2.ListIndex = 8 Then Adodc1.Enabled = False
Adodc1.CommandType = adCmdText Adodc1.RecordSource = ""
'Adodc1.RecordSource = "SELECT SUM(Kas)AS TOTAL From dbo.A_LK WHERE (TANGGAL < CONVERT(DATETIME, '" &
Format(Tanggal, "mm/dd/yyyy") & "', 102))"
If Combo2.ListIndex = 0 Then Adodc1.RecordSource = "SELECT SUM(Kas)AS TOTAL From dbo.A_LK WHERE (TANGGAL <
CONVERT(DATETIME, '" & Format(Tanggal, "mm/dd/yyyy") & "', 102))"
If Combo2.ListIndex = 2 Then Adodc1.RecordSource = "SELECT SUM(Piutang)AS TOTAL From dbo.A_LK WHERE (TANGGAL <
CONVERT(DATETIME, '" & Format(Tanggal, "mm/dd/yyyy") & "', 102))"
If Combo2.ListIndex = 7 Then Adodc1.RecordSource = "SELECT SUM(Peralatan)AS TOTAL From dbo.A_LK WHERE (TANGGAL <
CONVERT(DATETIME, '" & Format(Tanggal, "mm/dd/yyyy") & "', 102))"
If Combo2.ListIndex = 8 Then Adodc1.RecordSource = "SELECT SUM(Perlengkapan)AS TOTAL From dbo.A_LK WHERE (TANGGAL < CONVERT(DATETIME, '" & Format(Tanggal, "mm/dd/yyyy") & "', 102))"
'If Combo2.ListIndex = 0 Then Adodc1.RecordSource = "SELECT SUM(Kas)AS TOTAL From dbo.A_LK WHERE (TANGGAL < CONVERT(DATETIME, '" & Format(Tanggal, "mm/dd/yyyy") & "', 102))"
Adodc1.Enabled = True Adodc1.Refresh
On Error Resume Next
If Adodc1.Recordset.BOF = False Then Text4 = Adodc1.Recordset.Fields(0) Else
Text4 = "0" End If
Tampilan untuk buku besar umum
184
4.6.4.2Perancangan Keluaran
Gambar 4.102 Tampilan Untuk Laporan Laba Rugi
185
Tabel 4.39Listing Program Untuk Laporan Laba Rugi
Listing Program Keterangan Private Sub Command1_Click()
If Option1.Value = True Then Text3 = Combo1 & " " & Text1
CR1.ReportFileName = App.Path & "\Report\LR.rpt" CR1.SelectionFormula = "month({A_LK.Tanggal})=" & Combo1.ListIndex + 1 & " and " & "year({A_LK.Tanggal})=" & Text1.Text
CR1.ParameterFields(0) = "PERIODE;" & Text3 & "; 1" CR1.RetrieveDataFiles
CR1.WindowState = crptMaximized CR1.Action = True
Else
Text3 = Text1
CR1.ReportFileName = App.Path & "\Report\LR.rpt" CR1.SelectionFormula = "year({A_LK.Tanggal})=" & Text1.Text
CR1.ParameterFields(0) = "Periode;" & Text3 & "; 1" CR1.RetrieveDataFiles CR1.WindowState = crptMaximized CR1.Action = True End If End Sub Tampilan Untuk Laporan Laba Rugi
186
Gambar 4.105 Tampilan Untuk Cetak Laporan Arus Kas
Tabel 4.40Listing Program Untuk Laporan Arus Kas
Listing Program Keterangan Private Sub Command1_Click()
Text4 = 0 Text5 = 0 Text6 = 0 Text7 = 0
If Option1.Value = True Then
Tanggal = DateSerial(Text1, Combo1.ListIndex + 1, 1) Else Tanggal = DateSerial(Text1, 1, 1) End If Adodc1.Enabled = False Adodc1.CommandType = adCmdText Adodc1.RecordSource = ""
Adodc1.RecordSource = "SELECT SUM(Kas)AS TOTAL From dbo.A_LK WHERE (TANGGAL < CONVERT(DATETIME, '" & Format(Tanggal, "mm/dd/yyyy") & "', 102))"
Adodc1.Enabled = True Adodc1.Refresh
On Error Resume Next
If Adodc1.Recordset.BOF = False Then Text4 = Adodc1.Recordset.Fields(0) Else
Text4 = "0" End If
Tampilan Untuk Laporan Arus Kas
187
LanjutanListing Program Untuk Laporan Arus Kas
Adodc1.Enabled = False
Adodc1.CommandType = adCmdText Adodc1.RecordSource = ""
Adodc1.RecordSource = "SELECT SUM(Peralatan)AS TOTAL From dbo.A_LK WHERE (TANGGAL < CONVERT(DATETIME, '" &
Format(Tanggal, "mm/dd/yyyy") & "', 102))" Adodc1.Enabled = True
Adodc1.Refresh
On Error Resume Next
If Adodc1.Recordset.BOF = False Then Text5 = Adodc1.Recordset.Fields(0) Else Text5 = "0" End If Adodc1.Enabled = False Adodc1.CommandType = adCmdText Adodc1.RecordSource = ""
Adodc1.RecordSource = "SELECT SUM(Perlengkapan)AS TOTAL From dbo.A_LK WHERE (TANGGAL < CONVERT(DATETIME, '" &
Format(Tanggal, "mm/dd/yyyy") & "', 102))" Adodc1.Enabled = True
Adodc1.Refresh
On Error Resume Next
If Adodc1.Recordset.BOF = False Then Text6 = Adodc1.Recordset.Fields(0) Else
Text6 = "0" End If
188
Gambar 4.107 Tampilan Untuk Cetak Laporan Kerugian
Tabel 4.41Listing Program Untuk Laporan Kerugian
Listing Program Keterangan Private Sub Command1_Click()
With Adodc1.Recordset .AddNew .Fields(0) = Text1 .Fields(1) = DTPicker1 .Fields(2) = Text2 .Fields(3) = Text3 .Fields(4) = Text4 .Fields(5) = Text5 .Fields(6) = Text6 .Fields(7) = Month(DTPicker1) .Fields(8) = Year(DTPicker1) .Fields(9) = "T" .Fields(10) = Text7 .Update End With With Form11.Adodc4.Recordset .AddNew .Fields(0) = Text1 .Fields(1) = DTPicker1
.Fields(2) = "BIAYA PENGGANTIAN" .Fields(3) = Text6 .Fields(4) = Month(DTPicker1) .Fields(5) = Year(DTPicker1) .Update End With With Adodc2 .Enabled = False .RecordSource = ""
.RecordSource = "select * from A_TRANSAKSI_PENGIRIMAN where No_Pengiriman='" & Text2 & "'"
.Enabled = True .Refresh End With With Adodc2.Recordset .Fields(21) = "Y" .Update End With Tampilan Untuk Laporan Kerugian
189
Gambar 4.108 Tampilan Untuk Cetak Form Penerimaan
190
Tabel 4.42 Listing Program Untuk Laporan Penerimaan
Listing Program Keterangan Private Sub Command1_Click()
With Form7.Adodc6 .Enabled = False .RecordSource = ""
.RecordSource = "select * from A_DATA_KENDARAAN where No_Polisi='" & Text8 & "'"
.Enabled = True .Refresh End With
If Form7.Adodc6.Recordset.RecordCount = 0 Then 'Text16 = Val(Text14) * Val(Text15) Else Form7.Adodc6.Recordset.Fields(6) = 0 Form7.Adodc6.Recordset.Update End If With Adodc1.Recordset .AddNew .Fields(0) = Text1 .Fields(1) = DTPicker1 .Fields(2) = Text2 .Fields(3) = Text7 .Fields(4) = Text3 .Fields(5) = Text4 .Fields(6) = Text5 .Fields(7) = Text6 .Fields(8) = Month(DTPicker1) .Fields(9) = Year(DTPicker1) .Fields(10) = Text9 .Update End With With Adodc2 .Enabled = False .RecordSource = ""
.RecordSource = "select * from A_TRANSAKSI_PENGIRIMAN where No_Pengiriman='" & Text2 & "'"
.Enabled = True .Refresh End With With Adodc2.Recordset .Fields(33) = "Y" .Update End With ' With Form11.Adodc4.Recordset ' .AddNew ' .Fields(0) = Text1 ' .Fields(1) = DTPicker1
' .Fields(2) = "BIAYA PENGGANTIAN" ' .Fields(3) = Text6 ' .Fields(4) = Month(DTPicker1) ' .Fields(5) = Year(DTPicker1) ' .Update ' End With Tampilan Untuk Laporan Penerimaan
191
Gambar 4.110 Tampilan Profil Perusahaan
192
4.7Konversi Komponen Sistem