Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9464 from turbo124/v5-develop
v5.8.49
- Loading branch information
Showing
40 changed files
with
751 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.8.48 | ||
5.8.49 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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\DataMapper\EDoc\FatturaPA; | ||
|
||
use Spatie\LaravelData\Data; | ||
use Spatie\LaravelData\Attributes\WithTransformer; | ||
use Spatie\LaravelData\Transformers\DateTimeInterfaceTransformer; | ||
|
||
class DatiAnagraficiVettore extends Data | ||
{ | ||
|
||
public function __construct( | ||
public string $IdFiscaleIVA = '', | ||
public string $CodiceFiscale = '', | ||
public string $Anagrafica = '', | ||
#[WithTransformer(DateTimeInterfaceTransformer::class, format: 'Y-m-d\TH:i:s.uP')] | ||
public \DateTime $DataOraConsegna = new \DateTime(), | ||
){} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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\DataMapper\EDoc\FatturaPA; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class DatiContratto extends Data | ||
{ | ||
public function __construct( | ||
public string $RiferimentoNumeroLinea = '', | ||
public string $IdDocumento = '', | ||
public string $Data = '', | ||
public string $NumItem = '', | ||
public string $CodiceCommessaConvenzione = '', | ||
public string $CodiceCUP = '', | ||
public string $CodiceCIG = '', | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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\DataMapper\EDoc\FatturaPA; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class DatiOrdineAcquisto extends Data | ||
{ | ||
public function __construct( | ||
public string $RiferimentoNumeroLinea = '', | ||
public string $IdDocumento = '', | ||
public string $Data = '', | ||
public string $NumItem = '', | ||
public string $CodiceCommessaConvenzione = '', | ||
public string $CodiceCUP = '', | ||
public string $CodiceCIG = '', | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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\DataMapper\EDoc\FatturaPA; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class DatiRicezione extends Data | ||
{ | ||
public function __construct( | ||
public string $RiferimentoNumeroLinea = '', | ||
public string $IdDocumento = '', | ||
public string $Data = '', | ||
public string $NumItem = '', | ||
public string $CodiceCommessaConvenzione = '', | ||
public string $CodiceCUP = '', | ||
public string $CodiceCIG = '', | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?php | ||
/** | ||
* Invoice Ninja (https://invoiceninja.com). | ||
* | ||
* @link https://github.com/invoiceninja/invoiceninja source repository | ||
* | ||
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) | ||
* | ||
* @license https://www.elastic.co/licensing/elastic-license | ||
*/ | ||
|
||
namespace App\DataProviders; | ||
|
||
class EDocRules | ||
{ | ||
// [ | ||
// "key" => "", | ||
// "label" => "", | ||
// "type" => "dropdown/date/string/text", | ||
// "resource" => "resource.json", | ||
// "required" => true, | ||
// ] | ||
public function rules() | ||
{ | ||
|
||
return [ | ||
'FatturaPA' => $this->FatturaPADefaults(), | ||
]; | ||
|
||
} | ||
|
||
|
||
private function FatturaPADefaults() | ||
{ | ||
return [ | ||
[ | ||
"key" => "RegimeFiscale", | ||
"label" => "Regime Fiscale", | ||
"type" => "dropdown", | ||
"resource" => "RegimeFiscale.json", | ||
"required" => true, | ||
], | ||
[ | ||
"key" => "TipoDocumento", | ||
"label" => "Tipo Documento", | ||
"type" => "dropdown", | ||
"resource" => "TipoDocumento.json", | ||
"required" => true, | ||
], | ||
[ | ||
"key" => "ModalitaPagamento", | ||
"label" => "Modalita Pagamento", | ||
"type" => "dropdown", | ||
"resource" => "ModalitaPagamento.json", | ||
"required" => true, | ||
], | ||
[ | ||
"key" => "CondizioniPagamento", | ||
"label" => "Condizioni Pagamento", | ||
"type" => "dropdown", | ||
"resource" => "CondizioniPagamento.json", | ||
"required" => true, | ||
], | ||
[ | ||
"key" => "DatiRicezione", | ||
"label" => "Dati Ricezione", | ||
"type" => "dropdown", | ||
"resource" => "CondizioniPagamento", | ||
"required" => false, | ||
"children" => [], | ||
], | ||
[ | ||
"key" => "DatiContratto", | ||
"label" => "Dati Contratto", | ||
"type" => "object", | ||
"resource" => "DatiContratto", | ||
"required" => false, | ||
"children" => [ | ||
[ | ||
"key"=> "RiferimentoNumeroLinea", | ||
"validation" => [ | ||
"string","min:1","max:10","required" | ||
], | ||
] | ||
], | ||
], | ||
[ | ||
"key" => "DatiOrdineAcquisto", | ||
"label" => "Dati Ordine Acquisto", | ||
"type" => "object", | ||
"resource" => "DatiOrdineAcquisto", | ||
"required" => false, | ||
], | ||
[ | ||
"key" => "DatiAnagraficiVettore", | ||
"label" => "Dati Anagrafici Vettore", | ||
"type" => "object", | ||
"resource" => "DatiAnagraficiVettore", | ||
"required" => false, | ||
], | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.