I'm a little confused about how treasure works in Pathfinder.
On the one hand you have the table 12-5 which lists how much treasure should be given per encounter with a ruling that NPC encounters should be followed by zero treasure encounters.
On the other you have the fact that each creature has a treasure stat-line which tells you how much treasure they themselves produce.
So which one should be used? Do you work out random treasure equal to the amount for the encounter? Or do you simply use the treasure from the monsters stat block (and if it's standard make it up to the value given in table 12-5 for a monster of that level).
Or even a combination where you use the treasure line of each monster and make up any deficit with random treasure?