mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-19 00:27:25 +00:00
Display default xero invoice dates
fixes #682 * pre-fill the invoice_date and due_date in the xero report generation form * increase the default period between invoice_date and due_date to 1 month in XeroInvoiceReport
This commit is contained in:
@@ -6,8 +6,8 @@ module OpenFoodNetwork
|
||||
@opts = opts.
|
||||
reject { |k, v| v.blank? }.
|
||||
reverse_merge({report_type: 'summary',
|
||||
invoice_date: Date.today,
|
||||
due_date: 2.weeks.from_now.to_date,
|
||||
invoice_date: Time.zone.today,
|
||||
due_date: Time.zone.today + 1.month,
|
||||
account_code: 'food sales'})
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user