Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble applying credits to payment #119

Open
dovigoldstein opened this issue May 24, 2023 · 2 comments
Open

Trouble applying credits to payment #119

dovigoldstein opened this issue May 24, 2023 · 2 comments

Comments

@dovigoldstein
Copy link

I can't seem to be able to find a way to apply a credit to a payment or payment details.

Given the below payment:

let createPayment = new Intacct.Functions.AccountsPayable.ApPaymentCreate({
    paymentMethod: 'Printed Check',
    paymentDate: '05/20/2023',
    transactionCurrency: 'USD',
    vendorId: 'TestVendorId',
    financialEntityId: 'BankId',
    groupPayments: true,
    apPaymentDetails: [
      new Intacct.Functions.AccountsPayable.ApPaymentDetailBill({
        recordNo: 8999,
        lineRecordNo: 2321,
        paymentAmount: 100,
      }),
      new Intacct.Functions.AccountsPayable.ApPaymentDetailBill({
        recordNo: 8999,
        lineRecordNo: 2322,
        paymentAmount: 50,
      }),
    ],
  }, 'controlid');

I've tried adding the credit to apPaymentDetails:

apPaymentDetails: [
      new Intacct.Functions.AccountsPayable.ApPaymentDetailBill({
        recordNo: 8999,
        lineRecordNo: 2321,
        paymentAmount: 100,
      }),
      new Intacct.Functions.AccountsPayable.ApPaymentDetailBill({
        recordNo: 8999,
        lineRecordNo: 2322,
        paymentAmount: 50,
      }),
      new Intacct.Functions.AccountsPayable.ApPaymentDetailCreditMemo ({
        recordNo: 562,
        lineRecordNo: 121212,
        paymentAmount: -50,
      }),
 ],

Which produces the following error: Oops, we can't find this transaction; enter a valid 562 key, then try again.

I've also tried adding detailTransaction to the APPaymentDetailBill, but it's ignored.

Any help would be appreciated

@dovigoldstein dovigoldstein changed the title Troube applying credits to payment Trouble applying credits to payment May 25, 2023
@joeyparis
Copy link

Did you ever find a solution to this? I'm running into the same issue

@dovigoldstein
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants