-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest-Functions.js
More file actions
71 lines (61 loc) · 1.84 KB
/
Copy pathTest-Functions.js
File metadata and controls
71 lines (61 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// /**
// * Function for inputting test data from the spreadsheet Customer menu
// */
// function AddTestEntry() {
// // console.log("Test Entry was Called")
// const ACTIVE_ENTRY_SHEET = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(GetMonday());
// let currentTime = Utilities.formatDate(new Date(),'GMT','HH:mm');
// let currentDate = new Date();
// let userObject = {
// customerName:"Taurus Craco",
// machine:"Show Room",
// logEntry:"Testing Object",
// totalHours:2,
// workOrder:"NaN"
// };
// AddResponse(userObject);
// return SpreadsheetApp.getActiveSpreadsheet().toast("Response added successfully!");
// };
// /**
// * Adds a new Client name to the customer list asnd updates it
// *
// */
// // function TestNewList(){
// // let newCustomers = [];
// // newCustomers.push(["tom"]);
// // newCustomers.push(["Dan"]);
// // newCustomers.push(["Pete"]);
// // console.log("New Customers Array being passed =");
// // console.log(newCustomers);
// // console.log("Updated Customer List = ");
// // UpdateCustomerList(newCustomers)
// // }
// /**
// * Test UpdateMachines
// */
// function UpdateCustomerInfo(){
// let customer = {
// name : "Master Doors",
// row : "",
// column : "",
// machines : []
// }
// let machine = "Hammer"
// let cusInfo = GetCusRecords(customer,machine);
// console.log(cusInfo+" Logged")
// }
// /**
// * Test the Get Machines Funciton
// */
// function TestGetMachines(){
// let name = "Master Doors";
// let machines = GetMachines(name,1);
// console.log("Machines are: " + machines);
// // machines.unshift(name);
// // console.log("New Pushed Machines are: "+ machines);
// }
// function TestUpdateMachineList(){
// let name = "Master Doors";
// let machine = "Homag";
// console.log(UpdateCustomersMachines(name, machine))
// }