productListResourceList(){
        const resourceName = {
            singular: 'productdispatch',
            plural: 'productsdispatched',
        };

        const header = { customerid: 0, productname: '', customername: '', location: '', deposit: '' };
        var items = [ ];

        // var temp = List(this.props.listofproductstoshow);
        var temp = this.props.listofproductsreturnstoshow;
        
        console.log("COMING FROM SERVER productDISPATCHListResourceList ", temp);
  
        items = temp;
        items.map((item, index) => {
            // const prodimg = this.thumbnailImage(item);
            
            item.deposit = '$5.99';
            item.location = 'Hold Shelf';
        });

  
        items = [header, ...items];

        return (
            <Card>
                <ResourceList
                    resourceName={resourceName}
                    items={items}
                    renderItem={this.renderItem.bind(this)}


                />
            </Card>
        );
    }
/**
     * To show the list of products ready for dispatch.
     * Which user can click for checkout.
     */
To show the list of products ready for dispatch.
Which user can click for checkout.
To show the list of products ready for dispatch . Which user can click for checkout .
productListResourceList(){
        const resourceName = {
            singular: 'productdispatch',
            plural: 'productsdispatched',
        };
        const header = { customerid: 0, productname: '', customername: '', location: '', deposit: '' };
        var items = [ ];
        var temp = this.props.listofproductsreturnstoshow;
        console.log("COMING FROM SERVER productDISPATCHListResourceList ", temp);
        items = temp;
        items.map((item, index) => {
            item.deposit = '$5.99';
            item.location = 'Hold Shelf';
        });
        items = [header, ...items];
        return (
            <Card>
                <ResourceList
                    resourceName={resourceName}
                    items={items}
                    renderItem={this.renderItem.bind(this)}
                />
            </Card>
        );
    }
productListResourceList ( ) { const resourceName = { singular : 'productdispatch' , plural : 'productsdispatched' , } ; const header = { customerid : 0 , productname : '' , customername : '' , location : '' , deposit : '' } ; var items = [ ] ; var temp = this . props . listofproductsreturnstoshow ; console . log ( "COMING FROM SERVER productDISPATCHListResourceList " , temp ) ; items = temp ; items . map ( ( item , index ) => { item . deposit = '$5.99' ; item . location = 'Hold Shelf' ; } ) ; items = [ header , ... items ] ; return ( < Card > < ResourceList resourceName = { resourceName } items = { items } renderItem = { this . renderItem . bind ( this ) } / > < / Card > ) ; }
To show the list of products ready for dispatch.
To show the list of products ready for dispatch .
// var temp = List(this.props.listofproductstoshow); // const prodimg = this.thumbnailImage(item);