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 f6ed7a0a
authored
Jul 03, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah field pembayaran_sppt.discount_denda untuk modul tangsel
1 parent
891b22f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
12 deletions
CHANGES.txt
sismiop/scripts/inquiry.py
sismiop/services/tangsel/__init__.py
sismiop/services/tangsel/models.py
CHANGES.txt
View file @
f6ed7a0
0.1.6 2020-07-03
----------------
- Tambah field pembayaran_sppt.discount_denda di modul tangsel
0.1.5 2020-07-01
----------------
- Tambah Kota Tangerang yaitu modul tangkota
...
...
sismiop/scripts/inquiry.py
View file @
f6ed7a0
...
...
@@ -56,16 +56,8 @@ def show(inq):
show_val
(
'Nama Wajib Pajak'
,
inq
.
get_nama_wp
())
show_rp
(
'Tagihan'
,
inq
.
tagihan
)
show_rp
(
'Denda'
,
inq
.
denda
)
try
:
n
=
getattr
(
inq
,
'discount_pokok'
)
show_rp
(
'Discount Pokok'
,
n
)
except
AttributeError
:
pass
try
:
n
=
getattr
(
inq
,
'discount_denda'
)
show_rp
(
'Discount Denda'
,
n
)
except
AttributeError
:
pass
show_attr
(
inq
,
'discount_pokok'
,
'Discount Pokok'
)
show_attr
(
inq
,
'discount_denda'
,
'Discount Denda'
)
show_rp
(
'Discount'
,
inq
.
discount
)
show_rp
(
'Total Bayar Sebelumnya'
,
inq
.
total_bayar
)
show_rp
(
'Total Bayar'
,
inq
.
total
)
...
...
@@ -82,15 +74,27 @@ def show(inq):
show_val
(
'Tempat Pembayaran'
,
pay
.
kd_tp
)
show_field
(
pay
,
'tgl_rekam_byr_sppt'
)
show_field
(
pay
,
'discount_pokok'
)
show_field
(
pay
,
'discount_denda'
)
def
show_fields
(
row
,
fieldnames
):
for
fieldname
in
fieldnames
:
label
=
'Field '
+
fieldname
value
=
getattr
(
row
,
fieldname
)
try
:
value
=
getattr
(
row
,
fieldname
)
except
AttributeError
:
continue
show_rp
(
label
,
value
)
def
show_attr
(
obj
,
attr
,
label
):
try
:
n
=
getattr
(
obj
,
attr
)
except
AttributeError
:
return
show_rp
(
label
,
n
)
def
show_payment
(
module_name
,
inq
,
pay
):
print
(
'Berhasil dibayar pada urutan ke-{}'
.
format
(
...
...
sismiop/services/tangsel/__init__.py
View file @
f6ed7a0
...
...
@@ -104,6 +104,7 @@ class Inquiry(BaseInquiry):
payment
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
payment
.
discount_pokok
=
self
.
discount_pokok
payment
.
discount_denda
=
self
.
discount_denda
tagihan_netto
=
self
.
tagihan
-
self
.
discount_pokok
denda_netto
=
self
.
denda
-
self
.
discount_denda
...
...
@@ -119,7 +120,7 @@ class Reversal(BaseReversal):
def
before_save
(
self
):
self
.
set_faktor_pengurang_sppt
()
self
.
payment
.
discount_pokok
=
0
self
.
payment
.
discount_pokok
=
self
.
payment
.
discount_denda
=
0
class
AvailableInvoice
(
BaseAvailableInvoice
):
...
...
sismiop/services/tangsel/models.py
View file @
f6ed7a0
...
...
@@ -8,3 +8,4 @@ from sismiop.models.default import PembayaranSppt as BasePembayaranSppt
class
PembayaranSppt
(
BasePembayaranSppt
):
__table_args__
=
dict
(
extend_existing
=
True
)
discount_pokok
=
Column
(
Float
)
discount_denda
=
Column
(
Float
)
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