Ejemplo n.º 1
0
    def get(self, date_from, date_to):
        date_from2 = DateTime.first_day_of_month(date_from)
        date_to2 = DateTime.last_day_of_month(date_to)

        # get charge
        summary_by_day = TopUpSummaryByDay()
        return summary_by_day.__get(date_from2, date_to2, '%Y%m')
Ejemplo n.º 2
0
 def get(self, date_from, date_to):
     date_from2 = DateTime.first_day_of_month(date_from)
     date_to2 = DateTime.last_day_of_month(date_to)
     
     # get charge
     summary_by_day = TopUpSummaryByDay()
     return summary_by_day.__get(date_from2, date_to2, '%Y%m')
Ejemplo n.º 3
0
 def get(self, date_from, date_to):
     date_from2 = DateTime.first_day_of_month(date_from)
     date_to2 = DateTime.last_day_of_month(date_to)
     
     return self.__get(date_from2, date_to2, '%Y%m')
Ejemplo n.º 4
0
 def get_by_month(self, date_from, date_to):
     date_from2 = DateTime.first_day_of_month(date_from)
     date_to2 = DateTime.last_day_of_month(date_to)
     return self.__get(date_from2, date_to2, date_format='%Y%m')
Ejemplo n.º 5
0
 def get_by_month_and_attendant(self, date_from, date_to, attendant_code):
     date_from2 = DateTime.first_day_of_month(date_from)
     date_to2 = DateTime.last_day_of_month(date_to)
     return self.__get_by_day_and_attendant(date_from2, date_to2, attendant_code, '%Y%m')