Page 1 of 1

internal class CRAutoTrans

PostPosted: Wed Jun 27, 2018 10:33 am
by neil.interactit
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

Re: internal class CRAutoTrans

PostPosted: Wed Jun 27, 2018 10:38 am
by Scott.Pearce
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?

Re: internal class CRAutoTrans

PostPosted: Wed Jun 27, 2018 10:41 am
by Mike.Sheen
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!

Re: internal class CRAutoTrans

PostPosted: Wed Jun 27, 2018 11:30 am
by neil.interactit
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

Re: internal class CRAutoTrans

PostPosted: Wed Jun 27, 2018 11:51 am
by Mike.Sheen
I've added DEV-6686 to look at adding some events to make this possible.

Re: internal class CRAutoTrans

PostPosted: Wed Jun 27, 2018 12:24 pm
by neil.interactit
Many thanks

Re: internal class CRAutoTrans  Topic is solved

PostPosted: Wed Jun 27, 2018 5:41 pm
by Mike.Sheen
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.

Re: internal class CRAutoTrans

PostPosted: Thu Jun 28, 2018 11:57 am
by neil.interactit
Great. Thanks.