taocomp / php-e-invoice-it

A PHP package for managing italian e-invoice and notice XML formats. (Pacchetto PHP per gestire il formato XML di fatture e notifiche come richiesto dal SdI).
GNU General Public License v3.0
74 stars 22 forks source link

Skipping empty values #13

Open madbob opened 5 years ago

madbob commented 5 years ago

This is intended to simplify set of multiple values, such as in:

$e->setValues('DatiTrasmissione', [
    // ...
    'PECDestinatario' => $customer->sdi_code == '0000000' ? $customer->pec : null,
    // ...
]);
aded commented 5 years ago

This is intended to simplify set of multiple values, such as in: (...)

Hi madbob, thanks for your PR. I'll take a look at the package in few days and will update the code soon - need to improve it :-)