Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions api/serializers/payment_serializer.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -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)
Expand Down