-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CargoPhysical: If Cost does not have an Artist, it should still be processed as a Cost #198
Comments
Once you've taken a look at the current implimentation, we should have a chat about how artistless costs should be displayed. You might be right that "Unknown Cost" is the pseudo-Artist, but take a look and let me know how it feels. |
Coolio. Is it easy to pull down? |
Great - I can see that now. As a result, the total on the Uploads page is wrong. See sub issue @g105b |
@g105b I have added two sub issues above. |
I have made a Cargo Physical file for testing. Remember, this has been edited in Numbers and exported to .xlsx so might have some header gubbins in there. The data should handle all of the variations we need to test for: Earnings All data has been anonymised. I did notice in doing this that Costs without associated product actually do have a catalogue number. So if the product exists in TS it will have a catalogue number...so there is a link there that TS can make without user input. |
Summary Table:Earnings: £293.288 Costs: £2656.47 Outgoing: 0.00 (no splits for now) Profit: - £2272.18 ProductsArtist 1 Album 1 Earnings: £139.624 Artist 1 Album 2 Earnings: £0.00 Artist 2 Album 1 Earnings: £153.664 Non-product Costs: £17.95 |
I've made one extra database migration (renaming the |
Uploads table:
Summary Table:
Product Table:
|
Expectations from Test .xlsx file as uploaded previously: Uploads TabUploads TableNet amount (not Total Profit) = -£2,272.18 The uploads table should reflect the NET amount that the Label would see from the distributor when the statement is delivered. Then we break it down on the Products Tab. Products TabSummary Table
Products Table
Note: For Cargo Physical: Total Costs = COSTS + STORAGE COSTS |
@g105b see above. I made some corrections after coming back from a cup of tea and seeing some glaring errors on my part. |
I think there are still some errors but they're obvious as to what they should be (GVLI88888 Artist 2 - Album 1 should not have £2K profit, for example). |
@g105b there is a minus there, it's just been skewed by the page formatting I think |
I see what you mean. I've just updated the code, you should be able to do a pull. There's a new column in the Product table to keep track of its original Upload, so a migration is necessary. |
Ace! We're so close. I found one more bug. I'm adding something new to the test file so will send an updated file and output expectations. But simply - a Cost doesn't have to have an Artist to be imported. In Q4 2023 file there are some barcode reworks that have no Artist. There are two of them, and they total £13.14 which is the difference between what I see in TS and what I'm expecting. |
New file with a no Artist COST: |
Expectations from Test .xlsx file as uploaded previously: Uploads TabUploads TableNet amount (not Total Profit) = -£2,277.85 The uploads table should reflect the NET amount that the Label would see from the distributor when the statement is delivered. Then we break it down on the Products Tab. Products TabSummary Table
Products Table
Note: For Cargo Physical: Total Costs = COSTS + STORAGE COSTS |
Thank you. This is really clear and easy to work with. |
Can you take a look at the latest Excel file uploaded - there are strange things happening with this file, and I think it's to do with column U, which used to be |
My bad. That was left over from me doing calcs. here's a clean version: |
See Cargo Physical 2023 Q4.
There are a couple of costs that do not have an Artist in the Artist column.
They should still be imported, but be listed as
Unknown Cost
This also relates to another feature that I need to document, but is not dependent on that to be done if you do this first.
Once this is done, the total should be accurate.
The text was updated successfully, but these errors were encountered: