Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-pad-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 aa51e060
authored
Jan 03, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed reversal Kota Banjar
1 parent
70911dc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
opensipkd/pad/services/banjar.py
opensipkd/pad/services/banjar.py
View file @
aa51e06
...
@@ -37,6 +37,19 @@ class Reversal(BaseReversal):
...
@@ -37,6 +37,19 @@ class Reversal(BaseReversal):
def
get_invoice_model
(
self
):
# Override
def
get_invoice_model
(
self
):
# Override
return
Invoice
return
Invoice
def
get_kohir_model
(
self
):
# Override
return
Kohir
def
get_payment_model
(
self
):
# Override
return
Payment
def
get_kohir
(
self
):
# Override
DBSession
=
get_db_session
()
Kohir
=
self
.
get_kohir_model
()
q
=
DBSession
.
query
(
Kohir
)
.
filter_by
(
sptpd_id
=
self
.
invoice
.
sptpd_id
)
q
=
q
.
order_by
(
Kohir
.
id
.
desc
())
return
q
.
first
()
class
AvailableInvoice
(
BaseAvailableInvoice
):
class
AvailableInvoice
(
BaseAvailableInvoice
):
def
get_inquiry_class
(
self
):
# Override
def
get_inquiry_class
(
self
):
# Override
...
...
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