Create Item fulfillment for selected items

This is my suitelet 2.0 and I want to create item fulfillment for selected items also show error message if item, quantity and lot number does not match with the salees order item, quantity and lot number. else create item fulfillment. Please help! var form = serverWidget.createForm({ title: “Create Item Fulfillment” }); form.addSubmitButton({ label: ‘Submit’ });

          var soNumber = form.addField({
            id : 'custpage_so_number',
            type : serverWidget.FieldType.TEXT,
            label : 'Sales Order Number'
        });

        var sublist = form.addSublist({
            id: "item_sublist",
            type: serverWidget.SublistType.INLINEEDITOR,
            label: "Item"
          });
          sublist.addField({
            id: "itemname",
            type: serverWidget.FieldType.SELECT,
            label: "Item",
            source: "item"
          });
          sublist.addField({
            id: "lotnumber",
            type: serverWidget.FieldType.TEXT,
            label: "Lot/Heat Number"
          });
          sublist.addField({
            id: "quantity",
            type: serverWidget.FieldType.TEXT,
            label: "Quantity"
          });
    }
    catch(e)
    {
        log.debug("error in get",e);
    }

    context.response.writePage(form);

    }
    else if (context.request.method === 'POST') {

        try{
    log.debug("suitelet is posting")
      
        }catch(er)
        {
            log.debug("error in post method",er);
        }
        
    }
}

});

Beginner Asked on June 1, 2023 in SuiteScript.
Add Comment
1 Answer(s)

Hi,

What is currently happening and what do you expect to happen?

Thanks,

Chris

Advanced Answered on June 5, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor