-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReferenciasOtrosDocs
37 lines (34 loc) · 1.24 KB
/
ReferenciasOtrosDocs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Para Agregar referencias se debe agregar las siguientes variables en el json
Es importante señalar que se pueden enviar multiples referencias a distintos documentos.
Es por ello que por cada variable tenemos un array.
En este ejemplo estamos pasando solamente una referencia que corresponde a la orden de compra.
<?php
#########################################
# REFERENCIAS
#########################################
#
# NUMERO DE REFERENCIA 1,2,3,ETC...
"NroLinRef"=>array(1),
#
#TIPO DE DTE AL CUAL REFERENCIA
# SI REFERENCIA FACTURA_ELEC=33 BOLETA=39 ORDEN COMPRA=801 PEDIDO=802
"TpoDocRef"=>array("801"),
#
# SE APLICA SOLO PARA FACTURACION MASIVA DE GUIA
"IndGlobal"=>array(),
#
# FOLIO DEL DOCUMENTO QUE SE REFERENCIA
"FolioRef"=>array("AS-334455"),
#
# FECHA DEL DTE QUE SE REFERENCIA
"FchRef"=>array("2021-03-11"),
#
# SOLO APLICA A NOTA DE CREDITO O NOTA DE DEBITO
# MOTIVO 1=ANULA 2=CORRIGE_TEXTO 3=CORRIGE_VALORES LO MISMO QUE DEVOLUCION PARCIAL 4=DEVOLUCION
"CodRef"=>array(),
#
# COMENTARIO INDICANDO MOTIVO DE LA REFERENCIA
"RazonRef"=>array("ORDEN DE COMPRA AS-334455")
?>
En el siguiente manual del sii (Página 41 se indican los códigos de referencias)
https://www.sii.cl/factura_electronica/factura_mercado/formato_dte_201911.pdf