mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-16 19:16:49 +00:00
Compare commits
7 Commits
RachL-patc
...
v5.0.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a7aed154c | ||
|
|
711f37bce1 | ||
|
|
a493d70f5c | ||
|
|
7a5074cc90 | ||
|
|
41ffe848ed | ||
|
|
0797314360 | ||
|
|
3302f0e78d |
2
Gemfile
2
Gemfile
@@ -86,7 +86,7 @@ gem "active_model_serializers", "0.8.4"
|
||||
gem 'activerecord-session_store'
|
||||
gem 'acts-as-taggable-on'
|
||||
gem 'angularjs-file-upload-rails', '~> 2.4.1'
|
||||
gem 'bigdecimal', '3.0.2'
|
||||
gem 'bigdecimal'
|
||||
gem 'bootsnap', require: false
|
||||
gem 'geocoder'
|
||||
gem 'gmaps4rails'
|
||||
|
||||
@@ -180,7 +180,7 @@ GEM
|
||||
base64 (0.2.0)
|
||||
bcp47_spec (0.2.1)
|
||||
bcrypt (3.1.20)
|
||||
bigdecimal (3.0.2)
|
||||
bigdecimal (3.1.8)
|
||||
bindata (2.5.0)
|
||||
bindex (0.8.1)
|
||||
bootsnap (1.18.3)
|
||||
@@ -865,7 +865,7 @@ DEPENDENCIES
|
||||
angularjs-rails (= 1.8.0)
|
||||
arel-helpers (~> 2.12)
|
||||
aws-sdk-s3
|
||||
bigdecimal (= 3.0.2)
|
||||
bigdecimal
|
||||
bootsnap
|
||||
bugsnag
|
||||
bullet
|
||||
|
||||
@@ -58,7 +58,7 @@ module VariantUnits
|
||||
def option_value_value_unit_scaled
|
||||
unit_scale, unit_name = scale_for_unit_value
|
||||
|
||||
value = (@nameable.unit_value / unit_scale).to_d.truncate(2)
|
||||
value = (@nameable.unit_value.to_d / unit_scale).round(2)
|
||||
|
||||
[value, unit_name]
|
||||
end
|
||||
|
||||
@@ -10,7 +10,8 @@ export default class extends Controller {
|
||||
|
||||
changePage(event) {
|
||||
const productsForm = document.querySelector("#products-form");
|
||||
productsForm.scrollIntoView({ behavior: "smooth" });
|
||||
if (productsForm) productsForm.scrollIntoView({ behavior: "smooth" });
|
||||
|
||||
this.page.value = event.target.dataset.page;
|
||||
this.submitSearch();
|
||||
this.page.value = 1;
|
||||
|
||||
@@ -145,7 +145,8 @@ RSpec.describe "Reporting::Reports::SalesTax::SalesTaxTotalsByOrder" do
|
||||
total = report.total_excl_tax(query_row)
|
||||
|
||||
# discounted order total - discounted order tax
|
||||
expect(total).to eq((113.3 - 10) - (3.3 - 0.29))
|
||||
# (113.3 - 10) - (3.3 - 0.29)
|
||||
expect(total).to eq 100.29
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user