Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
invoice_comments_for_search.php File Reference

Go to the source code of this file.

Variables

 $orderService = Bootstrap::getObjectManager()->create(InvoiceManagementInterface::class)
 
 $invoice = $orderService->prepareInvoice($order)
 
 $order = $invoice->getOrder()
 
 $transactionSave = Bootstrap::getObjectManager()->create(Transaction::class)
 
 $comments
 
 $commentRepository = Bootstrap::getObjectManager()->get(InvoiceCommentRepositoryInterface::class)
 

Variable Documentation

◆ $commentRepository

$commentRepository = Bootstrap::getObjectManager()->get(InvoiceCommentRepositoryInterface::class)

Definition at line 59 of file invoice_comments_for_search.php.

◆ $comments

$comments
Initial value:
= [
[
'comment' => 'comment 1',
'is_visible_on_front' => 1,
'is_customer_notified' => 1,
],
[
'comment' => 'comment 2',
'is_visible_on_front' => 1,
'is_customer_notified' => 1,
],
[
'comment' => 'comment 3',
'is_visible_on_front' => 1,
'is_customer_notified' => 1,
],
[
'comment' => 'comment 4',
'is_visible_on_front' => 1,
'is_customer_notified' => 1,
],
[
'comment' => 'comment 5',
'is_visible_on_front' => 0,
'is_customer_notified' => 1,
],
]

Definition at line 30 of file invoice_comments_for_search.php.

◆ $invoice

$invoice = $orderService->prepareInvoice($order)

Definition at line 21 of file invoice_comments_for_search.php.

◆ $order

$order = $invoice->getOrder()

Definition at line 24 of file invoice_comments_for_search.php.

◆ $orderService

$orderService = Bootstrap::getObjectManager()->create(InvoiceManagementInterface::class)

Definition at line 19 of file invoice_comments_for_search.php.

◆ $transactionSave

$transactionSave = Bootstrap::getObjectManager()->create(Transaction::class)

Definition at line 27 of file invoice_comments_for_search.php.