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 4801e774
authored
Apr 06, 2021
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Maksimum denda 0,48 dari tagihan pokok hanya untuk denda waktu, bunga tidak disertakan
1 parent
a48e6371
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
CHANGES.txt
opensipkd/pad/services/default.py
CHANGES.txt
View file @
4801e77
0.3.2 2021-04-06
----------------
- Maksimum denda 0,48 dari tagihan pokok hanya untuk denda waktu.
0.3.1 2021-03-17
0.3.1 2021-03-17
----------------
----------------
- Bila dokumen berjenis STPD maka tidak perlu lagi menghitung denda.
- Bila dokumen berjenis STPD maka tidak perlu lagi menghitung denda.
...
...
opensipkd/pad/services/default.py
View file @
4801e77
...
@@ -43,10 +43,6 @@ INVOICE_ID = [
...
@@ -43,10 +43,6 @@ INVOICE_ID = [
]
]
MAX_PORSI_DENDA
=
0.48
NOTE_MAX_DENDA
=
'maksimum denda waktu = 0,48 x tagihan pokok {pokok} = {maks}'
class
BaseInquiry
:
class
BaseInquiry
:
invoice_id_structure
=
INVOICE_ID
invoice_id_structure
=
INVOICE_ID
...
@@ -296,12 +292,6 @@ class Inquiry(BaseInquiry):
...
@@ -296,12 +292,6 @@ class Inquiry(BaseInquiry):
self
.
tgl_bayar
.
date
())
self
.
tgl_bayar
.
date
())
self
.
denda
=
self
.
denda_waktu
+
self
.
invoice
.
bunga
self
.
denda
=
self
.
denda_waktu
+
self
.
invoice
.
bunga
self
.
denda
=
round_up
(
self
.
denda
)
self
.
denda
=
round_up
(
self
.
denda
)
max_denda
=
MAX_PORSI_DENDA
*
self
.
tagihan
max_denda
=
round_up
(
max_denda
)
if
self
.
denda
>
max_denda
:
self
.
denda
=
max_denda
s
=
NOTE_MAX_DENDA
.
format
(
pokok
=
self
.
tagihan
,
maks
=
max_denda
)
self
.
notes
.
append
(
s
)
self
.
discount_denda
=
self
.
get_discount_denda
()
self
.
discount_denda
=
self
.
get_discount_denda
()
self
.
denda
-=
self
.
discount_denda
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