diff options
| -rw-r--r-- | vit_efaktur/wizard/pk.py | 17 |
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']) |
