Fixes for converting quote to invoice
This commit is contained in:
parent
63655f7076
commit
fb9bb7e269
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue