Merge pull request #5352 from pacodelaluna/change-date-displayed-on-sales-tax-report

Change date displayed on sales_tax reports
This commit is contained in:
Matt-Yorkley
2020-05-11 09:56:38 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ module OpenFoodNetwork
# @return [Array]
def row_for(line_item, order)
[
order.created_at,
order.completed_at.strftime("%F %T"),
order.id,
order.bill_address.full_name,
order.email,

View File

@@ -57,7 +57,7 @@ module OpenFoodNetwork
totals = totals_of order.line_items
shipping_cost = shipping_cost_for order
[order.number, order.created_at, totals[:items], totals[:items_total],
[order.number, order.completed_at.strftime("%F %T"), totals[:items], totals[:items_total],
totals[:taxable_total], totals[:sales_tax], shipping_cost, order.shipping_tax, order.enterprise_fee_tax, order.total_tax,
order.bill_address.full_name, order.distributor.andand.name]
end

View File

@@ -38,7 +38,7 @@ module OpenFoodNetwork
table = subject.table
expect(table[0]).to eq([
order.reload.created_at,
order.reload.completed_at.strftime("%F %T"),
order.id,
bill_address.full_name,
order.email,