Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 171b504a
authored
Aug 12, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan pelayanan
1 parent
91dd97fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
99 deletions
CHANGES.txt
opensipkd/tools/pbb.py
pyproject.toml
setup.py
CHANGES.txt
View file @
171b504
0.0.3 03-06-2025
Perubahan Project File
0.0.2 07-03-2023
Penambahan Folder data locale
0.0.1 20-09-2021
...
...
opensipkd/tools/pbb.py
View file @
171b504
...
...
@@ -63,9 +63,11 @@ NOPEL.extend([('tahun', 4, 'N'),
NOPELDET
=
list
(
NOPEL
)
NOPELDET
.
extend
(
list
(
NOP
))
AGENDA
=
[(
'thn_agenda_kirim'
,
4
,
'N'
),
(
'kd_seksi'
,
2
,
'N'
),
(
'no_agenda_kirim'
,
4
,
'N'
)]
AGENDA
=
[
(
'kd_seksi'
,
2
,
'N'
),
(
'thn_agenda_kirim'
,
4
,
'N'
),
(
'no_agenda_kirim'
,
4
,
'N'
)
]
BERKAS
=
list
(
NOPELDET
)
BERKAS
.
extend
(
list
(
AGENDA
))
...
...
@@ -239,6 +241,7 @@ def ensure_datetime(d):
return
d
return
datetime
(
d
.
year
,
d
.
month
,
d
.
day
)
def
hitung_bulan
(
jatuh_tempo
,
tanggal
=
None
,
max_denda
=
24
):
if
not
tanggal
:
tanggal
=
datetime
.
now
()
.
date
()
...
...
@@ -258,7 +261,8 @@ def hitung_bulan(jatuh_tempo, tanggal=None, max_denda=24):
if
bln_tunggakan
>
max_denda
:
bln_tunggakan
=
max_denda
return
bln_tunggakan
def
hitung_denda
(
piutang_pokok
,
jatuh_tempo
,
tanggal
=
None
,
max_denda
=
24
,
persen_denda
=
2
):
# jatuh_tempo = jatuh_tempo.date()
bln_tunggakan
=
hitung_bulan
(
jatuh_tempo
,
tanggal
,
max_denda
)
...
...
@@ -282,28 +286,31 @@ def nop_to_id(row):
row
.
kd_kelurahan
,
row
.
kd_blok
,
row
.
no_urut
,
row
.
kd_jns_op
)
def
query_nop
(
table
):
return
func
.
concat
(
table
.
kd_propinsi
,
func
.
concat
(
'.'
,
func
.
concat
(
table
.
kd_dati2
,
func
.
concat
(
'-'
,
func
.
concat
(
table
.
kd_kecamatan
,
func
.
concat
(
'.'
,
func
.
concat
(
table
.
kd_kelurahan
,
func
.
concat
(
'-'
,
func
.
concat
(
table
.
kd_blok
,
func
.
concat
(
'.'
,
func
.
concat
(
table
.
no_urut
,
func
.
concat
(
'-'
,
table
.
kd_jns_op
))))))))))))
func
.
concat
(
'.'
,
func
.
concat
(
table
.
kd_dati2
,
func
.
concat
(
'-'
,
func
.
concat
(
table
.
kd_kecamatan
,
func
.
concat
(
'.'
,
func
.
concat
(
table
.
kd_kelurahan
,
func
.
concat
(
'-'
,
func
.
concat
(
table
.
kd_blok
,
func
.
concat
(
'.'
,
func
.
concat
(
table
.
no_urut
,
func
.
concat
(
'-'
,
table
.
kd_jns_op
))))))))))))
# JEnis REstitusi Kompensasi
...
...
@@ -324,7 +331,7 @@ SUMBER_ID = (
(
1
,
'PBB'
),
)
# def daftar_tp():
# def daftar_tp():
# return pbbDBSession.query(TempatPembayaran.kd_tp,TempatPembayaran.nm_tp).\
# order_by(TempatPembayaran.kd_tp).all()
...
...
pyproject.toml
0 → 100644
View file @
171b504
[build-system]
requires
=
[
'setuptools
>=
61.0.0
'
,
'wheel'
]
build-backend
=
'setuptools.build_meta'
[tool.setuptools]
packages
=
["opensipkd.tools"]
[tools.setuptools.packages.find]
include
=
["opensipkd.*"]
[tool.mypy]
exclude
=
[]
show_error_codes
=
true
#[[tool.mypy.overrides]]
#module = [
# "opensipkd.pbb.monitoring.*",
#]
[project]
name
=
"opensipkd-tools"
version
=
"0.0.3"
dependencies
=
[
"wheel"
,
"setuptools"
,
"pip"
,
"WebOb"
,
"certifi"
,
"pyramid"
,
"pyramid_rpc"
,
"venusian"
,
"translationstring"
,
"plaster"
,
"hupper"
,
"urllib3"
,
"idna"
,
"pytz"
,
"requests"
,
"pyreportjasper"
,
#"z3c.rml",
# "pikepdf",
"qrcode"
,
"papyrus"
,
"fdf"
,
"pypdf"
]
requires-python
=
">=3.8"
authors
=
[
{
name
=
"Agus Gustiana"
,
email
=
"aa.gustiana@gmail.com"
}
,
{
email
=
"opensipkd@gmail.com"
}
,]
maintainers
=
[
{
name
=
"Ari"
,
email
=
"ariagungprasetiyo@gmail.com"
}
]
description
=
"PBB Monitoring Kabupaten/Kota"
readme
=
"README.rst"
license
=
{
file
=
"LICENSE"
}
keywords
=
[
"pjdl"
,
"pajak daerah"
,
"pendapatan"
,
"egov"
,
"pendapatan daerah"
]
classifiers
=
[
"Development Status :: 4 - Beta"
,
"Programming Language :: Python"
]
[project.optional-dependencies]
dev
=
[
'pyramid_debugtoolbar'
,
'pytest'
,]
[project.urls]
Homepage
=
"https://demo.opensipkd.com/pjdl"
#Documentation = "https://readthedocs.org"
Repository
=
"https://git.opensipkd.com/aa.gusti/pbb-monitoring"
"Bug
Tracker"
=
"https://git.opensipkd.com/aa.gusti/pbb-monitoring/issues"
Changelog
=
"https://git.opensipkd.com/aa.gusti/pjdl-apps/blob/master/CHANGELOG.md"
# [project.scripts]
# initialize_pbb_monitoring_db = "opensipkd.pbb.monitoring.scripts.initializedb:main"
\ No newline at end of file
setup.py
deleted
100644 → 0
View file @
91dd97f
import
os
from
setuptools
import
setup
,
find_packages
here
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
with
open
(
os
.
path
.
join
(
here
,
'README.rst'
))
as
f
:
README
=
f
.
read
()
with
open
(
os
.
path
.
join
(
here
,
'CHANGES.txt'
))
as
f
:
CHANGES
=
f
.
read
()
line
=
CHANGES
.
splitlines
()[
0
]
version
=
line
.
split
()[
0
]
requires
=
[
"wheel"
,
"setuptools"
,
"pip"
,
"WebOb"
,
"certifi"
,
"pyramid"
,
"pyramid_rpc"
,
"venusian"
,
"translationstring"
,
"plaster"
,
"hupper"
,
"urllib3"
,
"idna"
,
"pytz"
,
"requests"
,
"pyreportjasper"
,
#"z3c.rml",
# "pikepdf",
"qrcode"
,
"papyrus"
,
"fdf"
,
"pypdf"
]
dev_requires
=
[
'pyramid_debugtoolbar'
,
'pytest'
,
]
setup
(
name
=
'opensipkd-tools'
,
version
=
version
,
description
=
'Tools openSIPKD'
,
long_description
=
README
+
'
\n\n
'
+
CHANGES
,
author
=
'Agus Gustiana'
,
author_email
=
'aa.gustiana@gmail.com'
,
classifiers
=
[
"Programming Language :: Python"
,
"Framework :: Pylons"
,
"Topic :: Internet :: WWW/HTTP"
,
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application"
,
],
license
=
'Apache Software License'
,
keywords
=
'web pyramid pylons base'
,
packages
=
find_packages
(),
zip_safe
=
False
,
install_requires
=
requires
,
tests_require
=
requires
,
extras_require
=
{
'dev'
:
dev_requires
,
},
package_data
=
{
'opensipkd.tools'
:
[
'locale/*'
,
'locale/id/*'
,
'locale/id/LC_MESSAGE/*'
,
]},
data_files
=
[],
include_package_data
=
True
,
entry_points
=
"""
\
[console_scripts]
"""
,
)
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