Archives

 

Good Morning -

I am integrating Vendor Invoices from external application.

Application gives me invoice amounts with no decimals.

I need to cast with the decimals, and my SQL syntax is just a little off. My script returns .00 - always. See below.

Need a ROUND somewhere in here?

 

Good Morning - 

I realize it's a long shot - Smart Connect out of the box does not have a node where we create a manual AP Payment and apply it to existing Vendor Vouchers (single or multiple). 

eOne advises clients to purchase the Presidio AP Apply DLL and use it as a post document task.

We purchased it and use it quite nicely with the limitation of creating a single payment for every voucher. 

However, since it is a post document task - smart connect creates the manual payment and applies the payment to a single voucher.

We have been advised that the .Net script used to initialize the DLL and apply the document can be modified to "loop" through the source file and apply a large payment to multiple vouchers. In our case we need to post a large corporate credit card payment to the bank register and we need to apply to 100+ vouchers in our system. 

Here's the script I am using for a single apply - I am not a programmer - can this be modified to "loop" and if so, how?

dim success as boolean
dim errorResult as boolean
dim errorCode as integer
dim responseMessage as string
dim licenseKey as string
dim serverInstance as string
dim userConnectType as string
dim userID as string
dim userPassword as string
dim companyDatabase as string
dim documentType as string
dim apApplyTest as new Precipio.APApply.Import()


licenseKey = "mmxxcc"     'Retrieved from Precipio Services
serverInstance = "mmmm"
userConnectType = "SQL"    'SQL or GP 
userID = "sa"
userPassword = "xxxxxx"
companyDatabase = "dddd"


'Initialize the license
success = apApplyTest.Initialize(licenseKey, serverInstance, userConnectType, userID, userPassword, responseMessage)

'Display a message if the initialize fails. Only use this if running manually
if not success then
  MessageBox.Show("Initialize: " & responseMessage)
  return false
end if

'Apply the Payment that was just integrated to a voucher
documentType = "PAYMENT" 'PAYMENT or CREDIT

success = apApplyTest.ApplyPayment(companyDatabase, _VENDORID, Convert.ToDateTime(_DATE), documentType, GlobalRollingColumn, _INVOICENUMBER,_AMOUNT , errorResult, errorCode, responseMessage)

if not success then
  MessageBox.Show("Apply: " & responseMessage)
  return false
else if errorResult then
  MessageBox.Show("Apply: " & responseMessage)
  return false
end if

apApplyTest = nothing

return true

 

 

Okay - I have a Smart Connect21 Map that we currently manually run and it works beautifully.

I need to add a pre-integration task that will download a network file based upon the first 6 characters of the file.

We have an AI bot that will post a file that consistently starts with RAMPCC and then a date/time stamp. 

I need my task to download the file. 

I need the first line to find the file starting with RAMPCC and download regardless of time stamp. I tried * (like I do in powershell) but it doesn't work. 

Here's the script - 

Dim sourceFile As String = "\\99999\bbbb\RampCC ManualPayments Source\RampCC*.csv"

Dim destFile As String = "\\99999\GPShare\SC_Import\AccountsPayable\Ramp\Ramp CC Payments\Source\"

Dim mapInterface As Integer = 1
'---------------------------------------------------------------------------------------

Try
    'Move the file
    IO.File.Move(sourceFile, destFile)
Catch ex As Exception
    'If an error occurred , alert the user and return false to abort the map
If (mapInterface = 1) Then
    MessageBox.Show("An error occured while attempting to move the file: " & ex.Message, "File Error")
End If
    Return False
End Try

Return True

 

 

Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3