This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.
You can install the package via composer:
composer require ameax/datev-xml use Ameax\Datev\DataObjects\DatevAccountLedgerData;
use Ameax\Datev\DataObjects\DatevDocumentData;
use Ameax\Datev\DataObjects\DatevRepositoryData;
use Ameax\Datev\Zip;
use Carbon\Carbon;
$datevDocumentData = new DatevDocumentData();
$ledgerData = new DatevAccountLedgerData(
consolidatedDate: new Carbon('2023-06-14'),
consolidatedDeliveryDate: new Carbon('2023-06-14'),
consolidatedInvoiceId: 'RE12345',
customerName: 'ARANES',
customerCity: 'Aufhausen',
shipFromCountry: 'DE',
accountName: 'ARANES Aufhausen',
dueDate: new Carbon('2023-07-01'),
bpAccountNo: '12345'
);
$ledgerData->addAccountsReceivableLedger(
amount: 119.00,
accountNo: '8400',
information: 'Software',
bookingText: 'Umsatz 19%'
);
$ledgerData->addAccountsReceivableLedger(
amount: 214.00,
accountNo: '8300',
information: 'Bücher',
bookingText: 'Umsatz 7%'
);
$datevDocumentData->buildAccountsReceivableLedger(
datevAccountLedgerData: $ledgerData,
filePaths : ['path-to-invoice.pdf']
);
$datevRepositoryData = new DatevRepositoryData();
$datevDocumentData->addSEPAFile(
nameWithExtension : 'sepa-2023-12345.xml',
filePath : 'path-to-sepafile.xml',
date : new Carbon('2023-05-01'),
datevRepositoryData: $datevRepositoryData);
$zipPath = $datevDocumentData->generateZip();composer testPlease see CHANGELOG for more information on what has changed recently.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.