public/app/dashboard/dashboard.js
//check for primers ready to Receipt at page load
check for primers ready to Receipt at page load
check for primers ready to Receipt at page load
function initPrimersForReceipt() {
            return datacontext.runAdhocQuery("MATCH (user:User)<-[orderedBy:ORDERED_BY]-(order:AwaitingReceipt)<-[:HAS_ORDER]-(primer:Primer) return order, primer, user, orderedBy;").then(function (result) {
                var cypherReturn  = common.checkCypherLog(result.data);
                if (cypherReturn.error) {
                    logError(cypherReturn.errorMessage);
                }
                return vm.primersAwaitingReceipt = result.data;
            });
        }
function initPrimersForReceipt ( ) { return datacontext . runAdhocQuery ( "MATCH (user:User)<-[orderedBy:ORDERED_BY]-(order:AwaitingReceipt)<-[:HAS_ORDER]-(primer:Primer) return order, primer, user, orderedBy;" ) . then ( function ( result ) { var cypherReturn = common . checkCypherLog ( result . data ) ; if ( cypherReturn . error ) { logError ( cypherReturn . errorMessage ) ; } return vm . primersAwaitingReceipt = result . data ; } ) ; }
check for primers ready to Receipt at page load
check for primers ready to Receipt at page load