Files
sn/c04afa629713111093a8337e6253af6d/update/sys_script_include_38d17f87979021105838bfb3f153af03.xml
admin 031d949a83 - Implemented debug information
- Started table for Fulfillment Plan
2023-01-28 05:12:55 -08:00

75 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><record_update table="sys_script_include">
<sys_script_include action="INSERT_OR_UPDATE">
<access>package_private</access>
<active>true</active>
<api_name>x_355681_fa.FulfillmentPlanUtils</api_name>
<caller_access/>
<client_callable>false</client_callable>
<description/>
<name>FulfillmentPlanUtils</name>
<script><![CDATA[var FulfillmentPlanUtils = Class.create();
FulfillmentPlanUtils.prototype = {
initialize: function() {
},
createNew: function(){
var answer = false;
return answer;
},
tester: function(){
this.LOG.error("does this work", "tester");
this.generateError();
},
generateError: function(){
fdsafdasf
},
setFulfillmentPlan: function(id, details = {}){
let answer = false;
let faGr = new GlideRecord("x_355681_fa_fulfillment_plan");
if(id) {
faGr.addQuery("sys_id", id);
}else {
for(var key in details){
faGr.addQuery(key, details[key]);
}
}
faGr.query();
if(faGr.newRecord()){
this.fulfillmentPlan = faGr;
answer = faGr;
}
return answer;
},
update: function(values){
for(let key in values){
this.fulfillmentPlan.setValue(key, values[key]);
}
this.fulfillmentPlan.update();
},
type: 'FulfillmentPlanUtils'
};
new ProcessorUtils("x_355681_fa").wrapPrototype(FulfillmentPlanUtils.prototype);]]></script>
<sys_class_name>sys_script_include</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2023-01-14 23:54:39</sys_created_on>
<sys_id>38d17f87979021105838bfb3f153af03</sys_id>
<sys_name>FulfillmentPlanUtils</sys_name>
<sys_package display_value="Fulfilment Automater" source="x_355681_fa">c04afa629713111093a8337e6253af6d</sys_package>
<sys_policy>read</sys_policy>
<sys_scope display_value="Fulfilment Automater">c04afa629713111093a8337e6253af6d</sys_scope>
<sys_update_name>sys_script_include_38d17f87979021105838bfb3f153af03</sys_update_name>
</sys_script_include>
</record_update>