merge-requests/30/head
Bob Mottram 2021-07-27 21:29:29 +01:00
parent 4198e12c42
commit 51ff7f8126
2 changed files with 8 additions and 6 deletions

View File

@ -141,12 +141,13 @@ def _htmlSearchResultShare(sharedItem: {}, translate: {},
'<b>' + translate['Quantity'] + \ '<b>' + translate['Quantity'] + \
':</b> ' + str(sharedItem['itemQty']) + '<br>' ':</b> ' + str(sharedItem['itemQty']) + '<br>'
sharedItemsForm += \ sharedItemsForm += \
'<b>' + translate['Type'] + ':</b> ' + sharedItem['itemType'] + ' ' '<b>' + translate['Type'] + ':</b> ' + sharedItem['itemType'] + '<br>'
sharedItemsForm += \ sharedItemsForm += \
'<b>' + translate['Category'] + ':</b> ' + sharedItem['category'] + ' ' '<b>' + translate['Category'] + ':</b> ' + sharedItem['category'] + '<br>'
if sharedItem.get('location'): if sharedItem.get('location'):
sharedItemsForm += \ sharedItemsForm += \
'<b>' + translate['Location'] + ':</b> ' + sharedItem['location'] '<b>' + translate['Location'] + ':</b> ' + \
sharedItem['location'] + '<br>'
if sharedItem.get('itemPrice') and \ if sharedItem.get('itemPrice') and \
sharedItem.get('itemCurrency'): sharedItem.get('itemCurrency'):
if isfloat(sharedItem['itemPrice']): if isfloat(sharedItem['itemPrice']):

View File

@ -830,12 +830,13 @@ def htmlIndividualShare(actor: str, item: {}, translate: {},
'<b>' + translate['Quantity'] + ':</b> ' + \ '<b>' + translate['Quantity'] + ':</b> ' + \
str(item['itemQty']) + '<br>' str(item['itemQty']) + '<br>'
profileStr += \ profileStr += \
'<b>' + translate['Type'] + ':</b> ' + item['itemType'] + ' ' '<b>' + translate['Type'] + ':</b> ' + item['itemType'] + '<br>'
profileStr += \ profileStr += \
'<b>' + translate['Category'] + ':</b> ' + item['category'] + ' ' '<b>' + translate['Category'] + ':</b> ' + item['category'] + '<br>'
if item.get('location'): if item.get('location'):
profileStr += \ profileStr += \
'<b>' + translate['Location'] + ':</b> ' + item['location'] '<b>' + translate['Location'] + ':</b> ' + \
item['location'] + '<br>'
if item.get('itemPrice') and item.get('itemCurrency'): if item.get('itemPrice') and item.get('itemCurrency'):
if isfloat(item['itemPrice']): if isfloat(item['itemPrice']):
if float(item['itemPrice']) > 0: if float(item['itemPrice']) > 0: