mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user