summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-11-11 16:01:14 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-11-11 16:01:14 +0700
commit704f27afd94787260543a2b6fed2ecfa13e786cb (patch)
tree670aba77e822ff27cdf6d33214febbf93a3d1a4a
parentc1fec44860dae0d762959f1ab34617f6ef6e42cf (diff)
<Miqdad> fix coretax xml
-rw-r--r--indoteknik_custom/models/coretax_fatur.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/indoteknik_custom/models/coretax_fatur.py b/indoteknik_custom/models/coretax_fatur.py
index 7e0de919..cabcd5d6 100644
--- a/indoteknik_custom/models/coretax_fatur.py
+++ b/indoteknik_custom/models/coretax_fatur.py
@@ -148,8 +148,6 @@ class CoretaxFaktur(models.Model):
quantity = line_quantity
total_discount = round(line_discount, 2)
coretax_id = line.product_uom_id.coretax_id
- uom_name = line.product_uom_id.name
-
# Calculate other tax values
otherTaxBase = round(subtotal * (11 / 12), 2) if subtotal else 0
vat_amount = round(otherTaxBase * 0.12, 2)
@@ -161,7 +159,7 @@ class CoretaxFaktur(models.Model):
ET.SubElement(good_service, 'Opt').text = 'A'
ET.SubElement(good_service, 'Code').text = '000000'
ET.SubElement(good_service, 'Name').text = line_name
- ET.SubElement(good_service, uom_name).text = coretax_id
+ ET.SubElement(good_service, 'Unit').text = coretax_id
# ET.SubElement(good_service, 'Price').text = str(round(line_price_unit, 2)) if line_price_unit else '0'
ET.SubElement(good_service, 'Price').text = str(price_per_unit)
ET.SubElement(good_service, 'Qty').text = str(quantity)