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 8bfd26fd
authored
Sep 29, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Perubahan rumus bogor_kota
1 parent
9ed78d93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
CHANGES.txt
sismiop/services/bekasi_kab/__init__.py
sismiop/services/bogor_kota/__init__.py
CHANGES.txt
View file @
8bfd26f
0.1.12 2020-09-29
-----------------
- Perubahan rumus bogor_kota
0.1.11 2020-09-28
0.1.11 2020-09-28
-----------------
-----------------
- Tambah modul bekasi_kab
- Tambah modul bekasi_kab
...
...
sismiop/services/bekasi_kab/__init__.py
View file @
8bfd26f
...
@@ -13,6 +13,7 @@ AKHIR_DISC = date(2020, 10, 30)
...
@@ -13,6 +13,7 @@ AKHIR_DISC = date(2020, 10, 30)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
def
hitung_discount_denda
(
self
):
# Override
def
hitung_discount_denda
(
self
):
# Override
if
self
.
denda
<
1
or
self
.
tgl_bayar
<
AWAL_DISC
or
\
if
self
.
denda
<
1
or
self
.
tgl_bayar
<
AWAL_DISC
or
\
self
.
tgl_bayar
>
AKHIR_DISC
or
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
self
.
tgl_bayar
>
AKHIR_DISC
or
\
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
return
0
return
0
return
self
.
denda
return
self
.
denda
sismiop/services/bogor_kota/__init__.py
View file @
8bfd26f
...
@@ -19,6 +19,10 @@ from ..default import (
...
@@ -19,6 +19,10 @@ from ..default import (
)
)
OKTOBER_1
=
date
(
2020
,
10
,
1
)
DESEMBER_18
=
date
(
2020
,
12
,
18
)
class
Common
(
Query
):
class
Common
(
Query
):
def
get_pengurangan_covid
(
self
,
pay
):
def
get_pengurangan_covid
(
self
,
pay
):
DBSession
=
get_db_session
()
DBSession
=
get_db_session
()
...
@@ -39,13 +43,18 @@ class Inquiry(BaseInquiry, Common):
...
@@ -39,13 +43,18 @@ class Inquiry(BaseInquiry, Common):
if
self
.
invoice
.
thn_pajak_sppt
<
'2013'
:
if
self
.
invoice
.
thn_pajak_sppt
<
'2013'
:
self
.
discount
=
self
.
denda
self
.
discount
=
self
.
denda
def
rumus_discount_denda_2020
(
self
):
def
rumus_discount_denda_2020
_07_08
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<
'2020'
:
if
self
.
invoice
.
thn_pajak_sppt
<
'2020'
:
self
.
discount
=
self
.
denda
self
.
discount
=
self
.
denda
def
rumus_discount_denda_2020_10_12
(
self
):
self
.
discount
=
self
.
denda
def
hitung_discount
(
self
):
# Override
def
hitung_discount
(
self
):
# Override
if
self
.
tgl_bayar
.
year
==
2020
and
self
.
tgl_bayar
.
month
in
(
7
,
8
):
if
self
.
tgl_bayar
>=
OKTOBER_1
and
self
.
tgl_bayar
<=
DESEMBER_18
:
self
.
rumus_discount_denda_2020
()
self
.
rumus_discount_denda_2020_10_12
()
elif
self
.
tgl_bayar
.
year
==
2020
and
self
.
tgl_bayar
.
month
in
(
7
,
8
):
self
.
rumus_discount_denda_2020_07_08
()
else
:
else
:
self
.
rumus_discount_denda_2017
()
self
.
rumus_discount_denda_2017
()
...
...
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