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 5ef55738
authored
Jan 07, 2024
by
iwan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kabupaten Kuningan nilai pokok tidak perlu dikurangi discount pembayaran sebelumnya
1 parent
60fb9e8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
sismiop/services/kuningan.py
sismiop/services/kuningan.py
View file @
5ef5573
...
...
@@ -15,6 +15,26 @@ class Inquiry(BaseInquiry):
def
get_payment_model
(
self
):
# Override
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'
),
func
.
sum
(
Payment
.
discount
)
.
label
(
'discount'
))
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_denda
(
self
):
if
self
.
denda
>
0
and
self
.
tgl_bayar
<=
AKHIR_DISC
and
\
self
.
invoice
.
thn_pajak_sppt
in
DISC_THN_PAJAK
:
...
...
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