Subversion Repositories SmartDukaan

Rev

Rev 34384 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<style>

    h5 {
        text-align: center;
        background-color: lightgray;
        padding: 5px;
        font-size: 16px;
    }

    #brand-instock tr.hide-table-padding td {
        padding: 0;
    }

    .expand-button {
        position: relative;
    }

    .accordion-toggle .expand-button:after {
        position: absolute;
        left: .75rem;
        top: 50%;
        transform: translate(0, -50%);
        content: '-';
    }

    .accordion-toggle.collapsed .expand-button:after {
        content: '+';
    }

    .tab-inactive {
        background-color: #cccccc47;
        border-radius: 4px;
    }

</style>



#if($brand != "undefined")

<div class="row">
    <hr style="border-top: 2px solid #ccc">
    <div class="col-lg-12">

        <h5> In Stock </h5>
        <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
            <thead>
            <tr>
                <th>Item</th>
                <th>Qty</th>

            </tr>
            </thead>
            <tbody>

                #foreach($inStock in $inStocks)
                <tr>
                    <td>$inStock.getItemDescription()</td>
                    <td>$inStock.getQty()</td>

                </tr>

                #end

            </tbody>
        </table>

    </div>
</div>


<div class="row">
    <div class="col-lg-12">

        <h5> Grn Pending </h5>
        <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
            <thead>
            <tr>
                <th>Item</th>
                <th>Qty</th>

            </tr>
            </thead>
            <tbody>

                #foreach($grnPending in $grnPendings)
                <tr>
                    <td>$grnPending.getItemDescription()</td>
                    <td>$grnPending.getQty()</td>

                </tr>

                #end

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


<div class="row">
    <div class="col-lg-12">

        <h5> Pending Indent </h5>
        <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
            <thead>
            <tr>
                <th>Item</th>
                <th>Qty</th>

            </tr>
            </thead>
            <tbody>

                #foreach($pendingIndent in $pendingIndents)
                <tr>
                    <td>$pendingIndent.getItemDescription()</td>
                    <td>$pendingIndent.getQty()</td>

                </tr>

                #end

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

#else


<div class="row">
    <div class="col-lg-12">
        <h5> Focused Model </h5>
        <table class="table  table-advance" id="brand-focused">
            <tbody>
            <tr>
                <th>#</th>
                <th>Brand</th>

            </tr>
                #set($index = 0)

                #foreach($focused in $focusedModelShortageBrandMap.entrySet())

                <tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1"
                    href="#focused-$index">
                    <td class="expand-button"></td>
                    <td>$focused.getKey()</td>

                </tr>


                <tr class="hide-table-padding">
                    <td></td>
                    <td colspan="3">
                        <div class="collapse p-3" id="focused-$index">
                            <table class="table  table-advance">
                                <tbody>
                                <tr>
                                    <th>Item</th>
                                    <th>Pending Indent</th>
                                    <th>In Stock</th>
                                    <th>Shortage Qty</th>
                                    <th>Availability</th>

                                </tr>

                                    #foreach($item in $focused.getValue())


                                    <tr>
                                        <td>$item.getBrandName() $item.getModelName()  $item.getModelNumber() </td>
                                        <td>$item.getPendingIndentQty()</td>


                                        #if($item.getShortageQty() > $item.getGrnStockQty())
                                            <td style="color:red">$item.getGrnStockQty()</td>
                                        #else
                                            <td>$item.getGrnStockQty()</td>
                                        #end

                                        #if($item.getShortageQty() > 0 )
                                            <td>$item.getShortageQty()</td>
                                        #else
                                            <td>0</td>
                                        #end
                                        <td>$item.getAvailabitiy()</td>

                                    </tr>


                                    #end


                                </tbody>
                            </table>
                        </div>
                    </td>


                </tr>
                    #set($index=$index+1)
                #end


            </tbody>
        </table>

    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <h5> In Stock </h5>
        <table class="table  table-advance" id="brand-instock">
            <tbody>
            <tr>
                <th>#</th>
                <th>Brand</th>

            </tr>
                #set($index = 0)

                #foreach($brand in $inStockBrandMap.entrySet())

                <tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1"
                    href="#brand-$index">
                    <td class="expand-button"></td>
                    <td>$brand.getKey()</td>

                </tr>


                <tr class="hide-table-padding">
                    <td></td>
                    <td colspan="3">
                        <div class="collapse p-3" id="brand-$index">
                            <table class="table  table-advance">
                                <tbody>
                                <tr>
                                    <th width="36%">Item</th>
                                    <th>Quantity</th>

                                </tr>

                                    #foreach($items in $brand.getValue())

                                    <tr>
                                        <td>$items.getItemDescription()</td>
                                        <td>$items.getQty()</td>

                                    </tr>
                                    #end


                                </tbody>
                            </table>
                        </div>
                    </td>


                </tr>
                    #set($index=$index+1)
                #end


            </tbody>
        </table>

    </div>
</div>


<div class="row">
    <div class="col-lg-12">
        <h5> Grn Pending </h5>
        <table class="table  table-advance" id="brand-grn">
            <tbody>
            <tr>
                <th>#</th>
                <th>Brand</th>

            </tr>
                #set($index = 0)

                #foreach($grnpending in $grnPendingBrandMap.entrySet())

                <tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1"
                    href="#grn-$index">
                    <td class="expand-button"></td>
                    <td>$grnpending.getKey()</td>

                </tr>


                <tr class="hide-table-padding">
                    <td></td>
                    <td colspan="3">
                        <div class="collapse p-3" id="grn-$index">
                            <table class="table  table-advance">
                                <tbody>
                                <tr>
                                    <th width="36%">Item</th>
                                    <th>Quantity</th>

                                </tr>

                                    #foreach($items in $grnpending.getValue())

                                    <tr>
                                        <td>$items.getItemDescription()</td>
                                        <td>$items.getQty()</td>

                                    </tr>
                                    #end


                                </tbody>
                            </table>
                        </div>
                    </td>


                </tr>
                    #set($index=$index+1)
                #end


            </tbody>
        </table>

    </div>
</div>


<div class="row">
    <div class="col-lg-12">
        <h5> Pending Indent </h5>
        <table class="table  table-advance" id="brand-pending">
            <tbody>
            <tr>
                <th>#</th>
                <th>Brand</th>

            </tr>
                #set($index = 0)

                #foreach($pendingIndent in $pendingIndentBrandMap.entrySet())

                <tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1"
                    href="#pending-$index">
                    <td class="expand-button"></td>
                    <td>$pendingIndent.getKey()</td>

                </tr>


                <tr class="hide-table-padding">
                    <td></td>
                    <td colspan="3">
                        <div class="collapse p-3" id="pending-$index">
                            <table class="table  table-advance">
                                <tbody>
                                <tr>
                                    <th width="36%">Item</th>
                                    <th>Quantity</th>

                                </tr>

                                    #foreach($items in $pendingIndent.getValue())

                                    <tr>
                                        <td>$items.getItemDescription()</td>
                                        <td>$items.getQty()</td>

                                    </tr>
                                    #end


                                </tbody>
                            </table>
                        </div>
                    </td>


                </tr>
                    #set($index=$index+1)
                #end


            </tbody>
        </table>

    </div>
</div>
#end