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 3b86a1cc
authored
Jul 01, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah tangsel_invisible_disc
1 parent
efd6a811
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
CHANGES.txt
sismiop/services/tangsel_invisible_disc/__init__.py
CHANGES.txt
View file @
3b86a1c
0.1.5 2020-07-01
----------------
- Discount tagihan pokok untuk Tangerang Selatan
- Penambahan tangsel_invisible_disc yang merupakan turunan dari tangsel
dimana discount tidak ditampilkan, konsekuensi dari spec yang telah
diberikan ke Mitracomm.
0.1.4 2020-06-23
----------------
...
...
sismiop/services/tangsel_invisible_disc/__init__.py
0 → 100644
View file @
3b86a1c
from
..tangsel
import
(
Inquiry
as
BaseInquiry
,
Reversal
,
AvailableInvoice
,
AvailableInvoiceTangsel
,
)
class
Inquiry
(
BaseInquiry
):
def
hitung_discount
(
self
):
# Override
BaseInquiry
.
hitung_discount
(
self
)
# Netto
self
.
tagihan
-=
self
.
discount_pokok
self
.
denda
-=
self
.
discount_denda
self
.
total
=
self
.
tagihan
+
self
.
denda
self
.
discount
=
0
def
before_save
(
self
,
payment
):
# Override
# Sekedar catatan
payment
.
denda_sblm_diskon
=
self
.
denda_sblm_diskon
payment
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
payment
.
discount_pokok
=
self
.
discount_pokok
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