This commit is contained in:
2020-11-24 23:58:36 +00:00
parent bd0f65bb38
commit 3995197093

View File

@@ -577,7 +577,51 @@ namespace AyaNova.PlugIn.V8
Client c = Client.GetItem(i.ID);
var ObjectTID = new TypeAndID(RootObjectTypes.Client, c.ID);
/*v8
## route [Route("api/v{version:apiVersion}/customer")]
## object format
[
{
"Id": 100,
"Concurrency": 90525,
"Name": "Parker - Kling 321",
"Active": true,
"Notes": "Cross-group system-worthy installation",
"Wiki": null,
"CustomFields": null,
"Tags": [
"red"
],
"WebAddress": "http://esther.name",
"PopUpNotes": null,
"BillHeadOffice": false,
"HeadOfficeID": null,
"TechNotes": null,
"AccountNumber": "31070722",
"UsesBanking": false,
"ContractID": null,
"ContractExpires": null,
"DefaultServiceTemplateID": null,
"Phone1": "(651) 496-8691",
"Phone2": "919.303.4097 x10230",
"Phone3": "1-829-391-7162",
"Phone4": null,
"Phone5": null,
"EmailAddress": "Domingo.White@example.net",
"PostAddress": null,
"PostCity": null,
"PostRegion": null,
"PostCountry": null,
"PostCode": null,
"Address": "470 Conroy Island",
"City": "Lake Ambrose",
"Region": "Massachusetts",
"Country": "Argentina",
"Latitude": -60.473000,
"Longitude": 25.380100
}
]
*/
dynamic d = new JObject();
d.name = GetUniqueName(c.Name);
if (IsDuplicateMapItem(c.ID, c.Name, progress)) continue;
@@ -632,6 +676,26 @@ namespace AyaNova.PlugIn.V8
}
}
/* CLIENT NOTE
V8
### ROUTE [Route("api/v{version:apiVersion}/customer-note")]
### v8 format
{
"Id": 2,
"Concurrency": 90604,
"CustomerId": 100,
"UserId": 1,
"NoteDate": "2020-11-24T17:54:05.68",
"Notes": "The quick brown fox jumped over the six lazy dogs.\nPack my box with five dozen liquor jugs.\nThe quick brown fox jumped over the six lazy dogs.\nPack my box with five dozen liquor jugs.\nThe quick brown fox jumped over the six lazy dogs.\nPack my box with five dozen liquor jugs.\nThe getDate() method returns the current day of the month (1-31).\n\nThe getMonth() method returns the month of the specified date. One point to note about the getMonth() method is that it returns 0-indexed values (0-11) where 0 is for January and 11 for December. Hence the addition of 1 to normalize the month's value.\nDate now\n\nnow() is a static method of the Date object. It returns the value in milliseconds that represents the time elapsed since the Epoch. You can pass in the milliseconds returned from the now() method into the Date constructor to instantiate a new Date object:\neot",
"Tags": [
"gold",
"known-user",
"olive",
"test-role-user"
]
}
*/
#endregion Clients
#region Headoffices