Facts
The appellant ([X. AG] , hereinafter 'the taxpayer') is a joint-stock company registered in the commercial register on 16 December 2002, with its tax domicile in [U.] /NW, and until 2016 in the canton of Lucerne. Its purposes include, in particular, services in the financial and real estate sectors as well as the management and sale of land. The sole shareholder and former board member ('the board member') controlled the company.
On 10 November 2005, the Lucerne Tax Administration assessed the taxpayer for the first financial year (16.12.2002 to 31.12.2003) in accordance with its declaration, with a taxable net profit of CHF 47'400.--. The tax years 2004 and 2005 were assessed at the authorities' discretion (net profit CHF 28'300.-- and CHF 115'000.--, respectively) and became final without challenge.
On 22 April 2008, the Lucerne Tax Office ('the Tax Office') initiated back-tax and tax evasion proceedings concerning 2004. An investigation by the Criminal and Investigation Division of the Federal Tax Administration ('FTA') revealed brokerage commissions recorded twice, non-operating provisions, and booked Nonvaleurs (bad debts). On 7 December 2012, proceedings for 2003 to 2005 were announced.
On 17 November 2014, the Tax Office concluded the proceedings, found the taxpayer guilty of completed tax evasion for 2003-2005, fined it CHF 64'140.--, and assessed the evaded amount, including default interest, at CHF 83'504.10. Upon objection, on 22 April 2015 it discontinued the proceedings for 2004, fined the taxpayer CHF 63'160.-- for 2003 and 2005, and assessed the amount at CHF 82'196.60.
On 20 December 2016, the Lucerne Cantonal Court, 4th Division, partially upheld the appeal: it annulled the back taxes for 2003 and acquitted the taxpayer of the charge of completed tax evasion for 2003. For 2005, it set the taxable net profit at CHF 656'055.--, remanded the matter for determination of the additional payment, found the taxpayer guilty of completed tax evasion for 2005, and imposed a fine of CHF 30'656.-- (factor 2/3).
By appeal of 27 January 2017 (proceedings 2C_84/2017), the FTA requested that a taxable net profit of CHF 49'509.10 and equity of CHF 349'509.10 be set for 2003, and that a conviction for intentional completed tax evasion and a fine of CHF 45'985.-- (factor 1) be imposed for 2005. By appeal of 1 February 2017 (proceedings 2C_130/2017), the taxpayer requested that the back taxes be waived and that it be acquitted of the charge of completed tax evasion; in the alternative, the matter should be remanded. The Cantonal Court and the Tax Office requested dismissal, and the FTA requested non-entry on the appeal or, in the alternative, dismissal.
Considerations
The two appeals concern the same parties, the same decision, and identical legal questions, and they are therefore joined and decided in a single judgment (Art. 71 FSCA in conjunction with Art. 24 FCPA). A remand decision is in principle a non-appealable interlocutory decision (Art. 90 FSCA). Exceptionally, a final decision exists where the lower authority no longer has any room for decision and the remand serves only the computational implementation. This applies here, since the Cantonal Court has numerically determined the taxable net profit for 2005. The formally and timely filed appeals are therefore admissible. The Federal Supreme Court applies the law ex officio but examines only the complaints raised, and for fundamental rights complaints a qualified duty to raise objections applies. It bases its decision on the facts established by the lower court, unless these were established in a manifestly incorrect or legally infringing manner (Art. 105 FSCA).
Regarding the tax period 2003 (proceedings 2C_84/2017): Back taxes under Art. 151 DFTA require the existence of new facts or evidence. The FTA relies on a later-discovered, revised second financial statement showing a profit of CHF 49'509.10. The lower court addressed the audit report of [Z. GmbH] , which shows approximately CHF 2'000.-- more profit. The difference results from differing recorded accruals. The lower court was entitled to regard the accounting in the first financial statement as a defensible, diligent exercise of discretion by the taxpayer and to deny a correction of the balance sheet. The request to increase the taxable income by CHF 2'109.10 is therefore dismissed. The request to increase the taxable equity is not entered upon for lack of legal interest, since no capital tax is levied under the direct federal tax.
Regarding the tax period 2005 (proceedings 2C_84/2017): The FTA complains that the board member acted with conditional intent by submitting multiple vouchers for the same commissions to his fiduciary and by mixing private and company finances. The lower court, after hearing the board member as a informant, convincingly explained that he did not recognize the deficiencies and trusted the bookkeeper and auditor. Thus only negligent causation of tax evasion exists (Art. 175 para. 1 and Art. 181 para. 1 DFTA). The FTA does not demonstrate in what respect the lower court's findings are manifestly incorrect, and its general statements do not meet the requirements for reasoning. The FTA's appeal is therefore dismissed, insofar as it is admissible.
Regarding the tax period 2005 (proceedings 2C_130/2017): The lower court upheld adjustments for brokerage commissions recorded twice amounting to CHF 213'600.-- and benefits in kind of CHF 350'000.--, resulting…