[FIX] l10n_id_efaktur: compliance with E-Faktur 3.1
To generate an e-faktur 1. Settings > Users & Companies/Compagnies: - Create a new company ‘ID Indonesia’: - Set the state (e.g Yogyakarta (ID)) - Set the country ‘Indonesia’ Accounting: 2. > Customers > e-Faktur - Set a range of numbers (which are supposed to be assigned by the Indonesian government); 3. > Configuration > Settings - Fiscal Localization: select the Indonesian package 4. > Customers > Customers - Create a new res.partner: - Set the country ‘Indonesia’ - Check ‘ID PKP’ field - Under ‘Accounting tab’: set both accounting entries (Receivable + Payable) 5. > Customers > Invoices - Create a random invoice with the res.partner set in point 5. as the Customer - Confirm the invoice - Action > Download e-Faktur --- When validating the e-faktur users will see the error Import Faktur Error ETAX-30005 : Error Objek Mapping This occur because E-Faktur standard update from 3.0 to 3.1 A column 'KODE_DOKUMEN_PENDUKUNG' is now mandatory opw-2753810 closes odoo/odoo#85696 X-original-commit: 3f0db73ef7c51c7365afbc7604ea66fa6765e6e7 Signed-off-by: Josse Colpaert <jco@odoo.com> Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import re
|
||||
from odoo import api, fields, models, _
|
||||
from odoo.exceptions import UserError, ValidationError
|
||||
|
||||
FK_HEAD_LIST = ['FK', 'KD_JENIS_TRANSAKSI', 'FG_PENGGANTI', 'NOMOR_FAKTUR', 'MASA_PAJAK', 'TAHUN_PAJAK', 'TANGGAL_FAKTUR', 'NPWP', 'NAMA', 'ALAMAT_LENGKAP', 'JUMLAH_DPP', 'JUMLAH_PPN', 'JUMLAH_PPNBM', 'ID_KETERANGAN_TAMBAHAN', 'FG_UANG_MUKA', 'UANG_MUKA_DPP', 'UANG_MUKA_PPN', 'UANG_MUKA_PPNBM', 'REFERENSI']
|
||||
FK_HEAD_LIST = ['FK', 'KD_JENIS_TRANSAKSI', 'FG_PENGGANTI', 'NOMOR_FAKTUR', 'MASA_PAJAK', 'TAHUN_PAJAK', 'TANGGAL_FAKTUR', 'NPWP', 'NAMA', 'ALAMAT_LENGKAP', 'JUMLAH_DPP', 'JUMLAH_PPN', 'JUMLAH_PPNBM', 'ID_KETERANGAN_TAMBAHAN', 'FG_UANG_MUKA', 'UANG_MUKA_DPP', 'UANG_MUKA_PPN', 'UANG_MUKA_PPNBM', 'REFERENSI', 'KODE_DOKUMEN_PENDUKUNG']
|
||||
|
||||
LT_HEAD_LIST = ['LT', 'NPWP', 'NAMA', 'JALAN', 'BLOK', 'NOMOR', 'RT', 'RW', 'KECAMATAN', 'KELURAHAN', 'KABUPATEN', 'PROPINSI', 'KODE_POS', 'NOMOR_TELEPON']
|
||||
|
||||
@@ -176,6 +176,7 @@ class AccountMove(models.Model):
|
||||
eTax['JUMLAH_PPN'] = int(round(move.amount_tax, 0))
|
||||
eTax['ID_KETERANGAN_TAMBAHAN'] = '1' if move.l10n_id_kode_transaksi == '07' else ''
|
||||
eTax['REFERENSI'] = number_ref
|
||||
eTax['KODE_DOKUMEN_PENDUKUNG'] = '0'
|
||||
|
||||
lines = move.line_ids.filtered(lambda x: x.product_id.id == int(dp_product_id) and x.price_unit < 0 and not x.display_type)
|
||||
eTax['FG_UANG_MUKA'] = 0
|
||||
|
||||
Reference in New Issue
Block a user