This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

shop:onGetEndReportingDate event

Triggered by Backend_ReportsData
Author LemonStand eCommerce Inc.

Event handler signature

public string event_onGetEndReportingDate(string $default_date)
$default_date string specifies the default reporting end date calculated by LemonStand.
{return} string returns the new reporting start date in the following format: yyyy-mm-dd
Allows to override the reporting end date. The event handler should return the new reporting end date as string. The default reporting end date matches the current date in the application time zone. Example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onGetEndReportingDate', $this, 'get_end_reporting_date');
}

public function get_end_reporting_date($default_date)
{
  return '20015-10-01';
}