Skip to content

Commit

Permalink
Add example invoice with retentions to MX regime
Browse files Browse the repository at this point in the history
  • Loading branch information
cavalle committed Nov 17, 2023
1 parent 7750c37 commit 64e7880
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 0 deletions.
128 changes: 128 additions & 0 deletions regimes/mx/examples/out/retentions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"$schema": "https://gobl.org/draft-0/envelope",
"head": {
"uuid": "8a51fd30-2a27-11ee-be56-0242ac120002",
"dig": {
"alg": "sha256",
"val": "ae61650449eed123ec5d12375d41b1232915acde7c4a8fec08b8b801edd8a09b"
},
"draft": true
},
"doc": {
"$schema": "https://gobl.org/draft-0/bill/invoice",
"type": "standard",
"series": "TEST",
"code": "00001",
"issue_date": "2023-07-10",
"currency": "MXN",
"supplier": {
"name": "KARLA FUENTE NOLASCO",
"tax_id": {
"country": "MX",
"zone": "01160",
"code": "FUNK671228PH6"
},
"ext": {
"mx-cfdi-fiscal-regime": "612"
}
},
"customer": {
"name": "UNIVERSIDAD ROBOTICA ESPAÑOLA",
"tax_id": {
"country": "MX",
"zone": "86991",
"code": "URE180429TM6"
},
"ext": {
"mx-cfdi-fiscal-regime": "601",
"mx-cfdi-use": "G01"
}
},
"lines": [
{
"i": 1,
"quantity": "1",
"item": {
"name": "Honorarios de notario",
"price": "1230.00",
"ext": {
"mx-cfdi-prod-serv": "80121603"
}
},
"sum": "1230.00",
"taxes": [
{
"cat": "VAT",
"rate": "standard",
"percent": "16.0%"
},
{
"cat": "RVAT",
"percent": "10.6667%"
},
{
"cat": "ISR",
"percent": "10.00%"
}
],
"total": "1230.00"
}
],
"payment": {
"terms": {
"notes": "Condiciones de pago"
},
"instructions": {
"key": "credit-transfer"
}
},
"totals": {
"sum": "1230.00",
"total": "1230.00",
"taxes": {
"categories": [
{
"code": "VAT",
"rates": [
{
"key": "standard",
"base": "1230.00",
"percent": "16.0%",
"amount": "196.80"
}
],
"amount": "196.80"
},
{
"code": "RVAT",
"retained": true,
"rates": [
{
"base": "1230.00",
"percent": "10.6667%",
"amount": "131.20"
}
],
"amount": "131.20"
},
{
"code": "ISR",
"retained": true,
"rates": [
{
"base": "1230.00",
"percent": "10.00%",
"amount": "123.00"
}
],
"amount": "123.00"
}
],
"sum": "-57.40"
},
"tax": "-57.40",
"total_with_tax": "1172.60",
"payable": "1172.60"
}
}
}
40 changes: 40 additions & 0 deletions regimes/mx/examples/retentions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
$schema: "https://gobl.org/draft-0/bill/invoice"
issue_date: "2023-07-10"
series: "TEST"
code: "00001"
supplier:
name: "KARLA FUENTE NOLASCO"
ext:
mx-cfdi-fiscal-regime: "612"
tax_id:
country: "MX"
code: "FUNK671228PH6"
zone: "01160"
customer:
name: "UNIVERSIDAD ROBOTICA ESPAÑOLA"
ext:
mx-cfdi-fiscal-regime: "601"
mx-cfdi-use: "G01"
tax_id:
country: "MX"
code: "URE180429TM6"
zone: "86991"
lines:
- quantity: "1"
item:
name: "Honorarios de notario"
price: "1230.00"
ext:
mx-cfdi-prod-serv: "80121603"
taxes:
- cat: "VAT"
rate: "standard"
- cat: "RVAT"
percent: "10.6667%"
- cat: "ISR"
percent: "10.00%"
payment:
terms:
notes: "Condiciones de pago"
instructions:
key: "credit-transfer"

0 comments on commit 64e7880

Please sign in to comment.