Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Kunto
/
backoffice
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 ea117e5f
authored
Oct 12, 2019
by
yasir
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update
1 parent
e7c348a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
25 deletions
src/agratek/api/merchant/views/payment_list.py
src/agratek/api/merchant/views/templates/payment/list.pt
src/agratek/api/merchant/views/templates/purchase/list.pt
src/agratek/api/merchant/views/payment_list.py
View file @
ea117e5
...
...
@@ -34,28 +34,6 @@ def filter_tanggal(request, query, field):
return
query
def
query_csv
(
request
,
status
):
# ColumnDT(PartnerPay.id, mData='id'),
# ColumnDT(PartnerPay.cust_inv_no, mData='nomor'),
# ColumnDT(PartnerPay.created, mData = 'created'),
# ColumnDT(
# column_concat([
# PartnerPay.inv_cust_nm,
# ' - (',
# customer.nama,
# ')'
# ]),
# mData='customer'
# ),
# ColumnDT(vendor.nama, mData='vendor'),
# ColumnDT(PartnerPay.amt_sell, mData='amount'),
# ColumnDT(case(
# [
# (PartnerPay.status <= 0, 0)
# ],
# else_=PartnerPay.status
# ), mData='status'),
vendor
=
aliased
(
Partner
,
name
=
'vendor'
)
customer
=
aliased
(
Partner
,
name
=
'customer'
)
query
=
DBSession
.
query
(
PartnerPay
.
cust_inv_no
.
label
(
'Nomor_Invoice'
),
...
...
src/agratek/api/merchant/views/templates/payment/list.pt
View file @
ea117e5
<html>
<div
metal:use-macro=
"load: ../base.pt"
>
<!-- content -->
<div
metal:fill-slot=
"content"
>
...
...
@@ -211,6 +212,9 @@
format
:
'dd-mm-yyyy'
,
autoclose
:
true
});
$
(
'#awal,#akhir'
).
on
(
'changeDate'
,
function
(
e
)
{
oTable
.
ajax
.
url
(
getDataUrl
()).
load
();
});
$
(
'#awal, #akhir'
).
css
(
'width'
,
'98px'
);
var
el
=
$
(
'#table1_length'
).
parent
();
...
...
@@ -254,10 +258,10 @@
return
csvUrl
+
'?status='
+
opt
.
toString
()
+
param
;
}
$
(
'#btn_csv'
).
click
(
function
()
{
console.log(getCSV_url());
window
.
open
(
getCSV_url
());
});
});
</script>
</div>
\ No newline at end of file
</div>
</html>
\ No newline at end of file
src/agratek/api/merchant/views/templates/purchase/list.pt
View file @
ea117e5
<html>
<div
metal:use-macro=
"load: ../base.pt"
>
<!-- content -->
<div
metal:fill-slot=
"content"
>
...
...
@@ -212,6 +213,9 @@
format
:
'dd-mm-yyyy'
,
autoclose
:
true
});
$
(
'#awal,#akhir'
).
on
(
'changeDate'
,
function
(
e
)
{
oTable
.
ajax
.
url
(
getDataUrl
()).
load
();
});
$
(
'#awal, #akhir'
).
css
(
'width'
,
'98px'
);
var
el
=
$
(
'#table1_length'
).
parent
();
...
...
@@ -262,4 +266,5 @@
});
</script>
</div>
\ No newline at end of file
</div>
</html>
\ No newline at end of file
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