Skip to content
Permalink
Browse files

Fixeup getelems

  • Loading branch information...
kebeclibre committed Apr 18, 2019
1 parent 712cccf commit e181c23cc11ab05c060448734d1717e7571d4db3
Showing with 6 additions and 7 deletions.
  1. +6 −7 addons/website_quote/static/src/js/website_quotation.js
@@ -121,30 +121,29 @@ if(!$('.o_website_quote').length) {
var $linePriceTotal = $parentTr.find('.oe_order_line_price_total .oe_currency_value');
var $linePriceSubTotal = $parentTr.find('.oe_order_line_price_subtotal .oe_currency_value');

if (!$elPriceTotal.length && !$elPriceSubTotal.length) {
if (!$linePriceTotal.length && !$linePriceSubTotal.length) {
$linePriceTotal = $linePriceSubTotal = $parentTr.find('.oe_currency_value').last();
}

var $orderTotalUntaxed = $('[data-id="total_untaxed"]>span');
var $orderAmountUntaxed = $('[data-id="total_untaxed"]>span');
var $orderAmountTax = $('[data-id="total_taxes"]>span');
var $orderAmountTotal = $('[data-id="total_amount"]>span');

if (!$orderTotalUntaxed.length && !$orderAmountTax.length) {
$orderTotalUntaxed = $orderAmountTotal.eq(1);
if (!$orderAmountUntaxed.length && !$orderAmountTax.length) {
$orderAmountUntaxed = $orderAmountTotal.eq(1);
$orderAmountTax = $orderAmountTotal.eq(2);
$orderAmountTotal: $orderAmountTotal.eq(0).add($orderAmountTotal.eq(3));
$orderAmountTotal = $orderAmountTotal.eq(0).add($orderAmountTotal.eq(3));
}

return {
$lineQuantity: this.$el.parents('.input-group:first').find('.js_quantity'),
$linePriceSubTotal: $linePriceSubTotal,
$linePriceTotal: $linePriceTotal,
$orderTotalUntaxed: $orderTotalUntaxed,
$orderAmountUntaxed: $orderAmountUntaxed,
$orderAmountTax: $orderAmountTax,
$orderAmountTotal: $orderAmountTotal,
}
}

});

var update_button_list = [];

0 comments on commit e181c23

Please sign in to comment.
You can’t perform that action at this time.