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:
Em-AK
2015-12-13 16:42:32 +01:00
parent a3874d42af
commit fcc328f00a
3 changed files with 6 additions and 4 deletions

View File

@@ -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