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 a97a0929
authored
Apr 14, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kota Subang tidak lagi melibatkan discount sebelumnya saat menghitung tagihan pokok
1 parent
6a6b91e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
CHANGES.txt
sismiop/services/subang.py
CHANGES.txt
View file @
a97a092
0.2.1 2023-04-14
0.2.1 2023-04-14
----------------
----------------
- Bug fixed total bayar negatif
- Bug fixed total bayar negatif
- Kota Subang tidak lagi melibatkan discount sebelumnya saat menghitung tagihan
pokok (referensi Gilang).
0.2.0 2023-03-22
0.2.0 2023-03-22
----------------
----------------
...
...
sismiop/services/subang.py
View file @
a97a092
# Keputusan Bupati Subang, 3 Agustus 2022
# Keputusan Bupati Subang, 3 Agustus 2022
from
datetime
import
date
from
datetime
import
date
from
opensipkd.hitung
import
round_up
from
..models.subang
import
PembayaranSppt
from
..models.subang
import
PembayaranSppt
from
.default
import
(
from
.default
import
(
Inquiry
as
BaseInquiry
,
Inquiry
as
BaseInquiry
,
...
@@ -17,6 +18,21 @@ class Inquiry(BaseInquiry):
...
@@ -17,6 +18,21 @@ class Inquiry(BaseInquiry):
def
get_payment_model
(
self
):
# Override
def
get_payment_model
(
self
):
# Override
return
PembayaranSppt
return
PembayaranSppt
def
hitung_pokok
(
self
):
# Override
q
=
self
.
get_payment_sum
()
q
=
self
.
get_filter
(
q
)
bayar
=
q
.
first
()
self
.
total_bayar
=
bayar
.
jml_sppt_yg_dibayar
or
0
if
self
.
total_bayar
<
0
:
self
.
total_bayar
=
0
denda_lalu
=
bayar
.
denda_sppt
or
0
sisa
=
float
(
self
.
total_bayar
-
denda_lalu
)
tagihan
=
self
.
get_tagihan_pokok
()
-
sisa
if
tagihan
<
0
:
self
.
tagihan
=
0
else
:
self
.
tagihan
=
round_up
(
tagihan
)
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<
'2023'
:
if
self
.
invoice
.
thn_pajak_sppt
<
'2023'
:
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