This topic contains 3 replies, has 0 voices, and was last updated by markluu 8 years, 3 months ago.

  • Author
    Posts
  • #6214

    jmessersmith

    If you use nlapiGetFieldValue(‘amountremaining’) to get the remaining amount for an invoice in shows up as Null on creation. This is a user event firing in the after submit.

    I also tried reloading the record with record.getFieldValue(‘amountremaining’) but that gives me the total of the invoice, its almost like on creation the invoice isnt fully processed until after the after submit function.

    Anyone else had this issue?
    This is a cached copy. Click here to see the original post.

  • #6215

    zackb22

    Why not nlapiGetFieldValue(‘total’)?

  • #6216

    jmessersmith

    Originally posted by zackb22

    View Post

    Why not nlapiGetFieldValue(‘total’)?

    I need the remaining amount. There is a bug with NSPOS that will sometimes post invoices with 1 penny remaining.

  • #6217

    markluu

    Hi jmessersmith,

    a potential work around would be in your afterSubmit, you could run a search with amountremaining in the columns, and with the invoice record Id in the search filter. The only drawback is that you will be consuming 10 metering.

    Would you be able to test if this works for you?

You must be logged in to reply to this topic.