Subversion Repositories SmartDukaan

Rev

Rev 12889 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#set ($itemDetail = $action.fetchItemDetail())
#set ($item = $action.getSaholicItem("$itemDetail.getItemid()"))
<style>
* { font-family: Verdana; font-size: 96%; }
                label {
    float: left;
}

#upload > table {
    color: #747474;
    width: 100%;
}


#upload tbody {
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
    font-weight: bold;
}

#upload-promo > table {
    color: #747474;
    width: 100%;
}


#upload-promo tbody {
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
    font-weight: bold;
}

#upload-promo-right tbody {
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
    font-weight: bold;
}

#upload-promo-right-ex tbody {
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
    font-weight: bold;
}

#upload-promo-fbd tbody {
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
    font-weight: bold;
}

#upload-promo-right > table {
    color: #747474;
    width: 100%;
        font-weight: bold;
}

#upload-promo-fbd > table {
    color: #747474;
    width: 100%;
        font-weight: bold;
}

#upload-promo-right-ex > table {
    color: #747474;
    width: 100%;
        font-weight: bold;
}

#upload-promo-right tbody {
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
    font-weight: bold;
}

.detail {
    background: url("/Support/images/center-blue.png") repeat-y scroll left top #E4EBF8;
    border-bottom: 1px solid #B3C1DB;
    border-right: 1px solid #CED9EC;
    color: #1F3D71;
    height: 25px;
    padding: 10px 0 0 24px;
}

.value {
    border-bottom: 1px solid #B3C1DB;
    border-right: 1px solid #CED9EC;
    height: 24px;
    text-align: center;
    color: #747474;
}

select {
    padding-top: 2px;
    vertical-align: middle;
        direction: ltr;
    font-weight: bold;
    width: 50%;
        height: 22px;
}

input {
    font-size: 12px;
    text-align: center;
    width: 50%;
    font-weight: bold;
}

.extended {
        width : 75%;
}

</style>
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
<script type="text/javascript">
$(document).ready(function() {
  $('#cancelbutton').click(function(e) {
    window.location.href = '/Support/amazon-list';
});
});
</script>
<form id="amazon-form" action="/Support/amazon-list!update" enctype="multipart/form-data" method="post">
<div class="left" style="float: left; width: 48%;">
<table id="upload" style="text-align: center;width: 100%;height:200px;">
<thead>
</thead>
<tbody>
<tr style="display:none;">
<td class="detail">Item Id</td>
<td class="value"><input id="itemId" name="itemId" value='$itemDetail.getItemid()'type="text" ></td>
</tr>
<tr>
<td class="detail">Product Description</td>
<td class="value">$itemDetail.getItemid() | $itemDetail.getName()</td>
</tr>
<tr>
<td class="detail">FBA Tax Code (Maharashtra)</td>
<td class="value">
        #if($itemDetail.getTaxCode())
        <input id="taxCode" name="taxCode" value='$itemDetail.getTaxCode()'type="text"/></td>
        #else
        <input id="taxCode" name="taxCode" value=''type="text"/></td>
        #end
</tr>
<tr>
<td class="detail">FBB Tax Code (Bangalore)</td>
<td class="value">
        #if($itemDetail.getFbbtaxCode())
        <input id="fbbTaxCode" name="fbbTaxCode" value='$itemDetail.getFbbtaxCode()'type="text"/></td>
        #else
        <input id="fbbTaxCode" name="fbbTaxCode" value=''type="text"/></td>
        #end
</tr>
<tr>
<td class="detail">FBG Tax Code (Gurgaon)</td>
<td class="value">
        #if($itemDetail.getFbgtaxCode())
        <input id="fbgTaxCode" name="fbgTaxCode" value='$itemDetail.getFbgtaxCode()'type="text"/></td>
        #else
        <input id="fbgTaxCode" name="fbgTaxCode" value=''type="text"/></td>
        #end
</tr>
<tr>
<td class="detail">FBD Tax Code (Delhi)</td>
<td class="value">
        #if($itemDetail.getFbdtaxCode())
        <input id="fbdTaxCode" name="fbdTaxCode" value='$itemDetail.getFbdtaxCode()'type="text"/></td>
        #else
        <input id="fbdTaxCode" name="fbdTaxCode" value=''type="text"/></td>
        #end
