1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +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;
}