Skip to content

Commit 274ef56

Browse files
committed
[FIX] l10n_id_efaktur: use shipping address for Column "ALAMAT LENGKAP"
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’ 2. Accounting > Customers > e-Faktur - Set a range of numbers (which are supposed to be assigned by the Indonesian government) 3. Accounting > Configuration > Settings - Fiscal Localization: select the Indonesian package 4. Accounting > Customers > Customers - Create a new res.partner: - Set the country ‘Indonesia’ - Check ‘ID PKP’ field - Fill Tax Address field - Fill NIK field - Under ‘Accounting tab’: set both accounting entries (Receivable + Payable) - Create a delivery address 5. Accounting > Customers > Invoices - Create a random invoice with the res.partner set in point 5. as the Customer - Confirm the invoice - Action > Download e-Faktur Under column ALAMAT LENGKAP the tax Address will be used, but the delivery address should be used Follows the official documentation with translation https://www.pajakku.com/tax-guide/12490/PER_DIRJEN_PJK/PER - 03/PJ/2022 (Article 6, paragraph 6) Translation: Paragraph 2 : The identity of the Buyer of Taxable Goods and Services or the Recipient of Taxable Goods and Services which includes name, address, NPWP, NIK, and passport number as referred to in Article 5 letter b must be filled in accordance with the actual or actual name, address, NPWP, NIK, and passport number. Paragraph 6 : In the event that the delivery of Taxable Goods and/or Taxable Service is made to the Buyer of Taxable Goods and/or Receiver of Taxable Service which is the place where the VAT or VAT and STLG payable is concentrated, but the Taxable Goods and/or Taxable Service is sent or delivered to the place where the VAT or VAT and STLG payable is centralized, the following provisions shall apply: a. the name and NPWP as referred to in paragraph (2) shall be the name and NPWP of PKP where the VAT or VAT and STLG payable is centralized; and b. the address as referred to in paragraph (2) shall be the address of the place where the VAT or VAT and STLG payable that is centralized receives the Taxable Goods and/or Services. opw-2878096 closes odoo#114071 X-original-commit: 15dc3de Signed-off-by: Josse Colpaert <jco@odoo.com> Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
1 parent 4d80d30 commit 274ef56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

addons/l10n_id_efaktur/models/account_move.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ def _generate_efaktur_invoice(self, delimiter):
153153
else:
154154
number_ref = str(move.name) + " " + nik
155155

156-
street = ', '.join([x for x in (move.partner_id.street, move.partner_id.street2) if x])
156+
shipping_partner = move.partner_shipping_id
157+
street = ', '.join([x for x in (shipping_partner.street, shipping_partner.street2) if x])
157158

158159
invoice_npwp = '000000000000000'
159160
if move.partner_id.vat and len(move.partner_id.vat) >= 12:
@@ -171,7 +172,7 @@ def _generate_efaktur_invoice(self, delimiter):
171172
eTax['TANGGAL_FAKTUR'] = '{0}/{1}/{2}'.format(move.invoice_date.day, move.invoice_date.month, move.invoice_date.year)
172173
eTax['NPWP'] = invoice_npwp
173174
eTax['NAMA'] = move.partner_id.name if eTax['NPWP'] == '000000000000000' else move.partner_id.l10n_id_tax_name or move.partner_id.name
174-
eTax['ALAMAT_LENGKAP'] = move.partner_id.contact_address.replace('\n', '') if eTax['NPWP'] == '000000000000000' else move.partner_id.l10n_id_tax_address or street
175+
eTax['ALAMAT_LENGKAP'] = move.partner_id.contact_address.replace('\n', '') if eTax['NPWP'] == '000000000000000' else shipping_partner.l10n_id_tax_address or street
175176
eTax['JUMLAH_DPP'] = int(float_round(move.amount_untaxed, 0)) # currency rounded to the unit
176177
eTax['JUMLAH_PPN'] = int(float_round(move.amount_tax, 0))
177178
eTax['ID_KETERANGAN_TAMBAHAN'] = '1' if move.l10n_id_kode_transaksi == '07' else ''

0 commit comments

Comments
 (0)