</tr>
<tr>
<td class="detail">MFN Listing</td>
<td class="value">#if ($itemDetail.isIsNonFba())
      <select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          <input name="isNonFba" value='True' type="hidden"/>
          #else
                <select name="" disabled><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
                <input name="isNonFba" value='False' type="hidden"/>
          #end
</td>
</tr>
<tr>
<td class="detail">FBA Listing (Maharashtra)</td>
<td class="value">#if ($itemDetail.isIsFba())
      <select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          <input name="isFba" value='True' type="hidden"/>
          #else
                <select name="" disabled><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
                <input name="isFba" value='False' type="hidden"/>
          #end</td>
</tr>
<tr>
<td class="detail">FBB Listing (Bangalore)</td>
<td class="value">#if ($itemDetail.isIsFbb())
      <select name="isFbb"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="isFbb"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end
</td>
</tr>
<tr>
<td class="detail">FBG Listing (Gurgaon)</td>
<td class="value">#if ($itemDetail.isIsFbg())
      <select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          <input name="isFbg" value='True' type="hidden"/>
          #else
                <select name="" disabled><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
                <input name="isFbg" value='False' type="hidden"/>
#end
</td>
</tr>
<tr>
<td class="detail">FBD Listing (Delhi)</td>
<td class="value">#if ($itemDetail.isIsFbd())
      <select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          <input name="isFbd" value='True' type="hidden"/>
          #else
                <select name="" disabled><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
                <input name="isFbd" value='False' type="hidden"/>
#end
</td>
</tr>
<tr>
<td class="detail">MFN Price</td>
<td class="value"><input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text"/></td>
</tr>
<tr>
<td class="detail">FBA Price (Maharashtra)</td>
<td class="value"><input id="fbaPrice" name="fbaPrice" value='$itemDetail.getFbaPrice()'type="text"/></td>
</tr>
<tr>
<td class="detail">FBB Price (Bangalore)</td>
<td class="value"><input id="fbbPrice" name="fbbPrice" value='$itemDetail.getFbbPrice()'type="text"/></td>
</tr>
<tr>
<td class="detail">FBG Price (Gurgaon)</td>
<td class="value"><input id="fbgPrice" name="fbgPrice" value='$itemDetail.getFbgPrice()'type="text"/></td>
</tr>
<tr>
<td class="detail">FBD Price (Delhi)</td>
<td class="value"><input id="fbdPrice" name="fbdPrice" value='$itemDetail.getFbdPrice()'type="text"/></td>
</tr>
<tr>
<td class="detail">WANLC</td>
<td class="value"><input id="wanlc" name="wanlc" value='$action.getWanlcForItem("$itemDetail.getItemid()")'type="text" disabled/></td>
</tr>
<!--<tr>
<td class="detail">FBA Sale Price</td>
<td class="value"><input id="fbaSalePrice" name="fbaSalePrice" value='$itemDetail.getFbaSalePrice()'type="text" disabled/></td>
</tr>
<tr>
<td class="detail">FBB Sale Price</td>
<td class="value"><input id="fbbSalePrice" name="fbbSalePrice" value='$itemDetail.getFbbSalePrice()'type="text" disabled/></td>
</tr>-->
</tbody>
</table>
</div>
<div class="left" style="float: right; width: 48%;">
<table id="upload" style="text-align: center;width: 100%;height:200px;">
<thead>
</thead>
<tbody>
<tr>
<td class="detail">Exceptional WANLC</td>
<td class="value"><input id="exceptionalWanlc" name="exceptionalWanlc" value='$itemDetail.getExceptionalWanlc()'type="text" /></td>
</tr>
<tr>
<td class="detail">Other Cost</td>
<td class="value"><input id="otherCost" name="otherCost" value='$itemDetail.getOtherCost()'type="text"></td>
</tr>
<tr>
<td class="detail">WANLC Override</td>
<td class="value">#if ($itemDetail.isOverrrideWanlc())
      <select name="overrrideWanlc"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="overrrideWanlc"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end
