Skip to content

Commit

Permalink
Merge branch 'main' of github.com:andalisolutions/anaf-php
Browse files Browse the repository at this point in the history
  • Loading branch information
ciungulete committed Jan 28, 2024
2 parents 1728e2d + d35e6ae commit f690c98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Resources/Efactura.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Efactura
*
* @throws Exception
*/
public function upload(string $xml_path, string $tax_identification_number, UploadStandard $standard = UploadStandard::UBL, bool $extern = false): CreateUploadResponse
public function upload(string $xml_path, string $tax_identification_number, UploadStandard $standard = UploadStandard::UBL, bool $extern = false, bool $selfInvoice = false): CreateUploadResponse
{
$payload = Payload::upload(
resource: 'prod/FCTEL/rest/upload',
Expand All @@ -33,6 +33,7 @@ public function upload(string $xml_path, string $tax_identification_number, Uplo
'cif' => $tax_identification_number,
'standard' => $standard->value,
...($extern ? ['extern' => 'DA'] : []),
...($selfInvoice ? ['autofactura' => 'DA'] : []),
],
);

Expand Down

0 comments on commit f690c98

Please sign in to comment.