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 a9eea102
authored
Sep 17, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Rumus discount denda Majalengka
1 parent
21a00cd5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
CHANGES.txt
sismiop/services/cirebon_kab.py
sismiop/services/majalengka.py
CHANGES.txt
View file @
a9eea10
0.1.43 2022-9-17
----------------
- Rumus discount denda Majalengka
- Rumus tagihan pokok Kabupaten Cirebon
0.1.42 2022-8-18
0.1.42 2022-8-18
----------------
----------------
- Rumus discount Kota Tasik
- Rumus discount Kota Tasik
...
...
sismiop/services/cirebon_kab.py
View file @
a9eea10
...
@@ -31,6 +31,24 @@ class Inquiry(BaseInquiry):
...
@@ -31,6 +31,24 @@ class Inquiry(BaseInquiry):
def
get_payment_model
(
self
):
# Override
def
get_payment_model
(
self
):
# Override
return
PembayaranSppt
return
PembayaranSppt
def
hitung_pokok
(
self
):
# Override
Payment
=
self
.
get_payment_model
()
q
=
DBSession
.
query
(
func
.
sum
(
Payment
.
jml_sppt_yg_dibayar
)
.
label
(
'jml_sppt_yg_dibayar'
),
func
.
sum
(
Payment
.
denda_sppt
)
.
label
(
'denda_sppt'
))
q
=
self
.
get_filter
(
q
)
bayar
=
q
.
first
()
self
.
total_bayar
=
bayar
.
jml_sppt_yg_dibayar
or
0
denda_lalu
=
bayar
.
denda_sppt
or
0
sisa
=
float
(
self
.
total_bayar
-
denda_lalu
)
tagihan
=
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
-
sisa
if
tagihan
<
0
:
self
.
tagihan
=
0
else
:
self
.
tagihan
=
round_up
(
tagihan
)
def
hitung_discount
(
self
):
# Override
def
hitung_discount
(
self
):
# Override
self
.
discount_pokok
=
self
.
discount_denda
=
0
self
.
discount_pokok
=
self
.
discount_denda
=
0
if
self
.
invoice
.
thn_pajak_sppt
>=
'2009'
\
if
self
.
invoice
.
thn_pajak_sppt
>=
'2009'
\
...
...
sismiop/services/majalengka.py
View file @
a9eea10
...
@@ -6,13 +6,13 @@ from .cilegon import (
...
@@ -6,13 +6,13 @@ from .cilegon import (
)
)
AKHIR_DISC
=
date
(
202
0
,
12
,
31
)
AKHIR_DISC
=
date
(
202
2
,
12
,
31
)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
if
self
.
tgl_bayar
>
AKHIR_DISC
or
\
if
self
.
tgl_bayar
>
AKHIR_DISC
or
\
self
.
invoice
.
thn_pajak_sppt
<
'2012'
or
\
self
.
invoice
.
thn_pajak_sppt
<
'2012'
or
\
self
.
invoice
.
thn_pajak_sppt
>
'20
19
'
:
self
.
invoice
.
thn_pajak_sppt
>
'20
22
'
:
return
0
return
0
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