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 36497e75
authored
Sep 01, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount pokok Kota Cimahi
1 parent
cad610e1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
5 deletions
CHANGES.txt
pyproject.toml
sismiop/scripts/available_invoice.py
sismiop/scripts/inquiry.py
sismiop/services/base.py
sismiop/services/cimahi.py
CHANGES.txt
View file @
36497e7
0.4.3 2026-09-01
----------------
- Discount pokok Kota Cimahi
0.4.2 2026-08-31
----------------
- Discount denda Kota Bogor
...
...
pyproject.toml
View file @
36497e7
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'sismiop-models'
version
=
'
0.4.
2
'
version
=
'
0.4.
3
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/scripts/available_invoice.py
View file @
36497e7
...
...
@@ -15,6 +15,7 @@ def get_option(argv):
pars
.
add_argument
(
'--min-nominal'
,
type
=
int
)
pars
.
add_argument
(
'--max-nominal'
,
type
=
int
)
pars
.
add_argument
(
'--faktor-pengurang'
,
action
=
'store_true'
)
pars
.
add_argument
(
'--status-tagihan'
,
type
=
int
)
pars
.
add_argument
(
'--count'
,
type
=
int
,
default
=
default_count
,
help
=
help_count
)
return
pars
.
parse_args
(
argv
)
...
...
sismiop/scripts/inquiry.py
View file @
36497e7
...
...
@@ -83,6 +83,7 @@ def show_inquiry(inq):
show_rp
(
'Total Bayar Sebelumnya'
,
inq
.
total_bayar
)
show_rp
(
'Total Tagihan'
,
inq
.
total
)
show_field
(
inq
.
invoice
,
'status_pembayaran_sppt'
)
show_field
(
inq
.
invoice
,
'status_tagihan_sppt'
)
show_field
(
inq
.
invoice
,
'pbb_yg_harus_dibayar_sppt'
)
show_field
(
inq
.
invoice
,
'pbb_terhutang_sppt'
)
show_field
(
inq
.
invoice
,
'faktor_pengurang_sppt'
)
...
...
sismiop/services/base.py
View file @
36497e7
...
...
@@ -401,6 +401,9 @@ class AvailableInvoice(Query):
self
.
option
.
max_nominal
)
if
self
.
option
.
faktor_pengurang
:
q
=
q
.
filter
(
Invoice
.
faktor_pengurang_sppt
>
0
)
if
self
.
option
.
status_tagihan
is
not
None
:
q
=
q
.
filter
(
Invoice
.
status_tagihan_sppt
==
self
.
option
.
status_tagihan
)
return
q
def
show
(
self
):
...
...
sismiop/services/cimahi.py
View file @
36497e7
...
...
@@ -6,16 +6,32 @@ from .sumedang import (
)
AWAL_DISC
=
date
(
2026
,
8
,
1
)
AKHIR_DISC
=
date
(
2026
,
9
,
30
)
AWAL_DISC_DENDA
=
date
(
2026
,
8
,
1
)
AKHIR_DISC_DENDA
=
date
(
2026
,
9
,
30
)
AWAL_DISC_POKOK
=
date
(
2026
,
9
,
1
)
AKHIR_DISC_POKOK
=
date
(
2026
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
def
hitung_discount
(
self
):
# Override
self
.
discount_pokok
=
self
.
discount_denda
=
0
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
:
self
.
hitung_discount_pokok
()
self
.
hitung_discount_denda
()
self
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
def
hitung_discount_pokok
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
!=
'2026'
:
return
if
self
.
invoice
.
status_tagihan_sppt
in
(
'5'
,
'6'
,
'7'
,
'9'
):
return
if
AWAL_DISC_POKOK
<=
self
.
tgl_bayar
<=
AKHIR_DISC_POKOK
:
self
.
discount_pokok
=
int
(
0.05
*
self
.
tagihan
)
def
hitung_discount_denda
(
self
):
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
if
'2013'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2025'
:
self
.
discount_denda
=
self
.
d
iscount
=
self
.
d
enda
self
.
discount_denda
=
self
.
denda
def
before_save
(
self
,
pay
):
# Override
pay
.
denda_sppt
=
self
.
denda
-
self
.
discount_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