From 64e7880974084bbb8349b990a6c92ca4a80727ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luismi=20Cavall=C3=A9?= Date: Fri, 17 Nov 2023 15:27:14 +0000 Subject: [PATCH] Add example invoice with retentions to MX regime --- regimes/mx/examples/out/retentions.json | 128 ++++++++++++++++++++++++ regimes/mx/examples/retentions.yaml | 40 ++++++++ 2 files changed, 168 insertions(+) create mode 100644 regimes/mx/examples/out/retentions.json create mode 100644 regimes/mx/examples/retentions.yaml diff --git a/regimes/mx/examples/out/retentions.json b/regimes/mx/examples/out/retentions.json new file mode 100644 index 00000000..3a945254 --- /dev/null +++ b/regimes/mx/examples/out/retentions.json @@ -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" + } + } +} \ No newline at end of file diff --git a/regimes/mx/examples/retentions.yaml b/regimes/mx/examples/retentions.yaml new file mode 100644 index 00000000..a37dbc6b --- /dev/null +++ b/regimes/mx/examples/retentions.yaml @@ -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"