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 04f2ee6d
authored
Jan 26, 2021
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah Kota Tasikmalaya
1 parent
af8048e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
1 deletions
CHANGES.txt
sismiop/models/tasik_kota.py
sismiop/services/tasik_kota.py
CHANGES.txt
View file @
04f2ee6
0.1.18 2021-04-01
0.1.19 2021-01-25
-----------------
- Penambahan Kota Tasikmalaya
0.1.18 2021-01-04
-----------------
-----------------
- Perubahan rumus Kota Tangerang Selatan
- Perubahan rumus Kota Tangerang Selatan
...
...
sismiop/models/tasik_kota.py
0 → 100644
View file @
04f2ee6
from
sqlalchemy
import
(
Column
,
Float
,
)
from
.tasik_kab
import
(
ObjekPajak
,
Sppt
,
PembayaranSppt
as
BasePembayaranSppt
,
Kelurahan
,
Kecamatan
,
Propinsi
,
TempatPembayaran
,
)
class
PembayaranSppt
(
BasePembayaranSppt
):
__table_args__
=
dict
(
extend_existing
=
True
)
denda_sblm_diskon
=
Column
(
Float
)
sismiop/services/tasik_kota.py
0 → 100644
View file @
04f2ee6
from
datetime
import
date
from
..models.tasik_kota
import
PembayaranSppt
from
.tasik_kab
import
(
AvailableInvoice
,
Inquiry
as
BaseInquiry
,
Reversal
,
)
MAX_DISC_DATE
=
date
(
2021
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
def
get_payment_model
(
self
):
# Override
return
PembayaranSppt
def
hitung_discount
(
self
):
# Override
if
self
.
tgl_bayar
>
MAX_DISC_DATE
:
return
if
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
return
self
.
discount
=
self
.
denda
def
before_save
(
self
,
payment
):
# Override
payment
.
denda_sppt
=
self
.
denda
-
self
.
discount
# Sekedar catatan
payment
.
denda_sblm_diskon
=
self
.
denda
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