After trade transaction, a pending offer is not automatically removed!

Bug report:

 

After you post or advertise an offer, it’s posted in the Trade section for 120 minutes.

However, if you got only 1 item, after a buyer purchases that item you sent, the offer (advert) will still be pending on the Market, even when you have 0 amount of such item/s.

 

This should be fixed!

 

Screenshot example: (If you hover on a blueprint advert, where the prices are -  if the item is sold and now at 0, it will still not be removed!)

8lCnpTa.png

 

Logs:

[2017.07.02 12.08.22.zip](< base_url >/applications/core/interface/file/attachment.php?id=14767)

0079314

1 hour ago, Skula1975 said:

0079314

I am also not sure, if that item that was last sold, is stuck at 1 or 0, but the main point is that it’s still there.