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 f622dda9
authored
Jul 10, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed Kabupaten Bekasi
1 parent
19648caa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
opensipkd/pad/services/bekasi_kab.py
opensipkd/pad/services/bekasi_kab.py
View file @
f622dda
...
...
@@ -68,15 +68,16 @@ INVOICE_ID = [
]
AWAL_MASA
=
date
(
2020
,
3
,
1
)
AKHIR_MASA
=
date
(
202
0
,
12
,
31
)
AKHIR_MASA
=
date
(
202
1
,
12
,
31
)
AWAL_TERIMA
=
date
(
2020
,
4
,
1
)
AKHIR_TGL_BAYAR
=
date
(
2021
,
3
,
31
)
AKHIR_TERIMA
=
date
(
2021
,
12
,
31
)
AKHIR_TGL_BAYAR
=
date
(
2022
,
4
,
30
)
NOTE_REK
=
'Rekening {rek} tidak dikenai denda'
NOTE_TGL_BAYAR
=
'Tanggal bayar {tgl} <= '
+
dmy
(
AKHIR_TGL_BAYAR
)
NOTE_AWAL_MASA
=
'field masadari {tgl} >= '
+
dmy
(
AWAL_MASA
)
NOTE_AKHIR_MASA
=
'field masadari {tgl} <= '
+
dmy
(
AKHIR_MASA
)
NOTE_TGL_TERIMA
=
'field terimatgl {tgl} >= '
+
dmy
(
A
WAL
_TERIMA
)
NOTE_TGL_TERIMA
=
'field terimatgl {tgl} >= '
+
dmy
(
A
KHIR
_TERIMA
)
class
Inquiry
(
BaseInquiry
):
...
...
@@ -113,23 +114,20 @@ class Inquiry(BaseInquiry):
notes
=
[
NOTE_TGL_BAYAR
.
format
(
tgl
=
dmy
(
tgl_bayar
)),
NOTE_AKHIR_MASA
.
format
(
tgl
=
dmy
(
tgl_masa
))]
if
tgl_masa
>=
AWAL_MASA
and
\
rek
in
self
.
conf
.
get
(
'rekening_tanpa_denda_mulai_maret_2020'
,
[]):
notes
.
append
(
NOTE_AWAL_MASA
.
format
(
tgl
=
dmy
(
tgl_masa
)))
notes
.
append
(
NOTE_REK
.
format
(
rek
=
rek
))
if
tgl_masa
<=
AKHIR_MASA
:
notes
.
append
(
NOTE_AKHIR_MASA
.
format
(
tgl
=
dmy
(
tgl_masa
)))
self
.
notes
=
notes
return
self
.
denda
tgl_terima
=
self
.
invoice
.
terimatgl
.
date
()
if
tgl_terima
>=
AWAL_TERIMA
and
\
rek
in
self
.
conf
.
get
(
'rekening_tanpa_denda_mulai_april_2020'
,
[]):
if
tgl_terima
<=
AKHIR_TERIMA
:
notes
.
append
(
NOTE_TGL_TERIMA
.
format
(
tgl
=
tgl_terima
))
notes
.
append
(
NOTE_REK
.
format
(
rek
=
rek
))
self
.
notes
=
notes
return
self
.
denda
return
0
def
get_kohir
(
self
):
# Override
return
class
Reversal
(
BaseReversal
):
invoice_id_structure
=
INVOICE_ID
...
...
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