Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-webr-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 7fe4f9dc
authored
Aug 03, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed saat inquiry yang sudah lunas
1 parent
7b521ba0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
CHANGES.txt
opensipkd/webr/services/default.py
CHANGES.txt
View file @
7fe4f9d
0.2.2 2022-08-03
----------------
- Bug fixed saat inquiry yang sudah lunas
0.2.1 2021-04-08
0.2.1 2021-04-08
----------------
----------------
- Variabel total bertipe int ketimbang Decimal
- Variabel total bertipe int ketimbang Decimal
...
...
opensipkd/webr/services/default.py
View file @
7fe4f9d
...
@@ -46,7 +46,9 @@ class Inquiry:
...
@@ -46,7 +46,9 @@ class Inquiry:
self
.
invoice
=
q
.
first
()
self
.
invoice
=
q
.
first
()
if
not
self
.
invoice
:
if
not
self
.
invoice
:
return
return
if
self
.
is_available
():
if
not
self
.
is_available
():
self
.
invoice
=
None
return
self
.
hitung
()
self
.
hitung
()
def
get_payment
(
self
):
def
get_payment
(
self
):
...
@@ -83,7 +85,7 @@ class Inquiry:
...
@@ -83,7 +85,7 @@ class Inquiry:
self
.
total
=
0
self
.
total
=
0
def
is_available
(
self
):
def
is_available
(
self
):
return
self
.
invoice
.
status
==
0
return
self
.
invoice
.
status
in
(
0
,
1
)
def
get_nama
(
self
):
def
get_nama
(
self
):
return
self
.
invoice
.
subjek_nama
.
upper
()
return
self
.
invoice
.
subjek_nama
.
upper
()
...
...
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