This commit is contained in:
@@ -291,8 +291,8 @@ async function parseJSONFile(file) {
|
|||||||
//
|
//
|
||||||
function cleanData(dat, atype) {
|
function cleanData(dat, atype) {
|
||||||
var allowedProps = [];
|
var allowedProps = [];
|
||||||
//Note: convention here is any ID field that is linked object we want to support gets renamed here to replace *id with *Name, also Viz is acceptable both will be checked
|
//Note: convention here is any ID field that is linked object we want to support gets renamed here to replace *id with *viz if viz not already present
|
||||||
//at front end it will attempt to match up but not create if not existing
|
//at back end it will attempt to match up but not create if not existing
|
||||||
switch (atype) {
|
switch (atype) {
|
||||||
case 8: //CUSTOMER
|
case 8: //CUSTOMER
|
||||||
allowedProps.push(
|
allowedProps.push(
|
||||||
@@ -306,11 +306,9 @@ function cleanData(dat, atype) {
|
|||||||
"WebAddress",
|
"WebAddress",
|
||||||
"AlertNotes",
|
"AlertNotes",
|
||||||
"BillHeadOffice",
|
"BillHeadOffice",
|
||||||
"HeadOfficeName",
|
|
||||||
"HeadOfficeViz",
|
"HeadOfficeViz",
|
||||||
"TechNotes",
|
"TechNotes",
|
||||||
"AccountNumber",
|
"AccountNumber",
|
||||||
"ContractName",
|
|
||||||
"ContractViz",
|
"ContractViz",
|
||||||
"ContractExpires",
|
"ContractExpires",
|
||||||
"Phone1",
|
"Phone1",
|
||||||
|
|||||||
Reference in New Issue
Block a user