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 122b28d3
authored
May 12, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed Kabupaten Bekasi
1 parent
c1022ad6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
sismiop/services/bekasi_kab.py
sismiop/services/bekasi_kab.py
View file @
122b28d
from
datetime
import
date
from
opensipkd.hitung
import
round_up
from
.default
import
(
Inquiry
as
BaseInquiry
,
Reversal
as
BaseReversal
,
...
...
@@ -28,6 +29,22 @@ class Inquiry(BaseInquiry):
return
2
return
1
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
discount_lalu
=
float
(
bayar
.
discount
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_pokok
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
==
'2024'
:
potongan
=
BULAN_DISC
.
get
(
self
.
tgl_bayar
.
month
,
0
)
...
...
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