summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2025-12-01 09:51:58 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2025-12-01 09:51:58 +0700
commit42cb9eef299048dcca942fee3c02c845e44893fd (patch)
treea01289e0076ad5236c7674ea00c49b8cd773fdba
parent73296b2a5e1baaa29770d4d91482c95d93740572 (diff)
<Miqdad> Coretax xml bquik always unit
-rw-r--r--indoteknik_custom/models/coretax_fatur.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/indoteknik_custom/models/coretax_fatur.py b/indoteknik_custom/models/coretax_fatur.py
index d93ca7b7..c098fd01 100644
--- a/indoteknik_custom/models/coretax_fatur.py
+++ b/indoteknik_custom/models/coretax_fatur.py
@@ -154,9 +154,6 @@ class CoretaxFaktur(models.Model):
uom = line.product_uom_id
coretax_id = uom.coretax_id if uom else 'UM.0018'
- bquick_id = 80007
- if invoice.partner_id.id == bquick_id:
- coretax_id = 'UM.0018'
# coretax_id = line.product_uom_id.coretax_id
# Calculate other tax values
@@ -170,7 +167,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, 'Unit').text = coretax_id
+ ET.SubElement(good_service, 'Unit').text = coretax_id if invoice.partner_id.id != 80007 else 'UM.0018'
# 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)