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 c9ec8726
authored
Jan 07, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Jatuh tempo 2024 ke atas dendanya 1%
1 parent
45d884ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
CHANGES.txt
opensipkd/pad/services/default.py
opensipkd/pad/services/tangsel.py
CHANGES.txt
View file @
c9ec872
0.5.1 2024-01-07
----------------
- Jatuh tempo 2024 ke atas dendanya 1%, tidak lagi berdasarkan field masadari
atau tanggal kohir, kecuali Kota Tangerang Selatan.
0.5 2024-01-03
0.5 2024-01-03
--------------
--------------
- Tahun Terbit 2024 ke atas dendanya 1%
- Tahun Terbit 2024 ke atas dendanya 1%
...
...
opensipkd/pad/services/default.py
View file @
c9ec872
...
@@ -59,11 +59,6 @@ class BaseInquiry:
...
@@ -59,11 +59,6 @@ class BaseInquiry:
self
.
invoice
=
self
.
get_invoice
()
self
.
invoice
=
self
.
get_invoice
()
if
not
self
.
invoice
:
if
not
self
.
invoice
:
return
return
tgl_kohir
=
self
.
get_tgl_kohir
()
if
tgl_kohir
:
self
.
tahun_terbit
=
tgl_kohir
.
year
else
:
self
.
tahun_terbit
=
self
.
invoice
.
masadari
.
year
if
not
self
.
is_available
():
if
not
self
.
is_available
():
self
.
invoice
=
None
self
.
invoice
=
None
...
@@ -323,7 +318,8 @@ class Inquiry(BaseInquiry):
...
@@ -323,7 +318,8 @@ class Inquiry(BaseInquiry):
self
.
denda
-=
self
.
discount_denda
self
.
denda
-=
self
.
discount_denda
def
hitung_denda_waktu
(
self
):
def
hitung_denda_waktu
(
self
):
if
self
.
tahun_terbit
>
2023
:
tahun_terbit
=
self
.
get_jatuh_tempo
()
.
year
if
tahun_terbit
>
2023
:
persen_denda
=
1
persen_denda
=
1
else
:
else
:
persen_denda
=
self
.
conf
[
'persen_denda'
]
persen_denda
=
self
.
conf
[
'persen_denda'
]
...
...
opensipkd/pad/services/tangsel.py
View file @
c9ec872
...
@@ -71,6 +71,20 @@ class Inquiry(BaseInquiry):
...
@@ -71,6 +71,20 @@ class Inquiry(BaseInquiry):
return
self
.
denda
return
self
.
denda
return
0
return
0
def
hitung_denda_waktu
(
self
):
# Override
tgl_kohir
=
self
.
get_tgl_kohir
()
if
tgl_kohir
:
tahun_terbit
=
tgl_kohir
.
year
else
:
tahun_terbit
=
self
.
invoice
.
masadari
.
year
if
tahun_terbit
>
2023
:
persen_denda
=
1
else
:
persen_denda
=
self
.
conf
[
'persen_denda'
]
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
before_save
(
self
,
pay
):
# Override
def
before_save
(
self
,
pay
):
# Override
pay
.
discount_denda
=
self
.
discount_denda
pay
.
discount_denda
=
self
.
discount_denda
if
self
.
notes
:
if
self
.
notes
:
...
...
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