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 db40777a
authored
May 03, 2021
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah Kabupaten Tangerang
1 parent
886ddf66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
CHANGES.txt
opensipkd/pad/services/tangerang_kab.py
CHANGES.txt
View file @
db40777
0.3.4 2021-05-03
----------------
- Tambah Kabupaten Tangerang
0.3.3 2021-04-29
0.3.3 2021-04-29
----------------
----------------
- Tambah Kabupaten Kuningan
- Tambah Kabupaten Kuningan
...
...
opensipkd/pad/services/tangerang_kab.py
0 → 100644
View file @
db40777
from
datetime
import
date
from
.default
import
(
Inquiry
as
BaseInquiry
,
Reversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
def
dmy
(
tgl
):
return
tgl
.
strftime
(
'
%
d-
%
m-
%
Y'
)
AKHIR_TGL_BAYAR
=
date
(
2021
,
6
,
30
)
NOTE_TGL_BAYAR
=
'Tanggal bayar {tgl} <= '
+
dmy
(
AKHIR_TGL_BAYAR
)
class
Inquiry
(
BaseInquiry
):
def
get_discount_denda
(
self
):
# Override
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
tgl_bayar
>
AKHIR_TGL_BAYAR
:
return
0
notes
=
[
NOTE_TGL_BAYAR
.
format
(
tgl
=
dmy
(
tgl_bayar
))]
return
self
.
denda
class
AvailableInvoice
(
BaseAvailableInvoice
):
def
get_inquiry_class
(
self
):
# Override
return
Inquiry
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