Fixes for the bot

This commit is contained in:
Hillel Coren 2016-08-14 12:31:11 +03:00
parent bfae5018e0
commit 698c1d088d

View File

@ -41,7 +41,7 @@ class InvoiceCard
$this->setTotal($invoice->present()->requestedAmount);
if (floatval($invoice->amount)) {
$this->addButton(SKYPE_BUTTON_OPEN_URL, trans('texts.download_pdf'), $invoice->getInvitationLink('view', true));
$this->addButton(SKYPE_BUTTON_OPEN_URL, trans('texts.download_pdf'), $invoice->getInvitationLink('download', true));
$this->addButton(SKYPE_BUTTON_IM_BACK, trans('texts.email_invoice'), trans('texts.email_invoice'));
} else {
$this->addButton(SKYPE_BUTTON_IM_BACK, trans('texts.list_products'), trans('texts.list_products'));