added tracking module
This commit is contained in:
@@ -533,4 +533,15 @@ class AdminModel extends Model
|
||||
return $i;
|
||||
}
|
||||
|
||||
|
||||
function getTrackingStatus($invoice) {
|
||||
$i = DB::select("SELECT t.InvoiceNumber, ts.StepLabel, pu.Name, DATE_FORMAT(t.created_at, '%m/%d/%Y %h:%i:%s %p') AS DateCreated
|
||||
FROM tracking AS t
|
||||
INNER JOIN tracking_steps AS ts ON ts.Id = t.StepId
|
||||
INNER JOIN production_user AS pu ON t.ScannedBy = pu.Id
|
||||
WHERE t.InvoiceNumber = '$invoice'");
|
||||
|
||||
return $i;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user