Currency field

merge-requests/30/head
Bob Mottram 2021-07-27 21:35:55 +01:00
parent 65ee4a6cee
commit 8ff707fbd2
1 changed files with 2 additions and 2 deletions

View File

@ -835,7 +835,7 @@ def sharesCatalogAccountEndpoint(baseDir: str, httpPrefix: str,
shareId = getValidSharedItemID(owner, item['displayName']) shareId = getValidSharedItemID(owner, item['displayName'])
dfcId = item['dfcId'].split('#')[1] dfcId = item['dfcId'].split('#')[1]
priceStr = item['itemPrice'] + ' ' + item['currency'] priceStr = item['itemPrice'] + ' ' + item['itemCurrency']
catalogItem = { catalogItem = {
"@id": shareId, "@id": shareId,
"@type": "DFC:SuppliedProduct", "@type": "DFC:SuppliedProduct",
@ -919,7 +919,7 @@ def sharesCatalogEndpoint(baseDir: str, httpPrefix: str,
shareId = getValidSharedItemID(owner, item['displayName']) shareId = getValidSharedItemID(owner, item['displayName'])
dfcId = item['dfcId'].split('#')[1] dfcId = item['dfcId'].split('#')[1]
priceStr = item['itemPrice'] + ' ' + item['currency'] priceStr = item['itemPrice'] + ' ' + item['itemCurrency']
catalogItem = { catalogItem = {
"@id": shareId, "@id": shareId,
"@type": "DFC:SuppliedProduct", "@type": "DFC:SuppliedProduct",