src/Invoice/Completor.php
protected function processMetaData()
    {
        foreach ($this->invoice[Tag::Customer][Tag::Invoice][Tag::Line] as &$line) {
            if (isset($line[Meta::VatRateLookup]) && is_array($line[Meta::VatRateLookup])) {
                $line[Meta::VatRateLookup] = json_encode($line[Meta::VatRateLookup]);
            }
            if (isset($line[Meta::VatRateLookupLabel]) && is_array($line[Meta::VatRateLookupLabel])) {
                $line[Meta::VatRateLookupLabel] = json_encode($line[Meta::VatRateLookupLabel]);
            }
            if (isset($line[Meta::FieldsCalculated]) && is_array($line[Meta::FieldsCalculated])) {
                $line[Meta::FieldsCalculated] = json_encode(array_unique($line[Meta::FieldsCalculated]));
            }
            if (isset($line[Meta::VatRateLookupMatches]) && is_array($line[Meta::VatRateLookupMatches])) {
                $line[Meta::VatRateLookupMatches] = json_encode($line[Meta::VatRateLookupMatches]);
            }
            if (isset($line[Meta::VatRateRangeMatches]) && is_array($line[Meta::VatRateRangeMatches])) {
                $line[Meta::VatRateRangeMatches] = json_encode($line[Meta::VatRateRangeMatches]);
            }
        }
    }
protected function processMetaData()
    {
        foreach ($this->invoice[Tag::Customer][Tag::Invoice][Tag::Line] as &$line) {
            if (isset($line[Meta::VatRateLookup]) && is_array($line[Meta::VatRateLookup])) {
                $line[Meta::VatRateLookup] = json_encode($line[Meta::VatRateLookup]);
            }
            if (isset($line[Meta::VatRateLookupLabel]) && is_array($line[Meta::VatRateLookupLabel])) {
                $line[Meta::VatRateLookupLabel] = json_encode($line[Meta::VatRateLookupLabel]);
            }
            if (isset($line[Meta::FieldsCalculated]) && is_array($line[Meta::FieldsCalculated])) {
                $line[Meta::FieldsCalculated] = json_encode(array_unique($line[Meta::FieldsCalculated]));
            }
            if (isset($line[Meta::VatRateLookupMatches]) && is_array($line[Meta::VatRateLookupMatches])) {
                $line[Meta::VatRateLookupMatches] = json_encode($line[Meta::VatRateLookupMatches]);
            }
            if (isset($line[Meta::VatRateRangeMatches]) && is_array($line[Meta::VatRateRangeMatches])) {
                $line[Meta::VatRateRangeMatches] = json_encode($line[Meta::VatRateRangeMatches]);
            }
        }
    }
protected function processMetaData ( ) { foreach ( $ this -> invoice [ Tag :: Customer ] [ Tag :: Invoice ] [ Tag :: Line ] as & $ line ) { if ( isset ( $ line [ Meta :: VatRateLookup ] ) && is_array ( $ line [ Meta :: VatRateLookup ] ) ) { $ line [ Meta :: VatRateLookup ] = json_encode ( $ line [ Meta :: VatRateLookup ] ) ; } if ( isset ( $ line [ Meta :: VatRateLookupLabel ] ) && is_array ( $ line [ Meta :: VatRateLookupLabel ] ) ) { $ line [ Meta :: VatRateLookupLabel ] = json_encode ( $ line [ Meta :: VatRateLookupLabel ] ) ; } if ( isset ( $ line [ Meta :: FieldsCalculated ] ) && is_array ( $ line [ Meta :: FieldsCalculated ] ) ) { $ line [ Meta :: FieldsCalculated ] = json_encode ( array_unique ( $ line [ Meta :: FieldsCalculated ] ) ) ; } if ( isset ( $ line [ Meta :: VatRateLookupMatches ] ) && is_array ( $ line [ Meta :: VatRateLookupMatches ] ) ) { $ line [ Meta :: VatRateLookupMatches ] = json_encode ( $ line [ Meta :: VatRateLookupMatches ] ) ; } if ( isset ( $ line [ Meta :: VatRateRangeMatches ] ) && is_array ( $ line [ Meta :: VatRateRangeMatches ] ) ) { $ line [ Meta :: VatRateRangeMatches ] = json_encode ( $ line [ Meta :: VatRateRangeMatches ] ) ; } } }
Processes meta data before sending the invoice.

Currently the following processing is done:
- Meta::VatRateLookup, Meta::VatRateLookupLabel, Meta::FieldsCalculated,
Meta::VatRateLookupMatches, and Meta::VatRateRangeMatches are converted
a json string if they are an array.
Processes meta data before sending the invoice .