Tax tool multivalued trade amounts

Post any bugs, problems or feature requests here.
Brend
Brend
Gerben
Gerben
Dragonmaster352
Dragonmaster352

Tax tool multivalued trade amounts

Post Brend » Sat Apr 23, 2016 10:53 pm
User avatar
Brend
 
You can add the same goods to a trade twice. For example:

Code: Select all
<data !trade #Product exchange ACA+Outpost upkeep>
To [ref]: novalia system
From [ref]: my'enru system
Consumer Goods: 75
Construction Materials: 75
Food: 100
Consumer Goods:20
Exotic Matter Devices: 20
</data>

It states:
Consumer Goods: 75
Consumer Goods:20

The tax tool acts strangely by picking a random value from the set.
Post Gerben » Sun Apr 24, 2016 12:40 pm
Gerben
 
Either outcome is wrong as a result since the ACA never get the full amount of 95
Post Brend » Sun Apr 24, 2016 10:06 pm
User avatar
Brend
 
Nice insight. I agree that summing them up is the least problematic solution. I will take this into account when rebuilding the tax tool.
Post Gerben » Sun Apr 24, 2016 11:06 pm
Gerben
 
:p

Or we could just ask people not to use sets of the same good in the same trade datablock. Would save you the extra work..

Btw when I checked this afternoon, the 20 amount came up every time, so are you sure it's random?
Post Brend » Sun Apr 24, 2016 11:09 pm
User avatar
Brend
 
You're right, it is not random. It is arbitrary: the database probably returns the values in the order it has them stored, on which it gives no guarantees. Apparently it is currently putting 20 first.
Post Dragonmaster352 » Sun Apr 24, 2016 11:30 pm
User avatar
Dragonmaster352
Storyteller
 
I take it you fixed it for now as I am now receiving the correct amount.

Thank you kindly.
Post Brend » Sun Apr 24, 2016 11:33 pm
User avatar
Brend
 
No, I did nothing.

All credit for fixing this goes to Stuiter -- she simply fixed her bookkeeping page ^_^
Post Dragonmaster352 » Sun Apr 24, 2016 11:48 pm
User avatar
Dragonmaster352
Storyteller
 
Ok thank you Stuiter.

Note to self: Past Dragonmaster352 is a liar.

Other note to self: Future Dragonmaster352 thinks making these notes to self is stupid and not very funny.

Return to Technical