我在 NetSuite 中放置了一个自定义实体字段,现在我必须将此字段的值提供给我的参考结帐,因为我将使用该值作为在商店中显示哪种付款方式的条件。
任何想法如何做到这一点?我搜索了 SuiteAnswers 并没有得到显着的帮助。
谢谢!
我已经研究过使用 view.model.get('customfield ID here') 但它没有奏效。我还已经在 models.js 上定义了该字段。只是不确定我是否正确放置它。
订单向导付款方式选择器的渲染功能
, render: function()
{
if (this.wizard.hidePayment())
{
this.$el.empty();
this.trigger('change_label_continue');
return;
}
if (!this.selectedModule)
{
var selected_payment = this.model.get('paymentmethods').findWhere({primary: true})
, selected_type;
var creditlevelhold = this.wizard.model.get('creditlevelhold'); < -- this is the custom field
console.log(creditlevelhold);
if(selected_payment){
selected_type = selected_payment.get('type');
}
else if(this.wizard.options.profile.get('paymentterms') && creditlevelhold === ''){
selected_type = 'invoice';
}
this.setModuleByType(selected_type)