Fix logger variable name and add 'pokok' to the context in Views class

1 parent 48b2ac63
...@@ -13,7 +13,7 @@ from opensipkd.pbb.monitoring.models import PembayaranSppt, Kecamatan, Kelurahan ...@@ -13,7 +13,7 @@ from opensipkd.pbb.monitoring.models import PembayaranSppt, Kecamatan, Kelurahan
from datetime import timedelta from datetime import timedelta
from ..models.payment import PCDBSession from ..models.payment import PCDBSession
logger = logging.getLogger(__name__) log = logging.getLogger(__name__)
PAD_TYP = { PAD_TYP = {
"hotel": ["PBJT - JASA PERHOTELAN"], "hotel": ["PBJT - JASA PERHOTELAN"],
...@@ -271,6 +271,7 @@ class Views(BaseView): ...@@ -271,6 +271,7 @@ class Views(BaseView):
"dailyAcc": dailyAcc, "dailyAcc": dailyAcc,
"dailyAccTrx": dailyAccTrx, "dailyAccTrx": dailyAccTrx,
"ytd": ytd, "ytd": ytd,
"pokok": ytd-piutang,
"piutang": piutang, "piutang": piutang,
"piutangTrx": piutangTrx, "piutangTrx": piutangTrx,
"trxYtd": ytdTrx, "trxYtd": ytdTrx,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!