src/WooCommerce/Shop/InvoiceStatusOverviewForm.php
private function getNonExistingFields(Source $source)
    {
        $fields = array();
        $fields += array(
            'send' => array(
                'type' => 'button',
                'value' => $this->t('send_again'),
                'ajax' => array(
                    'service' => 'invoice_add',
                    'parent_type' => $this->source->getType(),
                    'parent_source' => $this->source->getId(),
                    'type' => $source->getType(),
                    'source' => $source->getId(),
                    'value' => 1,
                ),
            ),
        );
        return $fields;
    }
private function getNonExistingFields(Source $source)
    {
        $fields = array();
        $fields += array(
            'send' => array(
                'type' => 'button',
                'value' => $this->t('send_again'),
                'ajax' => array(
                    'service' => 'invoice_add',
                    'parent_type' => $this->source->getType(),
                    'parent_source' => $this->source->getId(),
                    'type' => $source->getType(),
                    'source' => $source->getId(),
                    'value' => 1,
                ),
            ),
        );
        return $fields;
    }
private function getNonExistingFields ( Source $ source ) { $ fields = array ( ) ; $ fields += array ( 'send' => array ( 'type' => 'button' , 'value' => $ this -> t ( 'send_again' ) , 'ajax' => array ( 'service' => 'invoice_add' , 'parent_type' => $ this -> source -> getType ( ) , 'parent_source' => $ this -> source -> getId ( ) , 'type' => $ source -> getType ( ) , 'source' => $ source -> getId ( ) , 'value' => 1 , ) , ) , ) ; return $ fields ; }
Returns additional form fields to show when the invoice has been sent but
does no longer exist.

@param \Siel\Acumulus\Invoice\Source $source
The Source for which the invoice does no longer exist.

@return array[]
Array of form fields.
Returns additional form fields to show when the invoice has been sent but does no longer exist .