mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Update sales tax report
This commit is contained in:
@@ -96,8 +96,7 @@ module OpenFoodNetwork
|
||||
end
|
||||
|
||||
def shipping_cost_for(order)
|
||||
shipping_cost = order.adjustments.find_by(label: "Shipping").andand.amount
|
||||
shipping_cost.nil? ? 0.0 : shipping_cost
|
||||
order.shipments.first&.cost || 0.0
|
||||
end
|
||||
|
||||
def tax_included_in(line_item)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
require 'open_food_network/sales_tax_report'
|
||||
|
||||
module OpenFoodNetwork
|
||||
|
||||
Reference in New Issue
Block a user