Creditor Cheque Payment email  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Creditor Cheque Payment email

Postby perry » Thu Oct 13, 2016 12:31 pm

Hi,

Jiwa 7.0.157

The task is to add "Remark" from cheque payment line to the email body section.

There is no token available for remark. I also tried to see if I can change the email content but no luck finding an event.

In general, when you click "Email" on cheque payment form, are there any event available on the popup form?
I had similar task (link below), that requires events from that popup form.
https://forums.jiwa.com.au/viewtopic.php?f=26&t=657&p=2277&hilit=cheque#p2277
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: Creditor Cheque Payment email  Topic is solved

Postby Mike.Sheen » Sun Nov 13, 2016 11:20 am

Hi Perry,

I've added DEV-5661 to add this capability.

Mike
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: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757

Re: Creditor Cheque Payment email

Postby perry » Wed Sep 05, 2018 11:13 am

Hi Mike,

We had the same request again from another customer.

I found a hacky solution, although still prefer if DEV-5661 can be implemented. Not sure what has been planned but would you consider using xlst as template and pass the whole object (as XML)? This way you dont have to worry about tokens.

with the temp solution, I overwrite the invoice number field (only text field is available at line level) with html code. it does the job.

Code: Select all
Private Sub AfterDialogStart(JiwaDialog As IJiwaDialog)
            If TypeOf JiwaDialog Is JiwaCreditorChqPayUI.EmailRemittance Then
                Dim emailRemittanceDialog As JiwaCreditorChqPayUI.EmailRemittance = JiwaDialog

                'PM 2018-09-03, this is the sample code by Jiwa, although, .Owner is always nothing...
                'Dim creditorChequePaymentForm As JiwaCreditorChqPayUI.CreditorChqPay = emailRemittanceDialog.Owner


                For Each creditor As JiwaCreditorChqPay.Creditor In ChqPayForm.CRChequePayObject.Creditors

                    For Each pay As JiwaCreditorChqPay.clsPayLineInvoice In creditor.InvoicePaymentLines
                        If Not pay.InvoiceNo.Contains("</td>") Then
                            pay.InvoiceNo += "</span><o:p></o:p></p></td>" &
                "<td width=75 style='width:56.25pt;padding:.75pt .75pt .75pt .75pt'>" &
                "<p class=MsoNormal align=right style='text-align:right'><span style='font-size:10.0pt;font-family:""Verdana"",""sans-serif"";color:black'>" &
                pay.CRTransRemark
                        End If
                    Next
                Next


            End If
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15


Return to Technical and or Programming

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 9 guests