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 58dc7c02
authored
Jul 31, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount Kota Cimahi
1 parent
90b15e71
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
CHANGES.txt
pyproject.toml
sismiop/services/cimahi.py
CHANGES.txt
View file @
58dc7c0
0.3.61 2026-07-31
-----------------
- Discount Kota Cimahi
0.3.60 2026-07-30
0.3.60 2026-07-30
-----------------
-----------------
- Rumus discount Kota Bekasi
- Rumus discount Kota Bekasi
...
...
pyproject.toml
View file @
58dc7c0
...
@@ -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.6
0
'
version
=
'
0.3.6
1
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/cimahi.py
0 → 100644
View file @
58dc7c0
from
datetime
import
date
from
.sumedang
import
(
AvailableInvoice
as
BaseAvailableInvoice
,
Inquiry
as
BaseInquiry
,
Reversal
,
)
AWAL_DISC
=
date
(
2026
,
8
,
1
)
AKHIR_DISC
=
date
(
2026
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
def
hitung_discount
(
self
):
# Override
self
.
discount_pokok
=
self
.
discount_denda
=
0
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
:
if
'2013'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2025'
:
self
.
discount_denda
=
self
.
discount
=
self
.
denda
self
.
denda
=
0
class
AvailableInvoice
(
BaseAvailableInvoice
):
def
get_inquiry_class
(
self
):
# Override
return
Inquiry
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