2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 19:50:59 +00:00

Separate purchase_price and purchase_price_currency for StockItem serializer

- Add "purchase_price_string" for a read-only stringified representation
- Unit testing
This commit is contained in:
Oliver
2021-08-23 21:44:12 +10:00
parent d267d04bed
commit bb8b85c375
3 changed files with 89 additions and 8 deletions

View File

@ -12,6 +12,8 @@
tree_id: 0
lft: 0
rght: 0
purchase_price: 123
purchase_price_currency: AUD
# 5,000 screws in the bathroom
- model: stock.stockitem