added tracking module

This commit is contained in:
franknstayn
2022-01-14 17:52:14 +08:00
parent 54b03986cf
commit e54f9e7db6
5 changed files with 162 additions and 15 deletions

View File

@@ -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;
}
}