Skip to content

Commit d35e6ae

Browse files
authored
Add self invoice (#22)
1 parent 2ac083a commit d35e6ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Resources/Efactura.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Efactura
2424
*
2525
* @throws Exception
2626
*/
27-
public function upload(string $xml_path, string $tax_identification_number, UploadStandard $standard = UploadStandard::UBL, bool $extern = false): CreateUploadResponse
27+
public function upload(string $xml_path, string $tax_identification_number, UploadStandard $standard = UploadStandard::UBL, bool $extern = false, bool $selfInvoice = false): CreateUploadResponse
2828
{
2929
$payload = Payload::upload(
3030
resource: 'prod/FCTEL/rest/upload',
@@ -33,6 +33,7 @@ public function upload(string $xml_path, string $tax_identification_number, Uplo
3333
'cif' => $tax_identification_number,
3434
'standard' => $standard->value,
3535
...($extern ? ['extern' => 'DA'] : []),
36+
...($selfInvoice ? ['autofactura' => 'DA'] : []),
3637
],
3738
);
3839

0 commit comments

Comments
 (0)