</td>
</tr>
<tr>
<td class="detail">Auto Favourite</td>
<td class="value">#if ($itemDetail.isAutoFavourite())
      <select name="autoFavourite"><option selected="selected" value="True">Active</option></select>
          #else
                <select name="autoFavourite"><option selected="selected" value="False">InActive</option></select>
          #end
</td>
</tr>
<tr>
<td class="detail">Manual Favourite</td>
<td class="value">#if ($itemDetail.isManualFavourite())
      <select name="manualFavourite"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="manualFavourite"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end
</td>
</tr>
<tr>
<td class="detail">Auto Increment</td>
<td class="value">#if ($itemDetail.isAutoIncrement())
      <select name="autoIncrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="autoIncrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end
</td>
</tr>
<tr>
<td class="detail">Auto Decrement</td>
<td class="value">#if ($itemDetail.isAutoDecrement())
      <select name="autoDecrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="autoDecrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end
</td>
</tr>
<tr>
<td class="detail">Inventory Override</td>
<td class="value">#if ($itemDetail.isIsInventoryOverride())
      <select name="isInventoryOverride"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="isInventoryOverride"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end
</td>
</tr>
<tr>
<td class="detail">Suppress MFN Price</td>
<td class="value">#if ($itemDetail.isSuppressMfnPriceUpdate())
      <select name="suppressMfnPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="suppressMfnPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end
</td>
</tr>
<tr>
<td class="detail">Suppress FBA Price (Maharashtra)</td>
<td class="value">#if ($itemDetail.isSuppressFbaPriceUpdate())
      <select name="suppressFbaPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="suppressFbaPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end</td>
</tr>
<tr>
<td class="detail">Suppress FBB Price (Bangalore)</td>
<td class="value">#if ($itemDetail.isSuppressFbbPriceUpdate())
      <select name="suppressFbbPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="suppressFbbPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end</td>
</tr>
<tr>
<td class="detail">Suppress FBG Price (Gurgaon)</td>
<td class="value">#if ($itemDetail.isSuppressFbgPriceUpdate())
      <select name="suppressFbgPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="suppressFbgPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end</td>
</tr>
<tr>
<td class="detail">Suppress FBD Price (Delhi)</td>
<td class="value">#if ($itemDetail.isSuppressFbdPriceUpdate())
      <select name="suppressFbdPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
          #else
                <select name="suppressFbdPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
          #end</td>
</tr>

<tr>
<td class="detail">Lead Time To Ship</td>
<td class="value">
        #if ( !$itemDetail.isIsCustomTime() )
<input type="radio" value="False" name="isTime" checked="checked" style="width: 10%;">Default
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
        <span>Days</span>
<input type="radio" value="True" name="isTime" style="width: 10%;">Custom
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
        <span>Days</span>
        #else
                <input type="radio" value="False" name="isTime" style="width: 10%;">Default
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
        <span>Days</span>
<input type="radio" value="True" name="isTime" checked="checked" style="width: 10%;">Custom
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
        <span>Days</span>
        #end
</td>
</tr>
<tr>
<td class="detail">Risky Inventory / Virtual Inventory</td>
<td class="value">
<span>Risky Inventory</span>
<input type="text" value='$item.getHoldInventory()' name="holdInventory" id="holdInventory" style="width: 10%;">
<span>Virtual Inventory</span>
<input type="text" value='$item.getDefaultInventory()' name="defaultInventory" id="defaultInventory" style="width: 10%;">
</td>
</tr>
<tr>
<td class="detail">Action</td>
<td class="value"><input type="submit" value="Update" name="upload" style="width: 25%;">
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
</td>
</tr>
</tbody>
</table>
</div>
</form>
<!--Amazon Promotion Starts -->
<table style="text-align: center;width: 100%;">
<thead>
        <tr>
                <th>Amazon WPI Promotion</th>
        </tr>
</thead>
<tbody></tbody>
</table>
<form id="amazon-promo-form" action="/Support/amazon-list!updatePromotion" enctype="multipart/form-data" method="post">
<div class="left" style="float: left; width: 50%;">
#if ($itemDetail.isIsFbaPromotionActive())
        #set($dis-fba="")
