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 a7dcbdd9
authored
Jan 02, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda 100% Kabupaten Cirebon
1 parent
7e4b60e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
29 deletions
CHANGES.txt
pyproject.toml
sismiop/services/cirebon_kab.py
CHANGES.txt
View file @
a7dcbdd
0.3.25 2025-01-02
-----------------
- Discount denda 100% di Kabupaten Cirebon
0.3.24 2024-12-20
0.3.24 2024-12-20
-----------------
-----------------
- Tambah Kabupaten Lebak
- Tambah Kabupaten Lebak
...
...
pyproject.toml
View file @
a7dcbdd
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
[project]
name
=
'sismiop-models'
name
=
'sismiop-models'
version
=
'
0.3.2
4
'
version
=
'
0.3.2
5
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/cirebon_kab.py
View file @
a7dcbdd
...
@@ -10,17 +10,8 @@ from .default import (
...
@@ -10,17 +10,8 @@ from .default import (
)
)
AWAL_DISC_DENDA
=
date
(
2024
,
1
,
14
)
AWAL_DISC_DENDA
=
date
(
2025
,
1
,
1
)
AKHIR_DISC_DENDA
=
date
(
2024
,
12
,
31
)
AKHIR_DISC_DENDA
=
date
(
2025
,
12
,
31
)
AWAL_DISC_POKOK_1
=
date
(
2024
,
1
,
14
)
AKHIR_DISC_POKOK_1
=
date
(
2024
,
3
,
31
)
AWAL_DISC_POKOK_2
=
date
(
2024
,
4
,
1
)
AKHIR_DISC_POKOK_2
=
date
(
2024
,
7
,
31
)
AWAL_DISC_POKOK_3
=
date
(
2024
,
8
,
1
)
AKHIR_DISC_POKOK_3
=
date
(
2024
,
10
,
31
)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
...
@@ -50,25 +41,9 @@ class Inquiry(BaseInquiry):
...
@@ -50,25 +41,9 @@ class Inquiry(BaseInquiry):
def
hitung_discount
(
self
):
# Override
def
hitung_discount
(
self
):
# Override
self
.
discount_pokok
=
self
.
discount_denda
=
0
self
.
discount_pokok
=
self
.
discount_denda
=
0
if
self
.
invoice
.
thn_pajak_sppt
<
'2024'
:
if
'2009'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2024'
:
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
self
.
discount
=
self
.
discount_denda
=
self
.
denda
self
.
discount
=
self
.
discount_denda
=
self
.
denda
elif
self
.
invoice
.
thn_pajak_sppt
==
'2024'
:
if
AWAL_DISC_POKOK_1
<=
self
.
tgl_bayar
<=
AKHIR_DISC_POKOK_1
:
if
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
<=
5000000
:
potongan
=
0.1
else
:
potongan
=
0.075
elif
AWAL_DISC_POKOK_2
<=
self
.
tgl_bayar
<=
AKHIR_DISC_POKOK_2
:
if
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
<=
5000000
:
potongan
=
0.05
else
:
potongan
=
0.025
elif
AWAL_DISC_POKOK_3
<=
self
.
tgl_bayar
<=
AKHIR_DISC_POKOK_3
:
potongan
=
0.079
else
:
return
self
.
discount
=
self
.
discount_pokok
=
int
(
potongan
*
self
.
tagihan
)
def
before_save
(
self
,
payment
):
# Override
def
before_save
(
self
,
payment
):
# Override
# Catat sebagai bruto, ujar Gilang
# Catat sebagai bruto, ujar Gilang
...
...
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