Quote services

This commit is contained in:
David Bomba 2021-10-05 09:03:21 +11:00
parent 10dadf8ca3
commit a226d83657
2 changed files with 4 additions and 3 deletions

View File

@ -28,9 +28,9 @@ class CloneQuoteToInvoiceFactory
unset($quote_array['invoice_id']);
unset($quote_array['id']);
unset($quote_array['invitations']);
unset($quote_array['terms']);
// unset($quote_array['public_notes']);
unset($quote_array['footer']);
//unset($quote_array['terms']);
//unset($quote_array['public_notes']);
//unset($quote_array['footer']);
unset($quote_array['design_id']);
foreach ($quote_array as $key => $value) {

View File

@ -41,6 +41,7 @@ class ConvertQuote
$invoice->design_id = $this->decodePrimaryKey($this->client->getSetting('invoice_design_id'));
$invoice = $this->invoice_repo->save([], $invoice);
nlog($invoice->toArray());
$invoice->fresh();
$invoice->service()