|
|
@@ -117,6 +117,11 @@ if($location_id) {
|
|
|
$nvp["location_id"] = $location_id;
|
|
|
}
|
|
|
|
|
|
+$user_id = $request->int("user_id");
|
|
|
+if($user_id) {
|
|
|
+ $nvp["user_id"] = $user_id;
|
|
|
+}
|
|
|
+
|
|
|
$status = $request->int("status");
|
|
|
if($status !== null && $status_field) {
|
|
|
$nvp[$status_field] = $status;
|
|
|
@@ -155,6 +160,6 @@ $core->addScript("/js/new-document-modal.js");
|
|
|
$core->addScript("/js/documents.js");
|
|
|
|
|
|
View::include("header");
|
|
|
-View::include("documents", compact("title", "type_string", "type", "documents", "pagination", "type_name", "supplier_id", "customer_id", "location_id", "status", "number", "custom_filter"));
|
|
|
+View::include("documents", compact("title", "type_string", "type", "documents", "pagination", "type_name", "supplier_id", "customer_id", "location_id", "user_id", "status", "number", "custom_filter"));
|
|
|
View::include("modals/new_document");
|
|
|
View::include("footer");
|