summaryrefslogtreecommitdiff
path: root/vit_efaktur
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-08-12 11:30:46 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-08-12 11:30:46 +0700
commit51e73f257f5c5c55c027b588d4a6588006f2d13c (patch)
tree2cbac234983792d18e61fe2cee584e1a5f800751 /vit_efaktur
parentdfcc0c754bce99bffd1d9486eb3d456fac0e2039 (diff)
fix error blank line
Diffstat (limited to 'vit_efaktur')
-rw-r--r--vit_efaktur/wizard/pk.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/vit_efaktur/wizard/pk.py b/vit_efaktur/wizard/pk.py
index 5edb13f..752af61 100644
--- a/vit_efaktur/wizard/pk.py
+++ b/vit_efaktur/wizard/pk.py
@@ -321,22 +321,9 @@ class efaktur_pk_wizard(models.TransientModel):
def baris6(self, headers, csvwriter, line):
- #harga_total = round(line['price_subtotal'])
+ if not line['product_id']:
+ return
product_id = self.env['product.product'].browse(line['product_id'][0])
- # harga_satuan = line['price_unit']
- # diskon = line['discount']
- # harga_setelah_discount = harga_satuan-(harga_satuan*diskon/100)
- # tax_amount = 0
- # tax_ids = line['tax_ids']
- # for tax_id in tax_ids:
- # tax = self.env['account.tax'].search([('id', '=', tax_id)], limit=1)
- # tax_percentage = tax.amount
- # tax_include = tax.price_include
- # if tax_include:
- # tax_amount = harga_setelah_discount - (harga_setelah_discount / (1 + tax_percentage / 100))
- # else:
- # tax_amount = harga_setelah_discount + (harga_setelah_discount*tax_percentage/100)
- # dpp_satuan = harga_setelah_discount-tax_amount
jumlah_barang = line['quantity']
harga_total = round(line['price_subtotal'])