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 039e7ce7
authored
Mar 04, 2021
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed AvailableInvoice
1 parent
843efdcf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
sismiop/services/base.py
sismiop/services/base.py
View file @
039e7ce
...
...
@@ -374,15 +374,7 @@ class AvailableInvoice(Query):
def
show
(
self
):
Invoice
=
self
.
get_invoice_model
()
Payment
=
self
.
get_payment_model
()
base_inq_cls
=
self
.
get_inquiry_class
()
class
Inq
(
base_inq_cls
):
def
get_invoice_model
(
self
):
return
Invoice
def
get_payment_model
(
self
):
return
Payment
inq_cls
=
self
.
get_inquiry_class
()
offset
=
-
1
no
=
0
awal
=
time
()
...
...
@@ -397,7 +389,7 @@ class AvailableInvoice(Query):
inv
=
q
.
first
()
if
not
inv
:
continue
inq
=
Inq
(
invoice
=
inv
)
inq
=
inq_cls
(
invoice
=
inv
)
if
inq
.
is_paid
():
continue
no
+=
1
...
...
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