Skip to content

Commit f83efd8

Browse files
committed
Release 2.59.2
1 parent 5e0c99d commit f83efd8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+43
-46
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.59.1
1+
2.59.2

app/assets/javascripts/backend/purchase_invoices.js.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@
5959
$('#new_purchase_invoice').on 'cocoon:after-remove', E.Purchases.compute_amount
6060
$('.edit_purchase_invoice').on 'cocoon:after-remove', E.Purchases.compute_amount
6161

62-
$(document).on 'click', '.nested-fields .edit-item[data-edit="item-form"]', (event) ->
63-
vatSelectedValue = $(event.target).closest('.nested-fields').find('.item-display .vat-rate').attr('data-selected-value')
64-
$(event.target).closest('.nested-fields').find('.nested-item-form:visible .vat-total').val(vatSelectedValue)
65-
6662
$('#new_purchase_invoice table.list').bind 'cocoon:after-insert', (event, insertedItem) ->
6763
return if !insertedItem?
6864
new_id = insertedItem.html().match(new RegExp('\\[(\\d+)\\]'))[1] #HACK: Get id from inputs

app/assets/javascripts/backend/trade.js.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
else if input.val() is ""
8080
input.val(0)
8181

82-
if data.tax_id?
83-
item.find(options.tax or "*[data-trade-component='tax']").val(data.tax_id)
82+
if data.tax_id?
83+
item.find(options.tax or "*[data-trade-component='tax']").val(data.tax_id)
8484

8585
# Compute totals
8686
if ['change', 'readystatechange'].includes event.type

app/decorators/activity_decorator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def multiply_costs(costs, multiplier)
6666
end
6767

6868
def divider_costs(costs, divider)
69-
costs.each { |key, value| costs[key] = value / divider unless value.zero? }
69+
costs.each { |key, value| costs[key] = value / divider unless divider.zero? }
7070
end
7171

7272
def human_costs(costs)

app/views/backend/purchase_invoices/_item_fields.html.haml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
%label{ class: 'amount-including-taxes', data: { item_value: "input.invoice-total" } }= f.object.variant ? f.object.variant.name : 'ERROR'
3737
%label= Nomen::Currency.find(f.object.currency).symbol
3838
%label{ class: "invoice-second-row-label"}= :vat_rate.tl
39-
%label{ class: 'vat-rate', data: { item_value: "select.vat-total option:selected", selected_value: f.object.tax_id } }= f.object.variant ? f.object.variant.name : 'ERROR'
39+
%label{ class: 'vat-rate', data: { item_value: "select.vat-total option:selected" } }= f.object.variant ? f.object.variant.name : 'ERROR'
4040
4141
%tr.nested-item-form{data: {item_id: item.parcels_purchase_invoice_items.first&.id } }
4242
%td.item-form{colspan: 20}
@@ -59,7 +59,8 @@
5959
= '%'
6060

6161
.vat-total-controls
62-
= f.input(:tax_id, label: :vat_rate.tl, collection: Tax.current.collect{|t| [t.short_label, t.id, {'data-rate' => ((100 + t.usable_amount)/100)}]}, selected: f.object.tax_id, input_html: { class: "vat-total", data: {value: 'rate', trade_component: "tax"}})
62+
-#- byebug
63+
= f.input(:tax_id, label: :vat_rate.tl, collection: Tax.current.collect{|t| [t.short_label, t.id, {'data-rate' => ((100 + t.usable_amount)/100)}]}, input_html: { class: "vat-total", data: {value: 'rate', trade_component: "tax"}})
6364

6465
.pta-controls.pre-tax-invoice-total-controls
6566
= f.input :pretax_amount, wrapper: :append do

public/404.arb.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>الصفحة التي تبحث عنها غير موجودة</h1>
5252
<p>كنت قد أخطأت في كتابة عنوان أو الصفحة قد تحركت.</p>
5353
</div>
5454
</div>
55-
<div class='dialog legals'>Ekylibre 2.59.1
55+
<div class='dialog legals'>Ekylibre 2.59.2
5656
</div>
5757
</body>
5858
</html>

public/404.cmn.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>您正在寻找不存在的页面</h1>
5252
<p>您可能输入了错误的地址或网页可能已移动。</p>
5353
</div>
5454
</div>
55-
<div class='dialog legals'>Ekylibre 2.59.1
55+
<div class='dialog legals'>Ekylibre 2.59.2
5656
</div>
5757
</body>
5858
</html>

public/404.deu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>Die Seite, die Sie suchen ist nicht vorhanden</h1>
5252
<p>Sie können die Adresse falsch eingegeben oder die Seite verschoben haben.</p>
5353
</div>
5454
</div>
55-
<div class='dialog legals'>Ekylibre 2.59.1
55+
<div class='dialog legals'>Ekylibre 2.59.2
5656
</div>
5757
</body>
5858
</html>

public/404.fra.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>La page que vous voulez n’existe pas</h1>
5252
<p>Vous pouvez avoir mal saisi l’adresse ou la page peut avoir été déplacée.</p>
5353
</div>
5454
</div>
55-
<div class='dialog legals'>Ekylibre 2.59.1
55+
<div class='dialog legals'>Ekylibre 2.59.2
5656
</div>
5757
</body>
5858
</html>

public/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>The page you were looking for doesn't exist</h1>
5252
<p>You may have mistyped the address or the page may have moved.</p>
5353
</div>
5454
</div>
55-
<div class='dialog legals'>Ekylibre 2.59.1
55+
<div class='dialog legals'>Ekylibre 2.59.2
5656
</div>
5757
</body>
5858
</html>

0 commit comments

Comments
 (0)