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 b73b5194
authored
Sep 24, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah modul bekasi_kab
1 parent
12faf087
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
6 deletions
CHANGES.txt
setup.py
sismiop/scripts/inquiry.py
sismiop/services/bekasi_kab/__init__.py
sismiop/services/cilegon/__init__.py
CHANGES.txt
View file @
b73b519
0.1.10 2020-09-24
-----------------
- Tambah modul bekasi_kab
0.1.9 2020-08-30
0.1.9 2020-08-30
----------------
----------------
- Perubahan rumus discount pokok dan discount denda pada modul tangsel sesuai
- Perubahan rumus discount pokok dan discount denda pada modul tangsel sesuai
...
...
setup.py
View file @
b73b519
...
@@ -20,7 +20,7 @@ requires = [
...
@@ -20,7 +20,7 @@ requires = [
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
'psycopg2-binary'
,
'psycopg2-binary'
,
'opensipkd-hitung @ '
'opensipkd-hitung @ '
'git+https://git.opensipkd.com/sugiana/opensipkd-hitung'
,
'git+https://git.opensipkd.com/sugiana/opensipkd-hitung
.git
'
,
]
]
...
...
sismiop/scripts/inquiry.py
View file @
b73b519
...
@@ -136,7 +136,7 @@ def main(argv=sys.argv):
...
@@ -136,7 +136,7 @@ def main(argv=sys.argv):
Reversal
=
sub_module
.
Reversal
Reversal
=
sub_module
.
Reversal
db_url
=
conf
.
get
(
'main'
,
'db_url'
)
db_url
=
conf
.
get
(
'main'
,
'db_url'
)
engine
=
create_engine
(
db_url
)
engine
=
create_engine
(
db_url
)
engine
.
echo
=
option
.
sql_debug
engine
.
echo
=
option
.
sql_debug
session_factory
=
sessionmaker
(
bind
=
engine
)
session_factory
=
sessionmaker
(
bind
=
engine
)
sismiop
.
services
.
base
.
DBSession
=
DBSession
=
session_factory
()
sismiop
.
services
.
base
.
DBSession
=
DBSession
=
session_factory
()
register
(
sismiop
.
services
.
base
.
DBSession
)
register
(
sismiop
.
services
.
base
.
DBSession
)
...
@@ -148,7 +148,7 @@ def main(argv=sys.argv):
...
@@ -148,7 +148,7 @@ def main(argv=sys.argv):
print
(
'Invoice ID {} tidak ada.'
.
format
(
invoice_id
))
print
(
'Invoice ID {} tidak ada.'
.
format
(
invoice_id
))
if
inq
.
debug_invoice
:
if
inq
.
debug_invoice
:
print
(
'Ada tapi field status_pembayaran_sppt = '
print
(
'Ada tapi field status_pembayaran_sppt = '
f
'{inq.debug_invoice.status_pembayaran_sppt}'
)
f
'{inq.debug_invoice.status_pembayaran_sppt}'
)
return
return
show
(
inq
)
show
(
inq
)
if
option
.
payment
:
if
option
.
payment
:
...
...
sismiop/services/bekasi_kab/__init__.py
0 → 100644
View file @
b73b519
from
datetime
import
date
from
sismiop.services.cilegon
import
(
Inquiry
as
BaseInquiry
,
Reversal
,
AvailableInvoice
,
)
AWAL_DISC
=
date
(
2020
,
9
,
1
)
AKHIR_DISC
=
date
(
2020
,
10
,
30
)
class
Inquiry
(
BaseInquiry
):
def
hitung_discount_denda
(
self
):
# Override
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
self
.
denda
<
1
or
tgl_bayar
<
AWAL_DISC
or
\
tgl_bayar
>
AKHIR_DISC
or
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
return
0
return
self
.
denda
sismiop/services/cilegon/__init__.py
View file @
b73b519
# File ini berdasarkan Surat Keputusan Walikota Cilegon Nomor 973/kep. -BPKAD/2020
# File ini berdasarkan Surat Keputusan Walikota Cilegon
# Nomor 973/kep. -BPKAD/2020
from
datetime
import
date
from
datetime
import
date
from
..default
import
(
from
..default
import
(
Inquiry
as
BaseInquiry
,
Inquiry
as
BaseInquiry
,
...
@@ -16,8 +17,8 @@ class Inquiry(BaseInquiry):
...
@@ -16,8 +17,8 @@ class Inquiry(BaseInquiry):
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
tgl_bayar
=
self
.
tgl_bayar
.
date
()
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
tgl_bayar
<
AWAL_DISC
or
tgl_bayar
>
AKHIR_DISC
or
\
if
tgl_bayar
<
AWAL_DISC
or
tgl_bayar
>
AKHIR_DISC
or
\
self
.
invoice
.
thn_pajak_sppt
<
'1990'
or
\
self
.
invoice
.
thn_pajak_sppt
<
'1990'
or
\
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
self
.
invoice
.
thn_pajak_sppt
>
'2020'
:
return
0
return
0
return
self
.
denda
return
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