1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for converting quote to invoice

This commit is contained in:
= 2021-03-24 09:28:12 +11:00
parent 63655f7076
commit fb9bb7e269
2 changed files with 2 additions and 1 deletions

View File

@ -532,7 +532,7 @@ class QuoteController extends BaseController
return response()->json(['message' => ctrans('texts.sent_message')], 200);
}
if ($action == 'convert') {
if ($action == 'convert' || $action == 'convert_to_invoice') {
$this->entity_type = Quote::class;
$this->entity_transformer = QuoteTransformer::class;

View File

@ -192,6 +192,7 @@ class BillingSubscriptionService
throw new \Exception("Could not match an invoice for payment of billing subscription");
//todo - need to remove the promo code - if it exists
return InvoiceToRecurringInvoiceFactory::create($invoice);
}