#else
        #set($dis-fba="disabled")
#end
<table id="upload-promo" style="text-align: center;width: 100%;height:200px;">
<thead>
</thead>
<tbody>
<tr style="display:none;">
<td class="detail">Item Id</td>
<td class="value"><input id="promoItemId" name="promoItemId" value='$itemDetail.getItemid()' type="text" ></td>
</tr>
<tr>
#if ($itemDetail.isIsFbaPromotionActive())
        <td class="detail" colspan="2" style="color:green;">FBA PROMO ACTIVE</td>
#else
        <td class="detail" colspan="2" style="color:red;">FBA PROMO INACTIVE</td>
#end
</tr>
<tr>
<td class="detail">Fba Promo Price</td>
<td class="value"><input id="fbaPromoPrice" class="extended" name="fbaPromoPrice" value='$itemDetail.getFbaPromoPrice()' type="text" $dis-fba></td>
</tr>
<tr>
<td class="detail">Fba Max Promo Price</td>
<td class="value">
        <input id="fbaMaxSalePrice" class="extended" name="fbaMaxSalePrice" value='$itemDetail.getMaxFbaSalePrice()' type="text" disabled/>
</td>
</tr>
<tr>
<td class="detail">Fba Promo Start Date</td>
<td class="value">
        <input id="fbaPromoStartDate" class="extended" name="fbaPromoStartDate" value='$action.getDate($itemDetail.getFbaPromoStartDate())' type="text" disabled/>
</td>
</tr>
<tr>
<td class="detail">Fba Promo End Date</td>
<td class="value">
        <input id="fbaPromoEndDate" class="extended" name="fbaPromoEndDate" value='$action.getDate($itemDetail.getFbaPromoEndDate())' type="text" disabled/>
</td>
</tr>
</tbody>
</table>
</div>
<div class="left" style="float: right;width:50%;">
#if ($itemDetail.isIsFbbPromotionActive())
        #set($dis-fbb="")
#else
        #set($dis-fbb="disabled")
#end
<table id="upload-promo-right" style="text-align: center;width: 100%;height:200px;">
<thead>
</thead>
<tbody>
<tr>
#if ($itemDetail.isIsFbbPromotionActive())
        <td class="detail" colspan="2" style="color:green;">FBB PROMO ACTIVE</td>
#else
        <td class="detail" colspan="2" style="color:red;">FBB PROMO INACTIVE</td>
#end
</tr>
<tr>
<td class="detail">Fbb Promo Price</td>
<td class="value"><input id="fbbPromoPrice" class="extended" name="fbbPromoPrice" value='$itemDetail.getFbbPromoPrice()' type="text" $dis-fbb></td>
</tr>
<tr>
<td class="detail">Fbb Max Promo Price</td>
<td class="value">
        <input id="fbbMaxSalePrice" class="extended" name="fbbMaxSalePrice" value='$itemDetail.getMaxFbbSalePrice()' type="text" disabled/></td>
</tr>
<tr>
<td class="detail">Fbb Promo Start Date</td>
<td class="value">
        <input id="fbbPromoStartDate" class="extended" name="fbbPromoStartDate" value='$action.getDate($itemDetail.getFbbPromoStartDate())' type="text" disabled/>
</td>
</tr>
<tr>
<td class="detail">Fbb Promo End Date</td>
<td class="value">
        <input id="fbbPromoEndDate" class="extended" name="fbbPromoEndDate" value='$action.getDate($itemDetail.getFbbPromoEndDate())' type="text" disabled/>
</td>
</tr>
</tbody>
</table>
</div>

<div class="left" style="float: left;width:50%;">
#if ($itemDetail.isIsFbdPromotionActive())
        #set($dis-fbd="")
#else
        #set($dis-fbd="disabled")
#end
<table id="upload-promo-fbd" style="text-align: center;width: 100%;height:200px;">
<thead>
</thead>
<tbody>
<tr>
#if ($itemDetail.isIsFbdPromotionActive())
        <td class="detail" colspan="2" style="color:green;">FBD PROMO ACTIVE</td>
