示例#1
0
    def calc_pay(self):

        pay_total = 0
        for tcard in self.__timeCards:
            pay_total += tcard.calculate_daily_pay(self.__hourly_rate)

        if pay_total > 0:
            dues = float(Employee.get_dues(self))
            pay_total -= dues
        else:
            return -1

        full_name = Employee.get_full_name(self)
        if Employee.get_pay_method(self) == 'MA':
            full_address = Employee.get_full_address(self)
            mpayment = MailPayment(pay_total, full_name, full_address)
            output = mpayment.get_output()

        elif Employee.get_pay_method(self) == 'PU':
            ppayment = PickUpPayment(pay_total, full_name)
            output = ppayment.get_output()

        else:
            dpayment = DirectDepositPayment(pay_total, full_name)
            output = dpayment.get_output()

        return output
    def total_payment(self, total_pay):
        full_name = Employee.get_full_name(self)
        if Employee.get_payment_method(self) == 'DD':
            direct_deposit_payment = DirectDepositPayment(full_name, total_pay)
            output = direct_deposit_payment.pay()

        elif Employee.get_payment_method(self) == 'MA':
            full_address = Employee.get_full_address(self)
            mail_payment = MailPayment(full_name, full_address, total_pay)
            output = mail_payment.pay()

        else:
            pick_up_payment = PickUpPayment(full_name, total_pay)
            output = pick_up_payment.pay()

        messagebox.showinfo('Payroll Result', output)

        return(output)
    def calculate_pay(self):
        total_pay = 0
        for time_card in self.__time_cards:
            total_pay += time_card.calculate_daily_pay(self.__hourly_rate)

        if total_pay > 0:
            weekly_dues = float(Employee.get_weekly_dues(self))
            total_pay -= weekly_dues
            self.total_payment(total_pay)
        return(total_pay)
    def calculate_pay(self):
        total_pay = 0
        for receipt in self.__receipt_list:
            total_pay += receipt.get_sale() * self.__commission_rate

        total_pay += self.__salary / 12
        weekly_dues = Employee.get_weekly_dues(self)
        total_pay -= float(weekly_dues)

        self.pay(total_pay)
        return total_pay
示例#5
0
 def __init__(self, employee_id, first_name, last_name, rate, weekly_dues):
     Employee.__init__(employee_id, first_name, last_name, weekly_dues)
     self.__rate = rate
     self.__time_card = []
示例#6
0
 def __init__(self, employee_id, first_name, last_name, rate, weekly_dues):
     Employee.__init__(employee_id, first_name, last_name, weekly_dues)
     self.__rate = rate
     self.__time_card = []
示例#7
0
 def __init__(self, first_name, last_name, street_address, city, state,
              zip_code, total_pay, commission):
     Employee.__init__(first_name, last_name)
     Address.__init__(street_address, city, state, zip_code)
     HourlyEmployee.__init__(total_pay)
     SalariedEmployee.__init__(commission)
示例#8
0
 def __init__(self,employee_id, first_name, last_name, dues, salary, comm, payment_method):
     Employee.__init__(employee_id, first_name, last_name, dues, payment_method)
     self.__salary = salary
     self.__commission_rate = comm
     self.__total_pay = 0
     self.__weekly_receipt = []
 def __init__(self, employee_id, last_name, first_name, hourly_rate, weekly_dues, payment_method, street_address, city, state, zipcode):
     Employee.__init__(self, employee_id, last_name, first_name, weekly_dues, payment_method, street_address, city, state, zipcode)
     self.__hourly_rate = hourly_rate
     self.__time_cards = []
    def __init__(self, employee_id, last_name, first_name, salary, commission_rate, weekly_dues, payment_method, street_address, city, state, zipcode):
        Employee.__init__(self, employee_id, last_name, first_name, weekly_dues, payment_method, street_address, city, state, zipcode)

        self.__salary = float(salary)
        self.__commission_rate = float(commission_rate) / 100
        self.__receipt_list = []
示例#11
0
 def __init__(self,employee_id, first_name, last_name, rate, dues, payment_method):
     Employee.__init__(employee_id, first_name, last_name, dues, payment_method)
     self.__hourly_rate = rate
     self.__weekly_time_cards = []
示例#12
0
 def pay(self, amt):
     address = Address.get_address()
     return "Mailing a check to " + Employee.get_full_name() + "for $" + amt + "to " + address + "."
示例#13
0
 def __init__(self, emp_id, lname, fname, hrly_rt, dues, pay_method, st_address, city, state, zip_code):
     Employee.__init__(self, emp_id, lname, fname, dues, pay_method, st_address, city, state, zip_code)
     self.__hourly_rate = hrly_rt
     self.__timeCards = []
示例#14
0
 def __init__(self, employee_id, first_name, last_name, salary, commission_rate, weekly_dues):
     Employee.__init__(employee_id, first_name, last_name, weekly_dues)
     self.__salary = salary
     self.__commission_rate = commission_rate
     self.__receipts = []