mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
peppol
This commit is contained in:
parent
4b546bb206
commit
49e5b09d90
29
app/Services/EDocument/Standards/Peppol.php
Normal file
29
app/Services/EDocument/Standards/Peppol.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace App\Services\EDocument\Standards;
|
||||||
|
|
||||||
|
use App\Models\Invoice;
|
||||||
|
use App\Services\AbstractService;
|
||||||
|
|
||||||
|
class Peppol extends AbstractService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @param Invoice $invoice
|
||||||
|
*/
|
||||||
|
public function __construct(public Invoice $invoice)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public function run()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -137,11 +137,8 @@ class FatturaPATest extends TestCase
|
|||||||
$xml = $e->encode($fe, 'xml');
|
$xml = $e->encode($fe, 'xml');
|
||||||
$this->assertNotNull($xml);
|
$this->assertNotNull($xml);
|
||||||
|
|
||||||
nlog($xml);
|
|
||||||
|
|
||||||
$json = $e->encode($fe, 'json');
|
$json = $e->encode($fe, 'json');
|
||||||
$this->assertNotNull($json);
|
$this->assertNotNull($json);
|
||||||
nlog($json);
|
|
||||||
|
|
||||||
$decode = $e->decode('FatturaPA', $json, 'json');
|
$decode = $e->decode('FatturaPA', $json, 'json');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user