Skip to Content

Electronic Journal Peru

SUNAT Journal: ple_diary_book
Generates the Electronic Journal ready to file with SUNAT.
1. PLE 5.1, 5.2, 5.3, 5.4
2. High-performance SQL query
3. .TXT and Excel files
$ 785.00 $ 785.00
S/ 3,140.00

  • Version
Terms and Conditions
30-day money-back guarantee
Shipping: 2-3 Business Days
Required Dependencies
This module requires all listed dependencies to work correctly. When you add it to your cart, dependencies are included automatically. If you already own any of these modules for the same version, you can remove them from your cart before checkout.
  • Base Spot $ 120.00
  • DUA in Invoice $ 120.00
  • Document Type Validation $ 80.00
  • Electronic Purchase Record $ 2,396.00
  • Electronic Sales Record (PLE) $ 436.00
  • Origin of Rectified Documents $ 80.00
  • Peruvian Localization Menu $ 80.00
  • SUNAT Catalogs $ 160.00
  • View Multicompany Country Filter $ 0.00
Total price (module + 9 dependencies): $ 6,612.00
Peruvian Localization (SUNAT)

Electronic Journal

PLE Journal — SUNAT Peru. Automate the generation of your TXT files (5.1, 5.2, 5.3, 5.4) and audit reports in Excel end to end.

What are we solving?

Multiple PLE Books

Generate the General Journal (5.1), Simplified Journal (5.2) and Charts of Accounts (5.3/5.4) with a single click, following the LE + RUC + Period naming convention.

Compatibilidad SIRE

Automatic handling of pre- and post-SIRE formats. The system detects the period and applies the corresponding structure for smooth transitions.

Prerequisites and Installation

Critical Dependencies: ple_sale_book (Base model), invoice_type_document (Series propagation) and ple_purchase_book (Supplementary data).

1
Legal Identification: In Settings > Companies, configure your 11-digit RUC and make sure the country is Peru.
2
Chart of Accounts: Configure the Code Prefix on the company to match SUNAT's Table 17 (required for reports 5.3 and 5.4).

Generation Flow

A. Crear

Period and Company are filled in automatically.

B. Generar

Bulk extraction of posted entries.

C. Declarar

Upload the TXT to the PLE and close the period.

Tip: Use the Rollback function to clear files and return to Draft status if you detect errors in the entries.

Isolation and Organization

Multi-Company Isolation
  • Reports strictly isolated by company.
  • Automatic update based on the company selector.
  • Independent RUC and Chart of Accounts settings.
Search and Filtering
  • Quick filters: Draft, Generated and Declared.
  • Search by period and company.
  • Grouping by month for historical audits.

Validation Scenarios (QA)

SCN. 01 Full Generation: Verification that the 7 files (1 Excel + 6 TXT) are produced correctly for the requested period.
SCN. 02 RUC Validation: The system blocks generation if the 11-digit RUC is missing from the company configuration.
SCN. 03 Smart Dates: When the start date is changed, the end date automatically adjusts to the last day of the corresponding month.

Specialized Technical Support

This module uses custom SQL functions (UDF) and is compatible with Odoo.SH and On-Premise environments. For technical assistance or to report issues:

HELP DESKayuda@ganemo.com

Copyright © 2026 Ganemo. All rights reserved.

Leaders in Peruvian Localization for Odoo 19 | ganemo.com

Field Mapping Reference: TXT 5.1 / 5.2

Column-by-column technical documentation for the Electronic Journal. Fields are separated by the pipe character (|).

# SUNAT Field Name Source (Odoo) Completion Logic
1Periodomove_line.dateFormat YYYYMM00. The last two digits are always 00 per SUNAT requirements.
2CUOmove.nameJournal entry name without "/" or "-". Example: INV202600001.
3Sequence NumberSQL UDFCalculated via UDF according to the taxpayer type (CUO or M-RLE).
4Accountaccount.code_storeAccount code extracted from JSONB, without separators. Example: 6011101.
5Operating UnitHardcodedOptional field, sent empty ('').
6Cost Centeranalytic_distributionInitials of the analytic accounts (e.g. "Administración" → A).
7Monedares_currency.nameISO 4217 code (PEN, USD, EUR). Default: PEN.
8Tipo Doc. Identidadl10n_pe_vat_codeSUNAT code of the partner (6=RUC, 1=DNI, 4=CE).
9ID Document Numberpartner.vatKeeps only the last 11 characters to strip country prefixes.
10Tipo Comprobantedocument_type.code01=Factura, 03=Boleta, 07=NC, 08=ND. Fallback: 00.
11Serie Comprobanteserie_correlativePart 1 before the hyphen. Truncated to 4 characters. Default: 0000.
12Document Numberserie_correlativePart 2 after the hyphen. Truncated to 8 characters. Default: 00000000.
13Fecha Contablemove.dateFormato DD/MM/YYYY. Ejemplo: 15/02/2026.
14Fecha Vencimientoinvoice_date_dueDD/MM/YYYY. Empty if no invoice applies.
15Transaction Datemove.dateSame as the accounting date.
16Transaction Descriptionmove_line.nameDescription truncated to 200 characters. Sanitized via SQL.
17Glosa ReferencialConditionalUses the 'Ref' field on purchases and 'Payment Reference' on sales.
18Debe (Debit)move_line.debitAmount in company currency with 2 decimals.
19Haber (Credit)move_line.creditAmount in company currency with 2 decimals.
20Dato EstructuradoLogic Switch SIRE TRANSITION:
≤ Sept 2023: Legacy format (&).
≥ Oct 2023: Concatenation RUC(11) + Type(2) + Series(4) + Seq(10).
21Transaction StatusHardcodedAlways '1' (Valid transaction). Required by SUNAT.

