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 508d4d3a
authored
Jan 30, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kota Tangerang berlaku denda surut yaitu seluruh tahun pajak sebesar 1%
1 parent
8f625f70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
29 deletions
CHANGES.txt
sismiop/services/tangkota.py
CHANGES.txt
View file @
508d4d3
0.3.2 2024-06-12
0.3.3 2024-01-30
----------------
- Kota Tangerang berlaku denda surut yaitu seluruh tahun pajak sebesar 1%
0.3.2 2024-01-12
----------------
----------------
- Kota Bekasi menerapkan persen denda ganda untuk jatuh tempo sebelum 1 Januari 2024
- Kota Bekasi menerapkan persen denda ganda untuk jatuh tempo sebelum 1 Januari 2024
...
...
sismiop/services/tangkota.py
View file @
508d4d3
from
datetime
import
date
from
.tangsel
import
(
from
.tangsel
import
(
Inquiry
as
BaseInquiry
,
Inquiry
as
BaseInquiry
,
Reversal
,
Reversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
AvailableInvoice
as
BaseAvailableInvoice
,
AvailableInvoiceTangsel
as
BaseAvailableInvoiceTangsel
,
AvailableInvoiceTangsel
as
BaseAvailableInvoiceTangsel
,
)
)
from
..models.tangsel
import
PembayaranSppt
AWAL_DISC
=
date
(
2023
,
8
,
1
)
AKHIR_DISC
=
date
(
2023
,
8
,
31
)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
def
get_payment_model
(
self
):
# Override
return
PembayaranSppt
def
hitung_discount
(
self
):
# Override
def
hitung_discount
(
self
):
# Override
self
.
denda_sblm_diskon
=
self
.
denda
self
.
discount
=
self
.
discount_pokok
=
self
.
discount_denda
=
0
self
.
discount_denda
=
self
.
discount_pokok
=
0
if
self
.
tgl_bayar
>
AKHIR_DISC
:
return
if
self
.
tgl_bayar
<
AWAL_DISC
:
return
self
.
discount_pokok
=
self
.
hitung_discount_pokok
()
self
.
discount_denda
=
self
.
hitung_discount_denda
()
self
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
def
hitung_discount_pokok
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<=
'2014'
:
return
int
(
0.5
*
self
.
tagihan
)
return
0
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<=
'2022'
:
return
self
.
denda
return
0
class
AvailableInvoice
(
BaseAvailableInvoice
):
class
AvailableInvoice
(
BaseAvailableInvoice
):
...
...
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