refs #252
This commit is contained in:
parent
9cd4f9cd46
commit
8fa272a814
@ -474,11 +474,9 @@ class Invoices extends Controller
|
||||
*/
|
||||
public function markSent(Invoice $invoice)
|
||||
{
|
||||
if ($invoice->invoice_status_code != 'partial') {
|
||||
$invoice->invoice_status_code = 'sent';
|
||||
$invoice->invoice_status_code = 'sent';
|
||||
|
||||
$invoice->save();
|
||||
}
|
||||
$invoice->save();
|
||||
|
||||
// Add invoice history
|
||||
InvoiceHistory::create([
|
||||
|
@ -165,7 +165,7 @@
|
||||
<li class="divider"></li>
|
||||
@endif
|
||||
@permission('update-incomes-invoices')
|
||||
@if($invoice->invoice_status_code != 'partial')
|
||||
@if($invoice->invoice_status_code == 'draft')
|
||||
<li><a href="{{ url('incomes/invoices/' . $invoice->id . '/sent') }}">{{ trans('invoices.mark_sent') }}</a></li>
|
||||
@endif
|
||||
@endpermission
|
||||
|
Loading…
x
Reference in New Issue
Block a user