diff --git a/app/lang/de/texts.php b/app/lang/de/texts.php index 57c9e94a7c09..e2a016554695 100644 --- a/app/lang/de/texts.php +++ b/app/lang/de/texts.php @@ -336,7 +336,7 @@ return array( 'chart_builder' => 'Chart Builder', 'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!', - + 'go_pro' => 'Go Pro', // Quotes 'quote' => 'Quote', diff --git a/app/lang/en/texts.php b/app/lang/en/texts.php index f09d1d300a31..a11045828d87 100644 --- a/app/lang/en/texts.php +++ b/app/lang/en/texts.php @@ -351,7 +351,7 @@ return array( 'chart_builder' => 'Chart Builder', 'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!', - + 'go_pro' => 'Go Pro', // Quotes 'quote' => 'Quote', diff --git a/app/lang/es/texts.php b/app/lang/es/texts.php index 40b8fd5c392e..74e268cbae45 100644 --- a/app/lang/es/texts.php +++ b/app/lang/es/texts.php @@ -335,7 +335,7 @@ return array( 'chart_builder' => 'Chart Builder', 'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!', - + 'go_pro' => 'Go Pro', // Quotes 'quote' => 'Quote', 'quotes' => 'Quotes', diff --git a/app/lang/fr/texts.php b/app/lang/fr/texts.php index caf5f0a538a5..250c666d7a87 100644 --- a/app/lang/fr/texts.php +++ b/app/lang/fr/texts.php @@ -336,7 +336,7 @@ return array( 'chart_builder' => 'Chart Builder', 'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!', - + 'go_pro' => 'Go Pro', // Quotes 'quote' => 'Quote', diff --git a/app/lang/it/texts.php b/app/lang/it/texts.php index 51499dc2001a..9d6de7f2ba45 100644 --- a/app/lang/it/texts.php +++ b/app/lang/it/texts.php @@ -336,7 +336,7 @@ return array( 'chart_builder' => 'Chart Builder', 'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!', - + 'go_pro' => 'Go Pro', // Quotes 'quote' => 'Quote', diff --git a/app/lang/nl/texts.php b/app/lang/nl/texts.php index 3003eb71e3f0..84b9dcaaf2a7 100644 --- a/app/lang/nl/texts.php +++ b/app/lang/nl/texts.php @@ -337,7 +337,7 @@ return array( 'chart_builder' => 'Chart Builder', 'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!', - + 'go_pro' => 'Go Pro', // Quotes 'quote' => 'Quote', diff --git a/app/lang/pt_BR/texts.php b/app/lang/pt_BR/texts.php index 26f8f5b9a06d..c0069f713f37 100644 --- a/app/lang/pt_BR/texts.php +++ b/app/lang/pt_BR/texts.php @@ -325,7 +325,7 @@ return array( 'chart_builder' => 'Chart Builder', 'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!', - + 'go_pro' => 'Go Pro', // Quotes 'quote' => 'Quote', diff --git a/app/models/Invoice.php b/app/models/Invoice.php index 4419c99ad1e4..063253cbd506 100755 --- a/app/models/Invoice.php +++ b/app/models/Invoice.php @@ -62,7 +62,7 @@ class Invoice extends EntityModel $this->setVisible([ 'invoice_number', 'discount', - 'shipping', + //'shipping', 'po_number', 'invoice_date', 'due_date', diff --git a/app/ninja/repositories/InvoiceRepository.php b/app/ninja/repositories/InvoiceRepository.php index c5abf435e010..14e3dbaad7bb 100755 --- a/app/ninja/repositories/InvoiceRepository.php +++ b/app/ninja/repositories/InvoiceRepository.php @@ -318,7 +318,7 @@ class InvoiceRepository return $invoice; } - public function cloneInvoice($invoice, $quoteId = null) + public function cloneInvoice($invoice, $quotePublicId = null) { $clone = Invoice::createNew(); $clone->balance = $invoice->amount; @@ -327,7 +327,7 @@ class InvoiceRepository foreach ([ 'client_id', 'discount', - 'shipping', + //'shipping', 'invoice_date', 'po_number', 'due_date', @@ -346,17 +346,17 @@ class InvoiceRepository $clone->$field = $invoice->$field; } - if ($quoteId) + if ($quotePublicId) { $clone->is_quote = false; - $clone->quote_id = $quoteId; + $clone->quote_id = $quotePublicId; } $clone->save(); - if ($quoteId) + if ($quotePublicId) { - $invoice->quote_invoice_id = $clone->id; + $invoice->quote_invoice_id = $clone->public_id; $invoice->save(); } diff --git a/app/views/header.blade.php b/app/views/header.blade.php index 32e6df6bb29a..022205a53d59 100755 --- a/app/views/header.blade.php +++ b/app/views/header.blade.php @@ -78,7 +78,7 @@ - + @@ -97,8 +97,12 @@