update_earnings looks for subscriptions from other business units

Bug #1032736 reported by Anthony Lenton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Fix Released
Medium
Unassigned

Bug Description

When running the update_earnings command with a monthly vat report, many many lines of output are produced containing:

ERROR:root:Unable to find subscription with payment id 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.

This is because the VAT report includes U1 transactions, that clearly won't be found in sca's DB.

The report contains a 'Business unit' column that should allow sca to only attempt to update payments that are for sca. The command should only attempt to find subscriptions that are for the 'Desktop' business unit, not 'Online Services' in the report.

Changed in software-center-agent:
status: New → Confirmed
importance: Undecided → Medium
Changed in software-center-agent:
status: Confirmed → Fix Committed
Dave Morley (davmor2)
Changed in software-center-agent:
status: Fix Committed → Fix Released
milestone: none → 12.09.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.