Field Mapping: TXT 5.3 / 5.4 — Plan Contable

Detailed mapping for the Chart of Accounts. Each row represents an active account (account.account) of the company, sorted ascending by code.

# SUNAT Field Name Source (Odoo) Completion Logic
1 Periodo account.ple_date_account YYYYMMDD format using the account's PLE registration date. If not defined, it is sent empty. Example: 20260101.
2 Account Code account.code Account code with all "." separators removed. Example: 10.4.1.01 → 1041101.
3 Account Name account.name Descriptive name of the account. Automatically truncated to 100 characters.
4 Prefijo Plan Contable company.code_prefix Classification code according to SUNAT Table 17 (e.g. 01 for PCGE 2019). Constant value for all rows.
5 Group Name account.group_id.name Name of the account group. Line breaks removed and truncated to 60 characters. Empty if it has no group.
6 Empty Fields — Two consecutive fields separated by pipe (|) reserved by SUNAT for future use.
7 Account Status account.ple_state_account Account status according to SUNAT. Common values: 1 (Active) or 0 (Inactive/Depreciated).
Technical Notes & Deployment

This module requires custom PostgreSQL UDFs for sequence number calculation and string validation. Compatible with Odoo.SH and On-Premise environments. Not compatible with Odoo Online (SaaS).

SUPPORT ayuda@ganemo.com

Generated Files Reference (PLE Output)

Detailed documentation of the files produced by the system for validation and upload to the Electronic Books Program (PLE).

5.1
Journal
Principal

Master file containing all posted journal entries: Debit/Credit, account codes, partner data, document types and SIRE structure.

5.2
Diario Simplificado
RER

Version adapted for companies under the Special Regime (RER). Keeps the same data integrity as 5.1 but adjusted for simplified taxpayers.

5.3
Chart of Accounts (V)
Valores

Chart of accounts with transactional values. Includes codes, names, groups and the classification prefix according to SUNAT Table 17.

5.4
Chart of Accounts (NV)
Referencial

Chart of accounts structure without associated values. Serves as a reference for the accounting architecture used during the declared period.

Copyright © 2026 Ganemo. All rights reserved.

Tax compliance solutions for Odoo | ganemo.com

Enterprise Validation Plan (QA)

Critical test scenarios to ensure regulatory compliance and the integrity of accounting data before filing.

01
Full Report Generation
Action: Create a monthly report with a valid RUC and run "Generate".
Result: Generation of 7 files (1 Excel + 6 TXT) for 5.1, 5.2, 5.3 and 5.4.
02
Rollback & Regenerate
Action: Run "Rollback" on a generated report and reprocess it.
Result: Complete cleanup of files and successful return to "Draft" status.
03
Pre-SIRE Logic (Sept 2023)
Action: Generate a report for a period before October 2023.
Result: The "Structured Data" column uses the legacy format with "&" separators.
04
Missing RUC Validation
Action: Try to generate a report without a RUC configured on the company.
Result: Blocking validation error instructing you to configure the Tax ID/RUC.
05
Date Restriction
Action: Set an End Date earlier than the Start Date.
Result: The system prevents saving and raises a chronological inconsistency alert.
06
Aislamiento Multi-Company
Action: Switch between Company A and B in Odoo's company selector.
Result: Company A's reports are invisible while Company B is active.

Copyright © 2026 Ganemo. All rights reserved.

Tax compliance and localization solutions for Odoo | ganemo.com

FAQ & Troubleshooting

Quick answers to the most frequent questions about generating the Electronic Journal.

Empty report or no data?
CAUSE: There are no posted journal entries for the selected period and company.
SOLUTION: Make sure your invoices and manual entries are in "Posted" status within the report's date range.
RUC/VAT validation error
CAUSE: The company's Tax ID/RUC field is empty.
SOLUTION: Go to Settings → Companies → select your company → fill in the Tax ID/RUC field with your 11 official digits.
Can I regenerate a report that is already done?
ANSWER: Yes! You can use the Rollback function.
Click the "Rollback" button to delete the current files and return to draft status. Then you can correct the data and click "Generate" again.
Why does the format change in older periods?
CONTEXT: SUNAT updated the "Structured Data" format in October 2023 (transition to SIRE).
The module detects the date automatically: before Oct/23 it uses "&" separators, and afterwards it uses SIRE's 26-digit concatenation. No manual adjustment is needed.
Is it compatible with Odoo Online (SaaS)?
NOT COMPATIBLE REASON: This module requires custom SQL functions (UDF) that are not allowed in Odoo Online's multi-tenant environment.
COMPATIBLE WITH: Odoo.SH, Ganemo Online, On-Premise and self-hosted Odoo Enterprise.
Support and Demos
EMAILleads@ganemo.com

Ganemo Help Desk

Need specialized technical assistance for your PLE filing? Our team of accounting engineers is at your disposal.

TICKETayuda@ganemo.com

Copyright © 2026 Ganemo. All rights reserved.

Excellence in Accounting Localization for Odoo | ganemo.com

Specifications

Version 18.0, 19.0