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

@@ -11,7 +11,7 @@ module OpenFoodNetwork
it "uses defaults when blank params are passed" do
report.instance_variable_get(:@opts).should == {invoice_date: Date.civil(2015, 5, 5),
due_date: Date.civil(2015, 5, 19),
due_date: Date.civil(2015, 6, 5),
account_code: 'food sales',
report_type: 'summary'}
end