internal class CRAutoTrans  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

internal class CRAutoTrans

Postby neil.interactit » Wed Jun 27, 2018 10:33 am

Hey guys.

Apologies in advance if I'm barking up the wrong tree.

I have added a "BPay CRN" column to creditor purchases ... all good (see viewtopic.php?f=26&t=966).

The client also wants template purchase BPay CRN data to copy to the created purchase when processing a creditor automatic transaction.

I am trying to add a plugin to implement, but cannot access JiwaFinancials.Jiwa.JiwaCRAutoTXUI.CRAutoTrans. Decompiling the DLL shows ...

Code: Select all
namespace JiwaFinancials.Jiwa.JiwaCRAutoTXUI
{
  internal class CRAutoTrans : UserInterface

Is there a way around this, or an alternate approach I should pursue?

Cheers,
Neil
neil.interactit
Kohai
Kohai
 
Posts: 227
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: internal class CRAutoTrans

Postby Scott.Pearce » Wed Jun 27, 2018 10:38 am

In our source code that class is declared as "friend" (in VB-speak), when it needs to be "public".

What are you trying to do exactly - maybe we can sidestep this issue. Can you provide some code showing where you are coming unstuck?
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: internal class CRAutoTrans

Postby Mike.Sheen » Wed Jun 27, 2018 10:41 am

Hi Neil,

The form is incorrectly internal (or "Friend" in VB parlance) - I've logged DEV-6685 to address this.

In the meantime - you probably don't want to talk to the form - you should generally be interacting with business logic for most operations, except if you are wanting to interact with the user interface.

Mike

EDIT: Scott "Quick-draw" Pearce beat me to it!
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: internal class CRAutoTrans

Postby neil.interactit » Wed Jun 27, 2018 11:30 am

Hi Scott/Mike,

I have a plugin with:

bpaycrn.png

which is applied to forms CreditorPurchases, CreditorCreditAdjustment, CreditorDebitAdjustment and CreditorPayment, allowing puchase "BPay CRN" data entry possible. I then use this data to generate a suitable BPay bank CSV file on the payments page.

They have "Template (Not Posted)" purchase batches (repeating every 28 days, next posting date, etc) with the BPay CRN filled in, but after processing on the creditor automatic transaction page, the created destination batch does not have any BPay CRN data.

I tried adding CRAutoTrans to the forms list of the plugin above with no effect, so my next step was a new plugin for CRAutoTrans to code the custom column copy to destination manually.

Cheers,
Neil
neil.interactit
Kohai
Kohai
 
Posts: 227
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: internal class CRAutoTrans

Postby Mike.Sheen » Wed Jun 27, 2018 11:51 am

I've added DEV-6686 to look at adding some events to make this possible.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: internal class CRAutoTrans

Postby neil.interactit » Wed Jun 27, 2018 12:24 pm

Many thanks
neil.interactit
Kohai
Kohai
 
Posts: 227
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: internal class CRAutoTrans  Topic is solved

Postby Mike.Sheen » Wed Jun 27, 2018 5:41 pm

FYI DEV-6686 is now done and contains a sample plugin demonstrating how to copy the template line custom field value to the destination batch.

DEV-6700 has been created as a separate issue for reverse integrating this improvement into SR10 for 07.00.175.00.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: internal class CRAutoTrans

Postby neil.interactit » Thu Jun 28, 2018 11:57 am

Great. Thanks.
neil.interactit
Kohai
Kohai
 
Posts: 227
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 14 guests