Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Taufik Yulianto
/
esipkd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 25e7790f
authored
Oct 25, 2022
by
suri
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
view va
1 parent
e6bb43b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
esipkd/views/bjb_va.py
esipkd/views/templates/bjbva/list.pt
esipkd/views/templates/bjbva/vacode.pt
esipkd/views/bjb_va.py
View file @
25e7790
...
@@ -444,6 +444,19 @@ class view(object):
...
@@ -444,6 +444,19 @@ class view(object):
values
=
va
.
to_dict
()
values
=
va
.
to_dict
()
BJBVA
.
cancel_va
(
values
,
rpc_params
())
BJBVA
.
cancel_va
(
values
,
rpc_params
())
elif
url_dict
[
'act'
]
==
'vacode'
:
id
=
'id'
in
params
and
params
[
'id'
]
or
''
invoice_no
=
''
va_number
=
''
if
id
:
qris
=
BJBVA
.
query_id
(
id
)
.
first
()
invoice_no
=
qris
.
invoice_no
va_number
=
qris
.
va_number
from
pyramid.renderers
import
render_to_response
return
render_to_response
(
"templates/bjbva/vacode.pt"
,
dict
(
invoice_no
=
invoice_no
,
va_number
=
va_number
))
@jsonrpc_method
(
method
=
'callback'
,
endpoint
=
'bjbva-callback'
)
@jsonrpc_method
(
method
=
'callback'
,
endpoint
=
'bjbva-callback'
)
def
callback
(
request
,
data
):
def
callback
(
request
,
data
):
##
##
...
...
esipkd/views/templates/bjbva/list.pt
View file @
25e7790
...
@@ -109,6 +109,7 @@
...
@@ -109,6 +109,7 @@
' <button id="btn_add" class="btn btn btn-success" type="button">Create VA</button>'
,
' <button id="btn_add" class="btn btn btn-success" type="button">Create VA</button>'
,
' <button id="btn_edit" class="btn btn btn-warning" type="button">Update VA</button>'
,
' <button id="btn_edit" class="btn btn btn-warning" type="button">Update VA</button>'
,
' <button id="btn_update" class="btn btn btn-primary" type="button">Inquiry VA</button>'
,
' <button id="btn_update" class="btn btn btn-primary" type="button">Inquiry VA</button>'
,
' <button id="btn_va" class="btn btn btn-info" type="button">View VA</button>'
,
' <button id="btn_delete" class="btn btn btn-danger" type="button">Cancel VA</button>'
,
' <button id="btn_delete" class="btn btn btn-danger" type="button">Cancel VA</button>'
,
' '
,
' '
,
'</div>'
,
'</div>'
,
...
@@ -170,6 +171,13 @@
...
@@ -170,6 +171,13 @@
return
false
;
return
false
;
});
});
$
(
"#btn_va"
).
click
(
function
()
{
if
(
mID
)
window
.
open
(
oTableUri
+
"/vacode/act?id="
+
mID
,
"_blank"
,
"width=350,height=350"
);
else
alert
(
"Pilih Baris yang akan di lihat..."
);
});
});
});
</script>
</script>
</div>
</div>
...
...
esipkd/views/templates/bjbva/vacode.pt
0 → 100644
View file @
25e7790
<label>${invoice_no}</label>
<label>${va_number}</label>
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