Commit ea3214c1 by Owo Sugiana

Bug fixed BPHTB --update-from-date

1 parent b197bc90
import sys
from datetime import datetime
from sqlalchemy import (
Column,
Integer,
......@@ -134,9 +135,13 @@ class App(BaseApp):
return f'{s_tgl} {s_jam}'
def get_filter_query(self, q):
if isinstance(self.tgl_awal, datetime):
return q.filter(
self.Payment.tanggal >= self.tgl_awal.date(),
self.Payment.jam >= self.tgl_awal.time(),
self.Payment.tanggal < self.tgl_akhir + one_day)
return q.filter(
self.Payment.tanggal >= self.tgl_awal.date(),
self.Payment.jam >= self.tgl_awal.time(),
self.Payment.tanggal >= self.tgl_awal,
self.Payment.tanggal < self.tgl_akhir + one_day)
def get_count(self) -> int: # Override
......
......@@ -61,7 +61,8 @@ BIT_PROFILE_NAMES = {
'TRAVELOK': 'TRAVELOKA',
'SHOPEE': 'SHOPEE',
'OVO': 'OVO',
'BLIBLI': 'BLIBLI'}
'BLIBLI': 'BLIBLI',
'ARTPAY': 'ARTPAY'}
BANK_NAMES = {'700': 'PT POS'}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!