Compare commits

..

3 commits

Author SHA1 Message Date
b7268918d0 fix deposit is net value 2023-09-29 10:13:08 +02:00
6c0c207d1f repair garbage collected tempfile 2023-09-28 15:43:12 +02:00
Philipp Rothmann
2d0c163f13 merge automatic group order invoice generation
see https://github.com/foodcoops/foodsoft/pull/907 for reference
and original work by viehlieb

Co-authored-by: viehlieb <pf@pragma-shift.net>

fix PDF Pdf

make explicit deposit in invoices work

add ordergroupname to invoice file name

mark bold sum for vat exempt foodcoops

download multiple group order invoice as zip
2023-09-21 21:28:03 +02:00

View file

@ -14,7 +14,7 @@ class DocumentsController < ApplicationController
else
'data IS NULL DESC, name'
end
sort = Arel.sql(sort) # this is okay as we don't use user params directly
@documents = Document.where(parent: @document).page(params[:page]).per(@per_page).order(sort)
end