#else
        <td class="detail" colspan="2" style="color:red;">FBD PROMO INACTIVE</td>
#end
</tr>
<tr>
<td class="detail">Fbd Promo Price</td>
<td class="value"><input id="fbdPromoPrice" class="extended" name="fbdPromoPrice" value='$itemDetail.getFbdPromoPrice()' type="text" $dis-fbd></td>
</tr>
<tr>
<td class="detail">Fbd Max Promo Price</td>
<td class="value">
        <input id="fbdMaxSalePrice" class="extended" name="fbdMaxSalePrice" value='$itemDetail.getMaxFbdSalePrice()' type="text" disabled/></td>
</tr>
<tr>
<td class="detail">Fbd Promo Start Date</td>
<td class="value">
        <input id="fbdPromoStartDate" class="extended" name="fbdPromoStartDate" value='$action.getDate($itemDetail.getFbdPromoStartDate())' type="text" disabled/>
</td>
</tr>
<tr>
<td class="detail">Fbd Promo End Date</td>
<td class="value">
        <input id="fbdPromoEndDate" class="extended" name="fbdPromoEndDate" value='$action.getDate($itemDetail.getFbdPromoEndDate())' type="text" disabled/>
</td>
</tr>
<tr style="height:36px;">
        <td class="detail"></td>
        <td class="detail"></td>
</tr>
</tbody>
</table>
</div>













<div class="left" style="float:right;width:50%;">
#if ($itemDetail.isIsFbgPromotionActive())
        #set($dis-fbg="")
#else
        #set($dis-fbg="disabled")
#end
<table id="upload-promo-right-ex" style="text-align: center;width: 100%;height:200px;">
<thead>
</thead>
<tbody>
<tr>
#if ($itemDetail.isIsFbgPromotionActive())
        <td class="detail" colspan="2" style="color:green;">FBG PROMO ACTIVE</td>
#else
        <td class="detail" colspan="2" style="color:red;">FBG PROMO INACTIVE</td>
#end
</tr>
<tr>
<td class="detail">Fbg Promo Price</td>
<td class="value"><input id="fbgPromoPrice" class="extended" name="fbgPromoPrice" value='$itemDetail.getFbgPromoPrice()' type="text" $dis-fbg></td>
</tr>
<tr>
<td class="detail">Fbg Max Promo Price</td>
<td class="value">
        <input id="fbgMaxSalePrice" name="fbgMaxSalePrice" class="extended" value='$itemDetail.getMaxFbgSalePrice()' type="text" disabled/></td>
</tr>
<tr>
<td class="detail">Fbg Promo Start Date</td>
<td class="value">
        <input id="fbgPromoStartDate" name="fbgPromoStartDate" class="extended" value='$action.getDate($itemDetail.getFbgPromoStartDate())' type="text" disabled/>
</td>
</tr>
<tr>
<td class="detail">Fbg Promo End Date</td>
<td class="value">
        <input id="fbgPromoEndDate" name="fbgPromoEndDate" class="extended" value='$action.getDate($itemDetail.getFbgPromoEndDate())' type="text" disabled/>
</td>
</tr>
<tr style="height:36px;">
        #if ($itemDetail.isIsFbaPromotionActive() || $itemDetail.isIsFbbPromotionActive() || $itemDetail.isIsFbgPromotionActive() || $itemDetail.isIsFbdPromotionActive())
                <td class="value" colspan="2"><input type="submit" value="Update Promo" name="upload" style="width:60%;"></td>
        #else
                <td class="value" colspan="2"><input type="submit" value="Update Promo" name="upload" style="width:60%;" disabled></td>
        #end
</tr>
<tr style="display:none">
<td class="detail">Is Fba Promo</td>
<td class="value">
        <input id="isFbaPromotionActive" name="isFbaPromotionActive" value='$itemDetail.isIsFbaPromotionActive()' type="text">
</td>
</tr>
<tr style="display:none;">
<td class="detail">Is Fbb Promo</td>
<td class="value">
        <input id="isFbbPromotionActive" name="isFbbPromotionActive" value='$itemDetail.isIsFbbPromotionActive()' type="text">
</td>
</tr>
<tr style="display:none;">
<td class="detail">Is Fbg Promo</td>
<td class="value">
        <input id="isFbgPromotionActive" name="isFbgPromotionActive" value='$itemDetail.isIsFbgPromotionActive()' type="text">
</td>
</tr>
<tr style="display:none;">
<td class="detail">Is Fbd Promo</td>
<td class="value">
        <input id="isFbdPromotionActive" name="isFbdPromotionActive" value='$itemDetail.isIsFbdPromotionActive()' type="text">
</td>
</tr>
</tbody>
</table>
</div>
</form>
#set($mapAvailable = $action.getAvailableItemInventory("$itemDetail.getItemid()"))
#set($mapReserved = $action.getReservedItemInventory("$itemDetail.getItemid()"))
<div class="left" style="padding-top:10px;">
        <table id="upload" style="text-align: center;width: 100%;font-size: 14px;padding-top:10px;">
<thead>
<tr>
<th colspan="3">Inventory Saholic & Amazon (Total)</th>
</tr>
</thead>
<tbody>
        <tr>
<td class="detail" style="width:33%">Warehouse</td>
<td class="value">Available</td>
<td class="value">Reserved</td>
</tr>
#foreach( $keyAvailable in $mapAvailable.keySet() )
<tr>
        <td class="detail">$action.getWarehouseName("$keyAvailable")</td>
<td class="value">$mapAvailable.get($keyAvailable)</td>
<td class="value">$mapReserved.get($keyAvailable)</td>
</tr>
#end
</tbody>
</table>
<br />
<br />
</div>
#set( $amazonInventory = $action.getInventoryForAmazonItem("$itemDetail.getItemid()") )
#set( $amazonFbaInventory = $action.getFbaInventoryForAmazonItem("$itemDetail.getItemid()") )
<div class="right" style="padding-top:10px;">
        <table style="text-align: center; width: 100%; font-size: 14px;">
<thead>
<tr>
<th colspan="3">Amazon Inventory</th>
</tr>
</thead>
<tbody>
        <tr>
<td class="detail">MFN Available</td>
<td class="detail">MFN Reserved</td>
<td class="value">FBA Available</td>
</tr>
        <tr>
                        #if ( !$amazonInventory.getAvailability() )
                 <td class="detail"></td>
              #else
                <td class="detail">$amazonInventory.getAvailability()</td>
              #end
              #if ( !$amazonInventory.getReserved() )
                 <td class="detail"></td>
              #else
                <td class="detail">$amazonInventory.getReserved()</td>
                          #end
                          #set($mumbai="False")
                          #set($bangalore="False")
                          #set($gurgaon="False")
                          #set($delhi="False")
                          <td class="value">
                                #foreach($amazonFbaInventoryLocationWise in $amazonFbaInventory)
                                        #if ($amazonFbaInventoryLocationWise.getLocation().toString()=="Mumbai")
                                                #set($mumbai="True")
                                        #end
                                        #if ($amazonFbaInventoryLocationWise.getLocation().toString()=="Bangalore")
                                                #set($bangalore="True")
                                        #end
                                        #if ($amazonFbaInventoryLocationWise.getLocation().toString()=="Gurgaon")
                                                #set($gurgaon="True")
                                        #end
                                        #if ($amazonFbaInventoryLocationWise.getLocation().toString()=="Delhi")
                                                #set($delhi="True")
                                        #end
                                #end
                                #foreach($amazonFbaInventoryLocationWise in $amazonFbaInventory)
                                        $amazonFbaInventoryLocationWise.getLocation() - $amazonFbaInventoryLocationWise.getAvailability()
                                        &nbsp;
                                #end
                                #if ($mumbai=="False")
                                        Mumbai - 0
                                #end
                                #if ($bangalore=="False")
                                        Bangalore - 0
                                #end
                                #if ($gurgaon=="False")
                                        Gurgaon - 0
                                #end
                                #if ($delhi=="False")
                                        Delhi - 0
                                #end
                          </td>
                          

                </tr>
</tbody>
</table>
</div>