Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
sismiop-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 7ef78661
authored
Sep 28, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed karena kini self.tgl_bayar bertipe date
1 parent
417bd66d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
10 deletions
CHANGES.txt
sismiop/services/bekasi_kab/__init__.py
sismiop/services/cilegon/__init__.py
sismiop/services/tangkota/__init__.py
sismiop/services/tangsel/__init__.py
CHANGES.txt
View file @
7ef7866
0.1.11 2020-09-2
4
0.1.11 2020-09-2
8
-----------------
-----------------
- Tambah modul bekasi_kab
- Tambah modul bekasi_kab
- Field tgl_pembayaran_sppt tidak lagi memuat jam. Jam tetap ada di field
- Field tgl_pembayaran_sppt tidak lagi memuat jam. Jam tetap ada di field
...
...
sismiop/services/bekasi_kab/__init__.py
View file @
7ef7866
...
@@ -12,8 +12,7 @@ AKHIR_DISC = date(2020, 10, 30)
...
@@ -12,8 +12,7 @@ AKHIR_DISC = date(2020, 10, 30)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
def
hitung_discount_denda
(
self
):
# Override
def
hitung_discount_denda
(
self
):
# Override
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
self
.
denda
<
1
or
self
.
tgl_bayar
<
AWAL_DISC
or
\
if
self
.
denda
<
1
or
tgl_bayar
<
AWAL_DISC
or
\
self
.
tgl_bayar
>
AKHIR_DISC
or
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
tgl_bayar
>
AKHIR_DISC
or
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
return
0
return
0
return
self
.
denda
return
self
.
denda
sismiop/services/cilegon/__init__.py
View file @
7ef7866
...
@@ -15,8 +15,7 @@ AKHIR_DISC = date(2020, 11, 30)
...
@@ -15,8 +15,7 @@ AKHIR_DISC = date(2020, 11, 30)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
self
.
tgl_bayar
<
AWAL_DISC
or
self
.
tgl_bayar
>
AKHIR_DISC
or
\
if
tgl_bayar
<
AWAL_DISC
or
tgl_bayar
>
AKHIR_DISC
or
\
self
.
invoice
.
thn_pajak_sppt
<
'1990'
or
\
self
.
invoice
.
thn_pajak_sppt
<
'1990'
or
\
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
return
0
return
0
...
...
sismiop/services/tangkota/__init__.py
View file @
7ef7866
...
@@ -49,7 +49,7 @@ class Inquiry(BaseInquiry):
...
@@ -49,7 +49,7 @@ class Inquiry(BaseInquiry):
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
self
.
denda_sblm_diskon
=
self
.
denda
self
.
denda_sblm_diskon
=
self
.
denda
if
self
.
tgl_bayar
.
date
()
>
AKHIR_DISC_DENDA
:
if
self
.
tgl_bayar
>
AKHIR_DISC_DENDA
:
return
0
return
0
return
self
.
denda
return
self
.
denda
...
...
sismiop/services/tangsel/__init__.py
View file @
7ef7866
...
@@ -84,9 +84,9 @@ class Inquiry(BaseInquiry):
...
@@ -84,9 +84,9 @@ class Inquiry(BaseInquiry):
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
self
.
denda_sblm_diskon
=
self
.
denda
self
.
denda_sblm_diskon
=
self
.
denda
if
self
.
tgl_bayar
.
date
()
>
AKHIR_DISC_DENDA
:
if
self
.
tgl_bayar
>
AKHIR_DISC_DENDA
:
return
0
return
0
if
self
.
tgl_bayar
.
date
()
<
SATU_SEPTEMBER
:
if
self
.
tgl_bayar
<
SATU_SEPTEMBER
:
return
self
.
hitung_discount_denda_sebelum_september
()
return
self
.
hitung_discount_denda_sebelum_september
()
return
self
.
hitung_discount_denda_sk_34_2020
()
return
self
.
hitung_discount_denda_sk_34_2020
()
...
@@ -111,7 +111,7 @@ class Inquiry(BaseInquiry):
...
@@ -111,7 +111,7 @@ class Inquiry(BaseInquiry):
faktor_pengurang
=
self
.
invoice
.
faktor_pengurang_sppt
or
0
faktor_pengurang
=
self
.
invoice
.
faktor_pengurang_sppt
or
0
if
faktor_pengurang
>
0
:
if
faktor_pengurang
>
0
:
return
0
return
0
if
self
.
tgl_bayar
.
date
()
<
SATU_SEPTEMBER
:
if
self
.
tgl_bayar
<
SATU_SEPTEMBER
:
return
self
.
hitung_discount_pokok_sebelum_september
()
return
self
.
hitung_discount_pokok_sebelum_september
()
return
self
.
hitung_discount_pokok_sk_34_2020
()
return
self
.
hitung_discount_pokok_sk_34_2020
()
...
...
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