Using VI to Import Cash Receipts

SOLVED

Can a VI job be setup to total a column on your source file? For example if importing cash receipts I have a column in my source file pointing to the Line Amount Posted and I want the job to sum up that column by customer and put the amount in the Header Posting amount column or does the total amount posted for each customer have to be in the import file?

Also when chaining the AR Cash Receipt Deposit to the AR Cash Receipt Header file how do you set the deposit number in the AR Cash Receipts Header job to be the same as the deposit number in the AR Cash Receipt Deposit job?

This is for Sage 100 Adv v2020. Thank you.

Parents
  • 0

    I'm also wondering if anyone has any bright ideas for how to have the import calc the deposit amount 'when the invoice payment amounts are not present in the csv source'.  Basically, the customer is essentially paying all open invoices for a given range, so we don't have the individual invoice payment amounts, just a list of invoices.  For the step 2 import I'm able to pull the invoice balances from the open invoice file, but not sure if there's a way to do that on the step 1 deposit import.

  • 0 in reply to zip

    Unfortunately I think you only have two options.

    1. Turn back off "Require Deposit Amount" then modify your step 1 import job so that the deposit amount is not imported, that way the cash receipts business object will automatically calculate it for you.
    2. Write custom perform logic to loop through the import file, read the invoice number, go look it up in AR_OpenInvoice, grab the balance and keep a running total.

  • 0 in reply to Aaron LaBounty

    Thanks!!  Re: #1, that worked when pointing Temp field to payment column in csv, but it's not properly calculating the header Posting Amt when pointing Temp to Balance field in Open Invoice file.  I'm thinking that may be related to 'when' it's reading the open invoice file during the import.  Re: #2, I was initially leaning toward running the invoices thru MS Access against the open invoice file to grab the balances, but PL may be a better path.

  • 0 in reply to zip

    Are your CR lines getting a good value?  I don't think you need a temp field for this:

    I'd assume your file must have a header total (for how much the customer is paying).

  • 0 in reply to zip

    You're welcome! I think the Posting Amt issue is most likely because it is writing the header record prior to reading through the lines and writing line records, and I don't know of a way to make VI job back and update the header record after working with the line objects.

    Since Cash Receipts is designed around the user knowing the total check/payment amount prior to inputting it,  pre-processing the data so you have that info is probably the best option, whether that be via perform logic or some other method.

    I've seen at least one instance where perform logic was used to read the .csv file, calculate values needed by the VI job, and then write them back to the .csv file.

Reply
  • 0 in reply to zip

    You're welcome! I think the Posting Amt issue is most likely because it is writing the header record prior to reading through the lines and writing line records, and I don't know of a way to make VI job back and update the header record after working with the line objects.

    Since Cash Receipts is designed around the user knowing the total check/payment amount prior to inputting it,  pre-processing the data so you have that info is probably the best option, whether that be via perform logic or some other method.

    I've seen at least one instance where perform logic was used to read the .csv file, calculate values needed by the VI job, and then write them back to the .csv file.

Children
No Data