Open eprbell opened 2 years ago
Hi @eprbell, Australia's tax year is from 1st July to 30th June. I don't see any way to change the default behaviour of report generation (1st January to 31st December) through the exposed class methods. Any suggestions?
There is nothing blocking you from sorting the data into years based on that calendar. RP2 gives you all the data by default and you can then sort that however you want. For example, in the tax report for Japan I sorted tax years like this:
# Sort all in and out transactions by year, the fee from intra transactions must be reported
for entry in chain(in_transaction_set, out_transaction_set, intra_transaction_set): # type: ignore
transaction: AbstractTransaction = cast(AbstractTransaction, entry)
years_2_transaction_sets.setdefault(transaction.timestamp.year, []).append(entry)
I just used the timestamp year, but you could easily change that to filter the data however you want.
What @macanudo527 is correct. I'll only add a couple of details:
Point 1 is available today. Points 2 and 3 could be done as an enhancement.
RP2 and DaLI have a programmable plugin architecture for countries, accounting methods, report generators and more. Adding support for a new country is a high-impact activity because it allows many new potential users to get access to RP2 and DaLI.
Here's how to add support for a new country:
get_default_accounting_method()
andget_accounting_methods()
methods;get_report_generators()
method;If you notice the country-specific infrastructure is missing a feature that is required to express taxes for the new country, open an issue to let the RP2 community know.