function initializeCart(){
            return {
                items               : [], 
                total               : 0.0,
                custom_price        : 0.0, 
                notes               : '', 
                discount            : 0.0,
                sub_total           : 0.0,
                discount_percentage : 0,
                discount_amount     : 0,
                discounted_amount   : 0,
                payments            : [],
                total_items         : 0,
                status              : '',
                return_order_id     : 0,
                customer_id         : 0,
                table_no         : '',
                print         : '',
                waiter         : '',
                identity            : _generateIdentity()
            };
        }
/*
        * Initialize empty cart with default values and returns the created object
        */
Initialize empty cart with default values and returns the created object
Initialize empty cart with default values and returns the created object
function initializeCart(){
            return {
                items               : [], 
                total               : 0.0,
                custom_price        : 0.0, 
                notes               : '', 
                discount            : 0.0,
                sub_total           : 0.0,
                discount_percentage : 0,
                discount_amount     : 0,
                discounted_amount   : 0,
                payments            : [],
                total_items         : 0,
                status              : '',
                return_order_id     : 0,
                customer_id         : 0,
                table_no         : '',
                print         : '',
                waiter         : '',
                identity            : _generateIdentity()
            };
        }
function initializeCart ( ) { return { items : [ ] , total : 0.0 , custom_price : 0.0 , notes : '' , discount : 0.0 , sub_total : 0.0 , discount_percentage : 0 , discount_amount : 0 , discounted_amount : 0 , payments : [ ] , total_items : 0 , status : '' , return_order_id : 0 , customer_id : 0 , table_no : '' , print : '' , waiter : '' , identity : _generateIdentity ( ) } ; }
Initialize empty cart with default values and returns the created object
Initialize empty cart with default values and returns the created object