Skip to content

Instantly share code, notes, and snippets.

View dperussina's full-sized avatar

Daniel Perussina dperussina

  • FragilePAK
  • Unknown
View GitHub Profile
module.exports = function () {
var _v = window.VIEW.CsvImport;
var _s = window.SERVICE.upload;
// _v.input.Upload.change(upload);
var DATA = "";
_v.button.Upload.click(function (e) {
console.log('Upload Button Fired.')
e.preventDefault();
if (DATA == "") {
_v.status.text('CSV Not detected.');
{"userName":"CA001rm1","facility":"CA001","orderId":"999U81260","itemId":"10451690","status":"Short","description":"Test,Test,Test,Test,Test,Test,Test,Test","photos":null}
@dperussina
dperussina / InvalidOrder.json
Created December 24, 2019 15:31
CustomerLabelAPI
{
"LastMileCode": "",
"Crossdock": "",
"Logo": "http://manifested.agentgrid.net/thermalLabel/assets/fragilepak_logo3.png",
"error": false,
"data": []
}
{"userName":"Tdanho","facility":"CA004","orderId":"9025410680","itemId":"10382664","status":"Damage","description":"knock down shed,knock down shed","photos":[{"photoLabel":"item","imageMimeType":"image/jpeg","imageBase64":"data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAD0AUYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0t
<error application="/LM/W3SVC/4/ROOT" host="TAGWEB2-2" type="System.Web.HttpException" message="The server tag is not well formed." source="System.Web" detail="System.Web.HttpParseException (0x80004005): The server tag is not well formed. ---&gt; System.Web.HttpException (0x80004005): The server tag is not well formed.&#xD;&#xA; at System.Web.UI.TemplateParser.ProcessError(String message)&#xD;&#xA; at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)&#xD;&#xA; at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)&#xD;&#xA; at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)&#xD;&#xA; at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)&#xD;&#xA; at System.Web.UI.TemplateParser.ParseInternal()&#xD;&#xA; at System.Web.UI.TemplateParser.Parse()&#xD;&#xA; at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompil
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:LoadTenderData xmlns:ns2="http://schemas.3gtms.com/tms/v1/tns">
<BatchInfo>
<BatchNum>TRN-04137924</BatchNum>
<BatchDateTime>2019-08-30T19:45:29.681Z</BatchDateTime>
<SentBy>yrc_rboomer</SentBy>
<PageNum>1</PageNum>
<PageCnt>1</PageCnt>
</BatchInfo>
<Action>New</Action>
DECLARE @ConsigneeName varchar(100);
SET @ConsigneeName = (SELECT top 1 CONCAT(DLName, ' ', DLCity, ', ', DLState) FROM tagnet_AppointmentSPN_Orders
WHERE JobType = 'DELIVERY' AND OrderState NOT IN (10)
AND PartnerPrimaryOrderID = '213U67560');
DECLARE @AttemptDate datetime;
SET @AttemptDate = (SELECT MIN(PUActualArrive) FROM tagnet_AppointmentSPN_Orders
WHERE JobType = 'ATTEMPT' AND OrderState NOT IN (10)
AND PartnerPrimaryOrderID = '213U67560');
"freightItems": [
{
"itemID": 1,
"description": "Vanity",
"quantity": 1,
"weight": 150.0,
"height": 28.00,
"width": 30.00,
"length": 36.00,
"quantityOnboarded": 1,
module.exports.MyRoute= function(req, res){
var request = req.query;
var response = {
error: false,
errorText: '',
data: []
};
function ValidateRequest(next){
// Do what you need to do, then call next
next(false); // If error to break series, pass true
<tr>
<td class="DetailEditNoBorder" colspan="6">
<table class="table table-sm" style="border-color:#000; margin-right:auto; margin-left:auto; max-width:576px">
<thead style="background-color:#C0C0C0">
<tr>
<th>CallDate
</th>
<th>ImportedAt
</th>
<th>Audio