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 92422bc3
authored
Mar 09, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Rumus discount Kota Bekasi
1 parent
9f636885
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
CHANGES.txt
sismiop/services/bekasi_kota.py
CHANGES.txt
View file @
92422bc
0.1.35 2022-3-9
---------------
- Rumus discount Kota Bekasi
0.1.34 2022-2-24
----------------
- Rumus discount Kota Banjar
...
...
sismiop/services/bekasi_kota.py
View file @
92422bc
from
datetime
import
date
from
..models.bekasi_kota
import
(
ObjekPajak
,
Sppt
,
...
...
@@ -13,7 +14,29 @@ from .binjai import (
)
AWAL_DISC
=
date
(
2022
,
3
,
10
)
AKHIR_DISC
=
date
(
2022
,
3
,
31
)
class
Inquiry
(
BaseInquiry
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
()
.
__init__
(
*
args
,
**
kwargs
)
if
self
.
invoice
and
self
.
invoice
.
status_pembayaran_sppt
==
'1'
:
self
.
tagihan
=
self
.
denda
=
self
.
discount
=
self
.
total
=
0
def
hitung_discount
(
self
):
# Override
if
self
.
tgl_bayar
<
AWAL_DISC
or
self
.
tgl_bayar
>
AKHIR_DISC
:
return
if
self
.
invoice
.
faktor_pengurang_sppt
!=
0
:
return
if
self
.
invoice
.
thn_pajak_sppt
==
'2022'
:
self
.
discount
=
int
(
0.1
*
self
.
tagihan
)
else
:
self
.
discount
=
self
.
denda
def
before_save
(
self
,
payment
):
# Override
payment
.
denda_sppt
=
0
# self.denda - self.discount
def
get_op_model
(
self
):
# Override
return
ObjekPajak
...
...
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