Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
sismiop-models
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 60e48289
authored
Oct 01, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kabupaten Bandung
1 parent
46941468
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
13 deletions
CHANGES.txt
sismiop/services/bandung_kab.py
sismiop/services/banjar.py
sismiop/services/cilegon.py
CHANGES.txt
View file @
60e4828
0.1.44 2022-10-1
----------------
- Tambah Kabupaten Bandung
- Rumus discount denda Kota Cilegon
- Rumus discount denda Kota Banjar
0.1.43 2022-9-17
0.1.43 2022-9-17
----------------
----------------
- Rumus discount denda Majalengka
- Rumus discount denda Majalengka
...
...
sismiop/services/bandung_kab.py
0 → 100644
View file @
60e4828
from
datetime
import
date
from
.sumedang
import
(
AvailableInvoice
as
BaseAvailableInvoice
,
Inquiry
as
BaseInquiry
,
Reversal
,
get_db_session
,
)
AWAL_DISC
=
date
(
2022
,
10
,
1
)
AKHIR_DISC
=
date
(
2022
,
12
,
31
)
class
Inquiry
(
BaseInquiry
):
def
hitung_discount
(
self
):
# Override
if
self
.
tgl_bayar
<
AWAL_DISC
:
return
if
self
.
tgl_bayar
>
AKHIR_DISC
:
return
if
self
.
invoice
.
thn_pajak_sppt
<
'1994'
:
return
if
self
.
invoice
.
thn_pajak_sppt
>
'2022'
:
return
if
self
.
tahun_1993_dan_sebelumnya_belum_lunas
():
return
self
.
discount
=
self
.
denda
def
before_save
(
self
,
payment
):
# Override
payment
.
denda_sppt
=
self
.
denda
-
self
.
discount
def
tahun_1993_dan_sebelumnya_belum_lunas
(
self
):
DBSession
=
get_db_session
()
Sppt
=
self
.
get_invoice_model
()
q
=
DBSession
.
query
(
Sppt
)
q
=
self
.
get_filter_op
(
q
)
q
=
q
.
filter
(
Sppt
.
thn_pajak_sppt
<=
'1993'
)
q
=
q
.
filter_by
(
status_pembayaran_sppt
=
0
)
return
q
.
first
()
class
AvailableInvoice
(
BaseAvailableInvoice
):
def
get_inquiry_class
(
self
):
# Override
return
Inquiry
sismiop/services/banjar.py
View file @
60e4828
# Keputusan Wali Kota Subang
# NOMOR 973/ /2022
# 1. Tanggal bayar Maret - Desember 2022
# 2. Tahun pajak hingga 2021
# 3. Discount denda 100%
from
datetime
import
date
from
datetime
import
date
from
.default
import
(
from
.default
import
(
Inquiry
as
BaseInquiry
,
Inquiry
as
BaseInquiry
,
...
@@ -12,7 +6,9 @@ from .default import (
...
@@ -12,7 +6,9 @@ from .default import (
)
)
AWAL_DISC
=
date
(
2022
,
3
,
1
)
# Keputusan Wali Kota Banjar
# Nomor 973/323/2022
AWAL_DISC
=
date
(
2022
,
10
,
1
)
AKHIR_DISC
=
date
(
2022
,
12
,
31
)
AKHIR_DISC
=
date
(
2022
,
12
,
31
)
...
@@ -22,7 +18,7 @@ class Inquiry(BaseInquiry):
...
@@ -22,7 +18,7 @@ class Inquiry(BaseInquiry):
return
return
if
self
.
tgl_bayar
>
AKHIR_DISC
:
if
self
.
tgl_bayar
>
AKHIR_DISC
:
return
return
if
self
.
invoice
.
thn_pajak_sppt
>
'2021
'
:
if
self
.
invoice
.
thn_pajak_sppt
!=
'2022
'
:
return
return
self
.
discount
=
self
.
denda
self
.
discount
=
self
.
denda
...
...
sismiop/services/cilegon.py
View file @
60e4828
# File ini berdasarkan Surat Keputusan Walikota Cilegon
# Nomor 973/kep. -BPKAD/2020
from
datetime
import
date
from
datetime
import
date
from
.default
import
(
from
.default
import
(
Inquiry
as
BaseInquiry
,
Inquiry
as
BaseInquiry
,
...
@@ -9,15 +7,18 @@ from .default import (
...
@@ -9,15 +7,18 @@ from .default import (
from
..models.cilegon
import
PembayaranSppt
from
..models.cilegon
import
PembayaranSppt
AWAL_DISC
=
date
(
2020
,
9
,
1
)
# SK WALIKOTA CILEGON
AKHIR_DISC
=
date
(
2020
,
11
,
30
)
# NOMOR 973/Kep.114-BPKAD/2022
# 19 SEPTEMBER 2022
AWAL_DISC
=
date
(
2022
,
10
,
1
)
AKHIR_DISC
=
date
(
2022
,
12
,
31
)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
if
self
.
tgl_bayar
<
AWAL_DISC
or
self
.
tgl_bayar
>
AKHIR_DISC
or
\
if
self
.
tgl_bayar
<
AWAL_DISC
or
self
.
tgl_bayar
>
AKHIR_DISC
or
\
self
.
invoice
.
thn_pajak_sppt
<
'1990'
or
\
self
.
invoice
.
thn_pajak_sppt
<
'1990'
or
\
self
.
invoice
.
thn_pajak_sppt
>
'202
0
'
:
self
.
invoice
.
thn_pajak_sppt
>
'202
2
'
:
return
0
return
0
return
self
.
denda
return
self
.
denda
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment