cancel invoice/bill

This commit is contained in:
denisdulici
2020-03-28 17:54:36 +03:00
parent 889be5fd98
commit 75413a0496
30 changed files with 445 additions and 104 deletions

View File

@ -294,6 +294,24 @@ class Invoices extends Controller
return redirect()->back();
}
/**
* Mark the invoice as cancelled.
*
* @param Invoice $invoice
*
* @return Response
*/
public function markCancelled(Invoice $invoice)
{
event(new \App\Events\Sale\InvoiceCancelled($invoice));
$message = trans('invoices.messages.marked_cancelled');
flash($message)->success();
return redirect()->back();
}
/**
* Download the PDF file of invoice.
*