Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-pad-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 8b1a6147
authored
Oct 31, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kabupaten Sukabumi
1 parent
0b592218
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
CHANGES.txt
opensipkd/pad/services/sukabumi_kab.py
pyproject.toml
CHANGES.txt
View file @
8b1a614
0.5.16 2024-10-31
-----------------
- Discount denda Kota Serang
- Discount denda Kabupaten Sukabumi
0.5.15 2024-09-23
-----------------
- Discount denda Kabupaten Subang
...
...
opensipkd/pad/services/sukabumi_kab.py
View file @
8b1a614
...
...
@@ -17,8 +17,8 @@ INVOICE_ID = [
(
'SptNo'
,
5
,
'N'
),
]
AWAL_DISC
=
date
(
2024
,
8
,
1
)
AKHIR_DISC
=
date
(
2024
,
9
,
30
)
AWAL_DISC
=
date
(
2024
,
11
,
1
)
AKHIR_DISC
=
date
(
2024
,
12
,
23
)
AWAL_MASA
=
date
(
2022
,
1
,
1
)
AKHIR_MASA
=
date
(
2024
,
9
,
30
)
...
...
@@ -42,14 +42,19 @@ class Inquiry(BaseInquiry):
Invoice
.
status_pembayaran
!=
1
)
return
q
.
first
()
def
get_persen_denda
(
self
):
if
self
.
invoice
.
masadari
.
year
>=
2024
:
return
1
return
2
def
hitung_denda
(
self
):
# Override
self
.
bln_tunggakan
=
None
self
.
denda
=
0
if
self
.
invoice
.
jatuhtempotgl
:
if
self
.
invoice
.
status_pembayaran
==
0
:
persen_denda
=
self
.
get_persen_denda
()
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
self
.
conf
[
'persen_denda'
],
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
# Bulan Tunggakan maksimal 15 bulan
# Pak Yuyus - Eko 28 Agustus 2017
...
...
pyproject.toml
View file @
8b1a614
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'opensipkd-pad-models'
version
=
'
0.5.1
5
'
version
=
'
0.5.1
6
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
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