Sheduled Task
Last updated
The plugin includes an automatic scheduled task that regularly calculates late fees for items that have not been returned on time.
The task searches for all reservations where:
returned_date IS NULL
cancelled = 0
end_date < CURDATE()
has_late_fee = 0
For each product, the value from customFields.rentalandreservations_late_fee is retrieved.
The late fee (late_fee_due) is calculated as:
DaysLate × FeePerDay
The record is updated and the field has_late_fee (or jacket) is set to 1.
All results and errors are logged via the Shopware logger.
Last updated