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 2bbc05c6
authored
Aug 04, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kabupaten Subang
1 parent
b2165eaa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
12 deletions
CHANGES.txt
sismiop/models/subang.py
sismiop/services/subang.py
sismiop/services/tangsel.py
CHANGES.txt
View file @
2bbc05c
0.1.39 2022-8-4
---------------
- Rumus discount denda Kabupaten Subang
0.1.38 2022-7-30
----------------
- Rumus discount pokok dan denda Kota Tangerang Selatan
...
...
sismiop/models/subang.py
View file @
2bbc05c
from
sqlalchemy
import
(
Column
,
Float
,
Integer
,
)
from
.default
import
PembayaranSppt
as
BasePembayaranSppt
class
PembayaranSppt
(
BasePembayaranSppt
):
__table_args__
=
dict
(
extend_existing
=
True
)
posted
=
Column
(
Integer
)
denda_sblm_diskon
=
Column
(
Float
)
discount_pokok
=
Column
(
Float
)
discount_denda
=
Column
(
Float
)
sismiop/services/subang.py
View file @
2bbc05c
# Keputusan Bupati Subang
# NOMOR : KU.03.02/Kep.172 - BAPENDA/2021
# 1. Tanggal bayar April - Juni 2021
# 2. Tahun pajak hingga 2020
# 3. Discount denda 100%
# Keputusan Bupati Subang, 3 Agustus 2022
from
datetime
import
date
from
..models.subang
import
PembayaranSppt
...
...
@@ -13,7 +9,7 @@ from .default import (
)
AKHIR_DISC
=
date
(
202
1
,
6
,
30
)
AKHIR_DISC
=
date
(
202
2
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
...
...
@@ -23,13 +19,16 @@ class Inquiry(BaseInquiry):
def
hitung_discount
(
self
):
# Override
if
self
.
tgl_bayar
>
AKHIR_DISC
:
return
if
self
.
invoice
.
thn_pajak_sppt
>
'202
0
'
:
if
self
.
invoice
.
thn_pajak_sppt
>
'202
1
'
:
return
self
.
discount
=
self
.
denda
def
before_save
(
self
,
payment
):
# Override
payment
.
denda_sppt
=
self
.
denda
-
self
.
discount
payment
.
denda_sblm_diskon
=
self
.
denda
payment
.
discount_pokok
=
0
payment
.
discount_denda
=
self
.
discount
payment
.
posted
=
0
class
Reversal
(
BaseReversal
):
...
...
@@ -38,6 +37,8 @@ class Reversal(BaseReversal):
def
before_save
(
self
):
# Override
self
.
payment
.
denda_sblm_diskon
=
0
self
.
payment
.
discount_pokok
=
0
self
.
payment
.
discount_denda
=
0
class
AvailableInvoice
(
BaseAvailableInvoice
):
...
...
sismiop/services/tangsel.py
View file @
2bbc05c
...
...
@@ -23,7 +23,7 @@ from ..models.tangsel import PembayaranSppt
AWAL_DISC
=
date
(
2022
,
8
,
1
)
AKHIR_DISC
=
date
(
2022
,
12
,
31
)
AKHIR_DISC
=
date
(
2022
,
12
,
31
)
class
Inquiry
(
BaseInquiry
):
...
...
@@ -70,7 +70,7 @@ class Inquiry(BaseInquiry):
if
faktor_pengurang
>
0
:
return
0
if
self
.
invoice
.
thn_pajak_sppt
>=
'2014'
and
\
self
.
invoice
.
thn_pajak_sppt
<=
'2021'
:
self
.
invoice
.
thn_pajak_sppt
<=
'2021'
:
disc
=
0.3
elif
self
.
invoice
.
thn_pajak_sppt
<
'2014'
:
disc
=
0.75
...
...
@@ -80,9 +80,7 @@ class Inquiry(BaseInquiry):
def
hitung_discount
(
self
):
# Override
self
.
discount_pokok
=
self
.
discount_denda
=
0
tgl_bayar
=
isinstance
(
self
.
tgl_bayar
,
datetime
)
and
\
self
.
tgl_bayar
.
date
()
or
self
.
tgl_bayar
if
tgl_bayar
<
AWAL_DISC
or
tgl_bayar
>
AKHIR_DISC
:
if
self
.
tgl_bayar
<
AWAL_DISC
or
self
.
tgl_bayar
>
AKHIR_DISC
:
return
if
self
.
tahun_2022_belum_lunas
():
return
...
...
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