mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user