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 committed 2021-08-23 21:44:12 +10:00
1 parent d267d04bed
commit bb8b85c375
3 files changed
+89 -8

No files matched your search

+2
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