class ThermalPrinterService (View source)

Class ThermalPrinterService

Responsible for building loan receipt payloads and sending them to a Node.js printing service. All visible text in the receipt is in Portuguese.

Methods

__construct()

No description

void
printLoanReceipt(Loan $loan, string $employeeName = 'Desconhecido')

Main method to generate and send a loan receipt to the client printer.

Details

__construct()

No description

void printLoanReceipt(Loan $loan, string $employeeName = 'Desconhecido')

Main method to generate and send a loan receipt to the client printer.

Parameters

Loan $loan

Loan data array or Loan model instance

string $employeeName

Name of the employee processing the loan

Return Value

void