This topic contains 3 replies, has 0 voices, and was last updated by pcutler 6 years, 9 months ago.

  • Author
    Posts
  • #17819

    ashgupta1489

    I am trying to post a payment to the vendor bill using restlet.

    I have done this so far. However, I am getting Invalid Field value no matter what I try . Also, how can I apply the payment to particular item.

    Code:
    function _post(context) {

    var vendorBillPayment = record.create({
    type: record.Type.VENDOR_PAYMENT,
    isDynamic: false,
    defaultValues:{
    entity: 929 // vendor id
    }
    })

    vendorBillPayment.setValue({
    fieldId: ‘account’,
    value: “129” This is a cached copy. Click here to see the original post.

  • #17820

    leacelosacolumna

    ashgupta1489, can you please check first if you can set the “Account” field in the UI? (Transactions > Payables > Pay Single Vendor)

    For you to apply a payment to an item, ensure that you’re manipulating the ‘apply’ sublist.

  • #17821

    ashgupta1489

    suitecloudfanatic I am able to do the payment by selecting Account field in UI. One of the default field is checking account (set with id as 1). This is happening only at the restlet.

  • #17822

    pcutler

    A vendor can be linked to multiple subsidiaries, so make sure you select the same subsidiary as the checking account if that subsidiary is not the vendor’s default.

    Also, I’d try setting dynamic mode to true to see if that makes a difference.

You must be logged in to reply to this topic.