diff --git a/api/serializers/payment_serializer.py b/api/serializers/payment_serializer.py index be0342f4..c3e9630a 100644 --- a/api/serializers/payment_serializer.py +++ b/api/serializers/payment_serializer.py @@ -679,23 +679,23 @@ def generate_periods_and_payments(employer, generate_since=None): overtime = clocked_hours - projected_hours print("justo sobre payment") payment = PayrollPeriodPayment() - payment.payroll_period=period, + payment.payroll_period=period print('payment.payroll_period=period###', payment.payroll_period) - payment.employee=clockin.employee, + payment.employee=clockin.employee print('payment.payment.employee###', payment.payroll_period) - payment.employer=employer, + payment.employer=employer print('payment.employer###', payment.payroll_period) - payment.shift=clockin.shift, + payment.shift=clockin.shift print('payment.shift###', payment.shift) - payment.clockin=clockin, + payment.clockin=clockin print('payment.clockin###', payment.clockin) - payment.regular_hours=regular_hours, + payment.regular_hours=regular_hours print('payment.regular_hours###', payment.regular_hours) - payment.over_time=overtime, + payment.over_time=overtime print('payment.over_time###', payment.over_time) - payment.hourly_rate=clockin.shift.minimum_hourly_rate, + payment.hourly_rate=clockin.shift.minimum_hourly_rate print('payment.hourly_rate###', payment.hourly_rate) - payment.total_amount=round((regular_hours + overtime) * clockin.shift.minimum_hourly_rate, 2), + payment.total_amount=round((regular_hours + overtime) * clockin.shift.minimum_hourly_rate, 2) print('payment.total_amount###', payment.total_amount) payment.splited_payment=False if clockin.ended_at is None or (clockin.started_at == starting_time and ending_time == clockin.ended_at) else True print('payment.splited_payment###', payment.splited_payment)