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 6d921220
authored
Aug 07, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed Kota Bekasi
1 parent
0a978197
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
sismiop/services/bekasi_kota.py
sismiop/services/bekasi_kota.py
View file @
6d92122
...
@@ -7,6 +7,7 @@ from ..models.bekasi_kota import (
...
@@ -7,6 +7,7 @@ from ..models.bekasi_kota import (
Kecamatan
,
Kecamatan
,
Propinsi
,
Propinsi
,
)
)
from
.base
import
Query
from
.binjai
import
(
from
.binjai
import
(
AvailableInvoice
as
BaseAvailableInvoice
,
AvailableInvoice
as
BaseAvailableInvoice
,
Inquiry
as
BaseInquiry
,
Inquiry
as
BaseInquiry
,
...
@@ -25,19 +26,24 @@ class Inquiry(BaseInquiry):
...
@@ -25,19 +26,24 @@ class Inquiry(BaseInquiry):
self
.
tagihan
=
self
.
denda
=
self
.
discount
=
self
.
total
=
0
self
.
tagihan
=
self
.
denda
=
self
.
discount
=
self
.
total
=
0
def
hitung_discount
(
self
):
# Override
def
hitung_discount
(
self
):
# Override
discount_denda
=
discount_pokok
=
0
if
self
.
tgl_bayar
.
year
!=
2023
:
return
self
.
discount_denda
=
self
.
discount_pokok
=
0
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
discount_denda
=
self
.
denda
self
.
discount_denda
=
self
.
denda
if
self
.
tgl_bayar
.
year
==
2023
:
if
self
.
invoice
.
thn_pajak_sppt
==
'2023'
:
if
self
.
tgl_bayar
.
month
==
8
and
self
.
tgl_bayar
.
day
>=
7
:
if
self
.
tgl_bayar
.
month
==
8
and
self
.
tgl_bayar
.
day
>=
7
:
discount_pokok
=
0.17
*
self
.
tagihan
self
.
discount_pokok
=
0.17
*
self
.
tagihan
elif
self
.
tgl_bayar
.
month
==
9
:
elif
self
.
tgl_bayar
.
month
==
9
:
discount_pokok
=
0.1
*
self
.
tagihan
self
.
discount_pokok
=
0.1
*
self
.
tagihan
discount_pokok
=
int
(
discount_pokok
)
self
.
discount_pokok
=
int
(
self
.
discount_pokok
)
self
.
discount
=
discount_denda
+
discount_pokok
self
.
discount
=
self
.
discount_denda
+
self
.
discount_pokok
def
before_save
(
self
,
payment
):
# Override
def
before_save
(
self
,
payment
):
# Override
payment
.
denda_sppt
=
self
.
denda
-
self
.
discount
if
self
.
discount_denda
:
payment
.
denda_sppt
=
self
.
denda
-
self
.
discount_denda
if
self
.
discount_pokok
:
Query
.
set_faktor_pengurang_sppt
(
self
,
self
.
discount_pokok
)
def
get_op_model
(
self
):
# Override
def
get_op_model
(
self
):
# Override
return
ObjekPajak
return
ObjekPajak
...
@@ -65,6 +71,10 @@ class Reversal(BaseReversal):
...
@@ -65,6 +71,10 @@ class Reversal(BaseReversal):
def
get_payment_model
(
self
):
# Override
def
get_payment_model
(
self
):
# Override
return
PembayaranSppt
return
PembayaranSppt
def
before_save
(
self
):
# Override
Query
.
set_faktor_pengurang_sppt
(
self
,
-
self
.
invoice
.
faktor_pengurang_sppt
)
class
AvailableInvoice
(
BaseAvailableInvoice
):
class
AvailableInvoice
(
BaseAvailableInvoice
):
def
get_inquiry_class
(
self
):
# Override
def
get_inquiry_class
(
self
):
# Override
...
...
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