Skip to content

Instantly share code, notes, and snippets.

View prasadyallapu's full-sized avatar

prasad yallapu prasadyallapu

View GitHub Profile
var express = require('express'),
app = express();
app.use(express.static('www'));
// CORS (Cross-Origin Resource Sharing) headers to support Cross-site HTTP requests
app.all('*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
Inbound - Data
OutBound - Data
Failed
data.data.ReturnMessages[0].Message
"SALES_HEADER_IN has been processed successfully"
data.data.ReturnMessages[1].Message
"Material 7696 has status: Material Blocked"
ConfigFactory = function (DB,$cordovaSQLite,logFactory,customersFactory){
debugger;
var factory = {};
var tableName = "configTable"
/*.constant('CONFIG', {
'API_URL' : 'http://derstinesfso.azurewebsites.net'
});*/
factory.init = function(){
// on clicking particular customer this function is called - please modify this function customer-controller.js
$scope.selectCustomer = function(customer){
debugger;
sharedPropertiesService.setSelectedCustomer(customer);
$state.go('customerdetails', {customerID: customer.id});
};
//Calling getcustomers factory -- add this factory in --customerdetails-controller.js