Warehouse Bulk Add Equipment Event
The Warehouse Bulk Add Equipment Events can be triggered using Custom Logic. Asset, Unit, and Regular types of Equipment can be generated using Custom Logic. The following parameters are Required to execute each Event.
Asset
Warehouse Bulk Add Asset Equipment
/** * Event: Warehouse Equipment Bulk Add requested * Listener Class: Application_Model_Location_Warehouse_Warehouse * Listener Method: eventBulkAdd */ PCR_Event::attachDb( "whs-bulk-add", ["Application_Model_Location_Warehouse_Warehouse" => "eventBulkAdd"] ); PCR_Event::trigger( "whs-bulk-add", [ "PARAMS" => [ "part_number" => "3430", //EQP_CATALOG_RECID "eqp_status" => "91", //EQP_STATUS_LISTS_RECID "eqp_condition" => "101", //EQP_CONDITION_LISTS_RECID "received_date" => "2022-09-29 00 => 00 => 00", "location" => "332591", //LOCATIONS_RECID "quantity" => null, "purchase_price" => null, "save-new" => "true", "multi_checkbox" => [ "asset_tag" ], "asset_tags" => "10683.1;\r\n10683.2;\r\n10683.3;\r\n10683.4;\r\n10683.5;", "multi_checkbox-asset_tag" => 1, "multi_checkbox-serial_number" => 0, "multi_checkbox-equipment_id" => 0, "multi_checkbox-mac_address" => 0, "udf" => [ "180" => [ "VALUE" => null, "DATATYPE" => "VARCHAR" ] ], "part_number_display" => "FT-AA - Asset Equipment (Feet), (Asset)", "location_display" => "FT-3347", "dialogCallback" => true, "confirmed" => true, "comments" => "This is a comment" ], "ASSETS" => [ [ "ASSET_TAG" => "10683.1", "SERIAL_NUM" => null, "EQUIPMENT_ID" => null, "MAC_ADDRESS" => null ], [ "ASSET_TAG" => "10683.2", "SERIAL_NUM" => null, "EQUIPMENT_ID" => null, "MAC_ADDRESS" => null ], [ "ASSET_TAG" => "10683.3", "SERIAL_NUM" => null, "EQUIPMENT_ID" => null, "MAC_ADDRESS" => null ], [ "ASSET_TAG" => "10683.4", "SERIAL_NUM" => null, "EQUIPMENT_ID" => null, "MAC_ADDRESS" => null ], [ "ASSET_TAG" => "10683.5", "SERIAL_NUM" => null, "EQUIPMENT_ID" => null, "MAC_ADDRESS" => null ] ], "FORM_FIELD_KEY" => [ "EQUIPMENT" => [ "part_number" => "EQP_CATALOG_RECID", "eqp_status" => "EQP_STATUS_LISTS_RECID", "eqp_condition" => "EQP_CONDITION_LISTS_RECID", "received_date" => "RECEIVED_DATE", "location" => "LOCATIONS_RECID", "units" => "UNITS", "purchase_price" => "PURCHASE_PRICE", "ASSET_TAG" => "ASSET_TAG", "SERIAL_NUM" => "SERIAL_NUM", "EQUIPMENT_ID" => "EQUIPMENT_ID", "MAC_ADDRESS" => "MAC_ADDRESS", "BILLABLE" => "BILLABLE", "CONSUMED" => "CONSUMED" ], "LOCATIONS" => [ "per_unit_price" => "PER_UNIT_PRICE", "asset_text" => "ASSET_TEXT" ], "RECID" => "RECID" ], "contact" => "17", "eventBroadcastBy" => "12345", "eventBroadcastTime" => "Sep 30, 2022, 11 => 23 am", "eventBroadcastDayofWeek" => "5", "eventBroadcastHourMin" => "1123", ] );
Regular
Warehouse Bulk Add Regular Equipment
/** * Event: Warehouse Equipment Bulk Add requested * Listener Class: Application_Model_Location_Warehouse_Warehouse * Listener Method: eventBulkAdd */ PCR_Event::attachDb( "whs-bulk-add", ["Application_Model_Location_Warehouse_Warehouse" => "eventBulkAdd"] ); PCR_Event::trigger( "whs-bulk-add", [ "PARAMS" => [ "part_number" => "3428", //EQP_CATALOG_RECID "eqp_status" => "91", //EQP_STATUS_LISTS_RECID "eqp_condition" => "101", //EQP_CONDITION_LISTS_RECID "received_date" => "2022-10-03 00:00:00", "location" => "332591", //LOCATIONS_RECID "purchase_price" => null, "quantity" => null, "RECID" => "332591", "multi_checkbox" => [], "asset_tags" => null, "multi_checkbox-asset_tag" => 0, "multi_checkbox-serial_number" => 0, "multi_checkbox-equipment_id" => 0, "multi_checkbox-mac_address" => 0, "udf" => [ "180" => [ "VALUE" => "test", "DATATYPE" => "VARCHAR" ] ], "part_number_display" => "FT-No Boxes - FT-No Boxes (Feet)", "location_display" => "FT-3347", "dialogCallback" => true, "confirmed" => true, "comments" => "This is a comment" ], "FORM_FIELD_KEY" => [ "EQUIPMENT" => [ "part_number" => "EQP_CATALOG_RECID", "eqp_status" => "EQP_STATUS_LISTS_RECID", "eqp_condition" => "EQP_CONDITION_LISTS_RECID", "received_date" => "RECEIVED_DATE", "location" => "LOCATIONS_RECID", "units" => "UNITS", "purchase_price" => "PURCHASE_PRICE", "BILLABLE" => "BILLABLE", "CONSUMED" => "CONSUMED" ], "LOCATIONS" => [ "per_unit_price" => "PER_UNIT_PRICE", "asset_text" => "ASSET_TEXT" ], "RECID" => "RECID" ], "contact" => "216121", "eventBroadcastBy" => "216121", "eventBroadcastTime" => "Oct 3, 2022, 1:17 pm", "eventBroadcastDayofWeek" => "1", "eventBroadcastHourMin" => "1317", ] );
Unit
Warehouse Bulk Add Unit Equipment
/** * Event: Warehouse Equipment Bulk Add requested * Listener Class: Application_Model_Location_Warehouse_Warehouse * Listener Method: eventBulkAdd */ PCR_Event::attachDb( "whs-bulk-add", ["Application_Model_Location_Warehouse_Warehouse" => "eventBulkAdd"] ); PCR_Event::trigger( "whs-bulk-add", [ "PARAMS" => [ "part_number" => "294", //EQP_CATALOG_RECID "eqp_status" => "91", //EQP_STATUS_LISTS_RECID "eqp_condition" => "101", //EQP_CONDITION_LISTS_RECID "received_date" => "2022-09-29 00:00:00", "location" => "332591", "quantity" => null, "units" => "5", "purchase_price" => null, "multi_checkbox" => [], "asset_tags" => null, "multi_checkbox-asset_tag" => 0, "multi_checkbox-serial_number" => 0, "multi_checkbox-equipment_id" => 0, "multi_checkbox-mac_address" => 0, "udf" => [ "180" => [ "VALUE" => "FT-Bulk Add", "DATATYPE" => "VARCHAR" ] ], "part_number_display" => "1\/4-FEN-WASH - Metallics 1\/4 Fender Washer (Box)", "location_display" => "FT-3347", "dialogCallback" => true, "confirmed" => true, "comments" => "This is a comment" ], "FORM_FIELD_KEY" => [ "EQUIPMENT" => [ "part_number" => "EQP_CATALOG_RECID", "eqp_status" => "EQP_STATUS_LISTS_RECID", "eqp_condition" => "EQP_CONDITION_LISTS_RECID", "received_date" => "RECEIVED_DATE", "location" => "LOCATIONS_RECID", "units" => "UNITS", "purchase_price" => "PURCHASE_PRICE", "BILLABLE" => "BILLABLE", "CONSUMED" => "CONSUMED" ], "LOCATIONS" => [ "per_unit_price" => "PER_UNIT_PRICE", "asset_text" => "ASSET_TEXT" ], "RECID" => "RECID" ], "contact" => "216121", "eventBroadcastBy" => "216121", "eventBroadcastTime" => "Sep 29, 2022, 12:14 pm", "eventBroadcastDayofWeek" => "4", "eventBroadcastHourMin" => "1214", ] );
Help Desk Portal - Email: help@pcr.com - Phone: 616.259.9242