Skip to content

Commit

Permalink
차트 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dhfmepd committed Jul 14, 2021
1 parent 564ec25 commit 1ea055c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions analysis/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def normal_exp_analy(request):
"""
일반/법인카드 경비분석 Dashboard
"""
month = request.GET.get('month', (datetime.today() + relativedelta(months=-1)).strftime("%Y%m"))
month = request.GET.get('month', (datetime.today() + relativedelta(months=-1)).strftime('%Y%m'))

print("Target Month : ", month)

Expand Down Expand Up @@ -160,7 +160,7 @@ def get_top10_list(month):
sql_str += " SELECT DISP_CATE_CD, SUM(APV_SUM_AMT) AS APV_SUM_AMT "
sql_str += " FROM EX_CORPCARD_ASK "
sql_str += " WHERE COM_CD = '1000' AND SEND_DIV = '01' "
sql_str += " AND APV_DD LIKE CONCAT('" + month + "' '%') "
sql_str += " AND APV_DD LIKE CONCAT('" + month + "', '%') "
sql_str += " GROUP BY DISP_CATE_CD "
sql_str += " ) BASE "
sql_str += ") RSLT "
Expand Down
4 changes: 0 additions & 4 deletions templates/analysis/normal_exp_analy.html
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,6 @@ <h6 class="m-0 font-weight-bold text-primary">일반경비 키워드 별 지출

{% if month != '' %}
$("#target_ym").val('{{ month }}');
{% else %}
var now = new Date();
now.setMonth(now.getMonth() - 1);
$("#target_ym").val(getFormatDate('data', now));
{% endif %}
};
$("#target_ym").on('change', function() {
Expand Down

0 comments on commit 1ea055c

Please sign in to comment.