1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Don't mark converted quote as sent

This commit is contained in:
Hillel Coren 2017-10-17 14:12:04 +03:00
parent 697de9b3b2
commit ac5cd8a806

View File

@ -881,7 +881,7 @@ class InvoiceRepository extends BaseRepository
if ($account->invoice_terms) {
$clone->terms = $account->invoice_terms;
}
if ($account->auto_convert_quote) {
if (! auth()->check()) {
$clone->is_public = true;
$clone->invoice_status_id = INVOICE_STATUS_SENT;
}