def get_stock_information_html(supplier, product):
 stock = StockCount.objects.filter(product=product, supplier=supplier).first()
 context = {'div_id': get_stock_information_div_id(supplier, product), 'sales_decimals': (product.sales_unit.decimals if product.sales_unit else 0), 'sales_unit': (product.sales_unit.short_name if product.sales_unit else ''), 'stock': stock}
 if ('shuup.notify' in settings.INSTALLED_APPS):
  context['alert_limit'] = True
 return render_to_string('shuup/simple_supplier/admin/stock_information.jinja', context)

def get_stock_information_html ( supplier , product ) : stock = StockCount . objects . filter ( product = product , supplier = supplier ) . first ( ) context = { 'div_id' : get_stock_information_div_id ( supplier , product ) , 'sales_decimals' : ( product . sales_unit . decimals if product . sales_unit else 0 ) , 'sales_unit' : ( product . sales_unit . short_name if product . sales_unit else '' ) , 'stock' : stock } if ( 'shuup.notify' in settings . INSTALLED_APPS ) : context [ 'alert_limit' ] = True return render_to_string ( 'shuup/simple_supplier/admin/stock_information.jinja' , context )
get html string to show current stock information for product .