protected function getInvoiceDate($dateToUse)
    {
        $result = $this->invoiceSource->getInvoiceDate();
        if ($dateToUse != PluginConfig::InvoiceDate_OrderCreate || empty($result)) {
            $result = $this->invoiceSource->getDate();
        }
        return $result;
    }