This topic contains 10 replies, has 0 voices, and was last updated by ssilveri77 8 years ago.

  • Author
    Posts
  • #1613

    ssilveri77

    Has anyone created a fulfillment with serial numbers? I know have have to use record.transform and can find all the details, but wondered if anyone has done it and can save me some research
    This is a cached copy. Click here to see the original post.

  • #1614

    ssilveri77

    I think I have the basics down but cannot seem to find the correct field.

    I get “:”Please enter value(s) for: Serial/Lot

    Following code segment

    sr = itf.getCurrentSublistSubrecord({ sublistId : ‘item’, fieldId : ‘inventorydetail’ });

    sr.selectNewLine({ sublistId : ‘inventoryassignment’ });

    sr.setCurrentSublistValue({ sublistId : ‘inventoryassignment’, fieldId : ”, value : ‘myinventoryNumber’ });

    Anyone have any clues?

  • #1615

    chanarbon

    Hi ssilveri77 ,

    What field id/s have you already tried for the { sublistId : ‘inventoryassignment’, fieldId : ”, value : ‘myinventoryNumber’ }? Have you tried using the fieldId issueinventorynumber?

  • #1616

    ssilveri77

    Next step. The item was a drop ship and had create po.. I put the serial number in receiptinventoryassignment . I don;t get the error, but have to figure out the next step

  • #1617

    ssilveri77

    Originally posted by chanarbon

    View Post

    Hi ssilveri77 ,

    What field id/s have you already tried for the { sublistId : ‘inventoryassignment’, fieldId : ”, value : ‘myinventoryNumber’ }? Have you tried using the fieldId issueinventorynumber?

    yes. I did

  • #1618

    chanarbon

    Originally posted by ssilveri77

    View Post

    Next step. The item was a drop ship and had create po.. I put the serial number in receiptinventoryassignment . I don;t get the error, but have to figure out the next step

    It’s actually my first time to see the receiptinventoryassignment . Normally the issueinventorynumber is used for this scenario but good thing the concern is solved

  • #1619

    ssilveri77

    Not solved yet. I still did not get the serial numbers…. Trying a simpler order first.

  • #1620

    ssilveri77

    I think I have it all set except saving the sub record.

    I do this from the record to create a new subrecord

    sr = itf.getCurrentSublistSubrecord({ sublistId : ‘item’,

    fieldId : ‘inventorydetail’ });

    After setting the values I commit

    sr.commitLine({ sublistId : ‘inventoryassignment’ });

    But how do I make sure the sr subrecord is saved back to the main record (ifs)


    david.smith replied on 11/02/2016, 11:31 AM: save the main record

  • #1621

    chanarbon

    Agreeing with david.smith. Once you commit the subrecord and you haven’t performed the itf.save() then the subrecord will not be saved. So after performing the record.transform() and the committing the line in the subrecord and committing the IF line, make sure to have the item fulfillment record saved

  • #1622

    ssilveri77

    well it was the

    isDynamic : true.

    you cannot use that method you have to use this one issue..

  • #1623

    ssilveri77

    Now I have to figure out the drop ship part.

You must be logged in to reply to this topic.