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 75bb38b5
authored
Aug 18, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Rumus discount Kota Tasik
1 parent
f451355c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
CHANGES.txt
sismiop/services/tasik_kota.py
CHANGES.txt
View file @
75bb38b
0.1.42 2022-8-18
----------------
- Rumus discount Kota Tasik
0.1.41 2022-8-16
----------------
- Rumus discount Kota Tangerang
...
...
sismiop/services/tasik_kota.py
View file @
75bb38b
...
...
@@ -10,6 +10,10 @@ from .tasik_kab import (
)
AWAL_DISC
=
date
(
2022
,
8
,
19
)
AKHIR_DISC
=
date
(
2022
,
12
,
31
)
class
Inquiry
(
BaseInquiry
):
def
get_invoice_model
(
self
):
# Override
return
Sppt
...
...
@@ -20,6 +24,9 @@ class Inquiry(BaseInquiry):
def
hitung_discount
(
self
):
# Override
if
self
.
invoice
.
denda_status
==
'1'
:
self
.
discount
=
int
(
self
.
invoice
.
denda_pbb
or
0
)
elif
self
.
tgl_bayar
>=
AWAL_DISC
and
self
.
tgl_bayar
<=
AKHIR_DISC
:
if
self
.
invoice
.
thn_pajak_sppt
<
'2022'
:
self
.
discount
=
self
.
denda
def
before_save
(
self
,
payment
):
# Override
payment
.
denda_sppt
=
self
.
denda
-
self
.
discount
...
...
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