Skip to content

Commit

Permalink
BAH-4141 | Refactor. The inclusive of the taxes amount has… (#196)
Browse files Browse the repository at this point in the history
* [Karthi] | BAH-4141 | Refactor. The inclusive of the taxes amount has been added issue has been fixed.

* [Karthi] | BAH-4141-1 | Refactor. The inclusive of the taxes amount has been added issue has been fixed.
  • Loading branch information
karthikeyansp91 authored Jan 17, 2025
1 parent 86c9e45 commit ebd4410
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bahmni_customer_return/models/bahmni_customer_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def onchange_product_ids(self):
'uom_id': line.product_uom.id,
'lot_id': line.lot_id.id if line.lot_id else False,
'expiry_date': line.expiry_date,
'unit_price': line.price_unit,
'unit_price': line.price_reduce_taxinc,
'sale_date': line.order_id.date_order,
'sale_order_ref': line.order_id.name,
'sale_order_id': line.order_id.id,
Expand Down Expand Up @@ -235,6 +235,7 @@ def create_partial_credit_note(self):
'name': line.sale_order_line_id.product_id.display_name or 'Product',
'quantity': line.qty,
'price_unit': line.sale_order_line_id.price_unit,
'tax_ids': [(6, 0, line.sale_order_line_id.tax_id.ids)],
'account_id': line.sale_order_line_id.product_id.categ_id.property_account_income_categ_id.id or self.env['ir.property']._get('property_account_income_categ_id', 'product.category').id,
}))
if self.discount_value > 0:
Expand Down

0 comments on commit ebd4410

Please sign in to comment.