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 846cf6a6
authored
Jan 16, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount Kota Tangerang
1 parent
0ccddab7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
CHANGES.txt
sismiop/services/tangkota.py
CHANGES.txt
View file @
846cf6a
0.1.48 2022-01-16
-----------------
- Discount Kota Tangerang
0.1.47 2022-12-30
-----------------
- Discount 2023 untuk Tangerang Selatan
...
...
sismiop/services/tangkota.py
View file @
846cf6a
...
...
@@ -8,8 +8,8 @@ from .tangsel import (
from
..models.tangsel
import
PembayaranSppt
AWAL_DISC
=
date
(
202
2
,
8
,
17
)
AKHIR_DISC
=
date
(
202
2
,
8
,
31
)
AWAL_DISC
=
date
(
202
3
,
1
,
16
)
AKHIR_DISC
=
date
(
202
3
,
3
,
31
)
class
Inquiry
(
BaseInquiry
):
...
...
@@ -28,13 +28,23 @@ class Inquiry(BaseInquiry):
self
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
def
hitung_discount_pokok
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
>
'2014'
:
return
0
return
int
(
0.77
*
self
.
tagihan
)
potongan
=
0
if
'1994'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2014'
:
potongan
=
0.7
elif
self
.
invoice
.
thn_pajak_sppt
==
'2023'
:
if
100000
<=
self
.
tagihan
<=
500000
:
potongan
=
0.1
elif
500000
<
self
.
tagihan
<=
2000000
:
potongan
=
0.06
elif
2000000
<
self
.
tagihan
<=
5000000
:
potongan
=
0.04
elif
self
.
tagihan
>
5000000
:
potongan
=
0.03
if
potongan
:
return
int
(
potongan
*
self
.
tagihan
)
return
0
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
>
'2021'
:
return
0
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