Jump to content

Edit History

Yulia Vitun

Yulia Vitun

PS 1.7.8.7: - to add new column Invoice number to BO Orders list:

in file /src/Core/Grid/Definition/Factory/OrderGridDefinitionFactory.php 

- to add new column: add this around line 194

            ->add((new DataColumn('invoice_number'))
            ->setName($this->trans('Invoice', [], 'Admin.Global'))
            ->setOptions([
                'field' => 'invoice_number',
            ])
            )

- to add filter field: add this around line 321

            ->add((new IdentifierColumn('invoice_number' ))
            ->setName($this->trans('Invoice', [], 'Admin.Global'))
            ->setOptions([
                'identifier_field' => 'invoice_number',
                'preview' => $previewColumn,
                'clickable' => false,
            ])
            )

 

To do / not working:

- how to sort out in Invoices in Ascending / Descending order?

- How to search/ filter for a specific Invoice number?

 

Yulia Vitun

Yulia Vitun

PS 1.7.8.7: - to add new column Invoice number to BO Orders list:

in file /Web/src/Core/Grid/Definition/Factory/OrderGridDefinitionFactory.php 

- to add new column: add this around line 194

            ->add((new DataColumn('invoice_number'))
            ->setName($this->trans('Invoice', [], 'Admin.Global'))
            ->setOptions([
                'field' => 'invoice_number',
            ])
            )

- to add filter field: add this around line 321

            ->add((new IdentifierColumn('invoice_number' ))
            ->setName($this->trans('Invoice', [], 'Admin.Global'))
            ->setOptions([
                'identifier_field' => 'invoice_number',
                'preview' => $previewColumn,
                'clickable' => false,
            ])
            )

 

To do / not working:

- how to sort out in Invoices in Ascending / Descending order?

- How to search/ filter for a specific Invoice number?

 

Yulia Vitun

Yulia Vitun

PS 1.7.8.7: - to add new column Invoice number to BO Orders list:

in file /Web/src/Core/Grid/Definition/Factory/OrderGridDefinitionFactory.php 

- to add new column: add this around line 194

            ->add((new DataColumn('invoice_number'))
            ->setName($this->trans('Invoice', [], 'Admin.Global'))
            ->setOptions([
                'field' => 'invoice_number',
            ])
            )

- to add filter field: add this around line 321

            ->add((new Filter('invoice_number', TextType::class))
            ->setTypeOptions([
                'required' => false,
                'attr' => [
                    'placeholder' => $this->trans('Search Invoice', [], 'Admin.Actions'),
                ],
            ])
            ->setAssociatedColumn('invoice_number')
            )

 

To do / not working:

- how to sort out in Invoices in Ascending / Descending order?

- How to search/ filter for a specific Invoice number?

 

Yulia Vitun

Yulia Vitun

PS 1.7.8.7: - to add new column Invoice number to BO Orders list:

in file /Web/src/Core/Grid/Definition/Factory/OrderGridDefinitionFactory.php 

- to add new column: add this around line 194

            ->add((new DataColumn('invoice_number'))
            ->setName($this->trans('Invoice', [], 'Admin.Global'))
            ->setOptions([
                'field' => 'invoice_number',
            ])
            )

- to add filter field: add this around line 321

            ->add((new Filter('invoice_number', TextType::class))
            ->setTypeOptions([
                'required' => false,
                'attr' => [
                    'placeholder' => $this->trans('Search Invoice', [], 'Admin.Actions'),
                ],
            ])
            ->setAssociatedColumn('invoice_number')
            )

 

To do / not working:

- how to sort out in Ascdending / Descending order?

- How to search/ filter for a specific Invoice number?

 

Yulia Vitun

Yulia Vitun

PS 1.7.8.7: - to add new column Invoice number to BO Orders list:

in file /Web/src/Core/Grid/Definition/Factory/OrderGridDefinitionFactory.php to add around line 194

            ->add((new DataColumn('invoice_number'))
            ->setName($this->trans('Invoice', [], 'Admin.Global'))
            ->setOptions([
                'field' => 'invoice_number',
            ])
            )

 

×
×
  • Create New...