Compare commits

..

4 commits

Author SHA1 Message Date
90e06a475f fix deposit is net value 2023-10-05 10:21:35 +02:00
f29ab603b6 repair garbage collected tempfile 2023-10-05 10:21:35 +02:00
Philipp Rothmann
93143c28f2 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-10-05 10:21:35 +02:00
Philipp Rothmann
6abf998b56 fix: documents sort sql needs Arel.sql 2023-10-02 22:48:24 +02:00

View file

@ -14,7 +14,7 @@ class DocumentsController < ApplicationController
else else
'data IS NULL DESC, name' 'data IS NULL DESC, name'
end 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) @documents = Document.where(parent: @document).page(params[:page]).per(@per_page).order(sort)
end end