{{-- Extends layout --}} @extends(getThemeBasePath()) @section('page_title') {{$page_title}} @endsection {{-- Content --}} @section('content')

{{$page_title}}

@if (session('status')) @endif

Step 1

Sync Payroll and Payslips

@if(isset($draftPayrun->updated_at) && !$isSyncRunning) Last updated at:
{{$draftPayrun->updated_at->format('d-m-Y h:i A')}} @endif

  • It will take approx 5 minutes to sync payroll and payslips from XERO..
  • Once payroll created in XERO, it will auto include eligible employees for this payroll and create payslips for it.
  • {{ $companyName }} will fetch and store payslips data from XERO.
  • Click here to View Payroll
  • Notes: You can review created payroll and payslips from Pay Employees and Payslips menu item.

Step 2

Load Staff Data

@if(isset($draftPayrun->is_load_hours_done) && ($draftPayrun->is_load_hours_done == 1) && isset($draftPayrun->timesheet_updated_at) && strtotime($draftPayrun->timesheet_updated_at) > 0) Last data loaded at:
{{date('d-m-Y h:i A',strtotime($draftPayrun->timesheet_updated_at))}} @endif

  • It will fetch staff timesheet hours for active payroll with status Draft and add into staff payslips.
  • Click here to View Payslips
  • Notes: You can review staff timesheet hours from Payslips menu item and please note that it is not synced with XERO yet (Sync with XERO will be done in step 4).

Step 2

Load Staff Data V2

@if(isset($draftPayrun->is_load_hours_done) && ($draftPayrun->is_load_hours_done == 1) && isset($draftPayrun->timesheet_updated_at) && strtotime($draftPayrun->timesheet_updated_at) > 0) Last data loaded at:
{{date('d-m-Y h:i A',strtotime($draftPayrun->timesheet_updated_at))}} @endif

  • It will fetch staff timesheet hours for active payroll with status Draft and add into staff payslips.
  • Click here to View Payslips
  • Notes: You can review staff timesheet hours from Payslips menu item and please note that it is not synced with XERO yet (Sync with XERO will be done in step 4).

Step 3

Load Leave Data

@if(isset($draftPayrun->is_load_leave_done) && ($draftPayrun->is_load_leave_done == 1) && isset($draftPayrun->updated_at) && strtotime($draftPayrun->updated_at) > 0) Last data loaded at:
{{date('d-m-Y h:i A',strtotime($draftPayrun->updated_at))}} @endif

  • Click here to View Payslips
  • It will fetch staff leave hours for active payroll with status Draft and add into staff payslips.
  • Notes: You can review staff leave hours from Payslips menu item and please note that it is not synced with XERO yet (Sync with XERO will be done in step 4).

Step 3

Load Leave Data V2

@if(isset($draftPayrun->is_load_leave_done) && ($draftPayrun->is_load_leave_done == 1) && isset($draftPayrun->updated_at) && strtotime($draftPayrun->updated_at) > 0) Last data loaded at:
{{date('d-m-Y h:i A',strtotime($draftPayrun->updated_at))}} @endif

  • Click here to View Payslips
  • It will fetch staff leave hours for active payroll with status Draft and add into staff payslips.
  • Notes: You can review staff leave hours from Payslips menu item and please note that it is not synced with XERO yet (Sync with XERO will be done in step 4).

Step 4

Send To Xero @if($isSendToXeroRunning) @endif @if(isset($draftPayrun->send_to_xero_at) && strtotime($draftPayrun->send_to_xero_at) > 0 && !$isSendToXeroRunning)

Last synced at:
{{date('d-m-Y h:i A',strtotime($draftPayrun->send_to_xero_at))}}

@endif @if(isset($isSendToXeroError) && $isSendToXeroError)

Please resolve this error from XERO UI and click on reset payroll button to start from Step 1:

@php $m = json_decode($isSendToXeroError,true); $m = $m['msg']??""; $m = explode(" | ",$m); @endphp

    @foreach($m as $mv)
  • {!!$mv!!}
  • @endforeach

@endif
  • It will take approx 5 minutes to send data to XERO..
  • It will send all payslips data into XERO (including timesheet hours and leaves).
  • Notes: You can not edit payslip after sending data to XERO. you have to reset payroll to edit payslips.

Step 5

Go to XERO UI to review and download payslips
  • Login to xero and exclude all empty payslips from the current payrun.
  • Notes: Once the empty pay slips are excluded, you can download the payslip PDF to verify the details of the employees. Once the verification is done by {{ $companyName }} team, proceed to Step 7. If any issues or modification required, proceed with Step 6.

Step 6

  • It will delete all data of Draft Payroll from {{ $companyName }}.
  • Notes: Draft payroll data will be permanently deleted from {{ $companyName }}. It will not delete payroll from XERO, you have to manually delete payroll from xero using XERO UI.

Step 7

  • Notes: This is last step once ready for the payment.
  • It will update the payroll status in the portal from 'Draft' to 'POSTED.' You'll need to manually finalize the payroll in XERO.
  • Kindly ensure that the payroll is finalized in XERO before initiating a new pay run in the portal.
  • Notes: You can not revert status from {{ $companyName }} after finalize and you can not reset payroll after marked as POSTED.
@endsection {{-- Scripts Section --}} @section('scripts') @endsection