diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-04-28 09:03:04 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-04-28 09:03:04 +0700 |
| commit | 57d55f545da0fc501a9828bb3ca2988f126b241a (patch) | |
| tree | 75b98126546eea20b90ca777b2887b4813946871 /indoteknik_api/models/sale_order.py | |
| parent | 3592c254ca5baf4a0a769f500f9e28a9cbc272a7 (diff) | |
| parent | 6fa5de951abc02884eb37cdc6786c0f3d141ccc5 (diff) | |
Merge branch 'staging' into release
Diffstat (limited to 'indoteknik_api/models/sale_order.py')
| -rw-r--r-- | indoteknik_api/models/sale_order.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py index 76532d20..21ee9396 100644 --- a/indoteknik_api/models/sale_order.py +++ b/indoteknik_api/models/sale_order.py @@ -10,6 +10,7 @@ class SaleOrder(models.Model): 'id': sale_order.id, 'name': sale_order.name, 'sales': sale_order.user_id.name, + 'amount_untaxed': sale_order.amount_untaxed, 'amount_tax': sale_order.amount_tax, 'amount_total': sale_order.amount_total, 'purchase_order_name': sale_order.partner_purchase_order_name, @@ -60,7 +61,8 @@ class SaleOrder(models.Model): product['price'] = { 'price': line.price_unit, 'discount_percentage': line.discount, - 'price_discount': line.price_unit - (line.price_unit * (line.discount/100)) + 'price_discount': line.price_reduce_taxexcl, + 'subtotal': line.price_subtotal } product['quantity'] = line.product_uom_qty data_with_detail['products'].append(product) |
