-
-
Notifications
You must be signed in to change notification settings - Fork 41
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 #108 from AndresRamos/agrega-ejemplo-de-como-relac…
…ionar-documentos-cfdi docs: Agrega ejemplo de como relacionar documentos cfdi
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 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
29 changes: 29 additions & 0 deletions
29
samples/Sdk.Extras.ConsoleApp/Documentos/RelacionarDocumento.cs
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,29 @@ | ||
using ARSoftware.Contpaqi.Comercial.Sdk.DatosAbstractos; | ||
using ARSoftware.Contpaqi.Comercial.Sdk.Extras.Interfaces; | ||
|
||
namespace Sdk.Extras.ConsoleApp; | ||
|
||
public sealed class RelacionarDocumento | ||
{ | ||
private readonly IDocumentoService _documentoService; | ||
|
||
public RelacionarDocumento(IDocumentoService documentoService) | ||
{ | ||
_documentoService = documentoService; | ||
} | ||
|
||
public void RelacionPorLlave() | ||
{ | ||
var documento = new tLlaveDoc { aCodConcepto = "PRUEBAFACTURA", aSerie = "PRUEBA", aFolio = 1 }; | ||
var documentoARelacionar = new tLlaveDoc { aCodConcepto = "PRUEBAFACTURA", aSerie = "PRUEBA", aFolio = 2 }; | ||
|
||
_documentoService.RelacionarDocumentos(documento, "01", documentoARelacionar); | ||
} | ||
|
||
public void RelacionPorUuid() | ||
{ | ||
var documento = new tLlaveDoc { aCodConcepto = "PRUEBAFACTURA", aSerie = "PRUEBA", aFolio = 1 }; | ||
|
||
_documentoService.RelacionarDocumentos(documento, "03", "51F58A42-3827-49A3-A1E5-54CADF80F9C6"); | ||
} | ||
} |