NEW4.00.00 · Released 21 December 2022
NEWfinPOWER Connect
Released in
4.00.00
21 December 2022
- Opened20 Jul 2021
- Closed18 Oct
- Released21 Dec
Article 19717
Job J027021
MYOB API Interface; added optional "Memo" properties for Bank Transactions
The MYOB API Interface now includes optional "Memo" properties for Bank Transactions that can be scripted.
These properties are:
- finGlExportBankTransaction.Myob_Memo
- finGlExportBankTransactionLine.Myob_Memo
They would normally be left blank to use standard functionality - but a script can override as required. These will appear in the transaction created in MYOB.
Here is a code snippet for a "GLExportNew" Object Events script. For imported Bank Transactions this sets the Memo on the Transaction to the imported "Other Party" detail and on the Lines to the Particulars, Code and Reference.
Select Case eventIdCase "ExportProcess"Dim BankTransactionView As finBankTransactionViewDim GlExportBankTransaction As finGlExportBankTransactionDim GlExportBankTransactionLine As finGlExportBankTransactionLine' Create ObjectsBankTransactionView = finBL.CreateBankTransactionView()For Each GlExportBankTransaction In GlExportNew.BankTransactionsIf GlExportBankTransaction.BankTransactionPk <> 0 ThenIf BankTransactionView.LoadFromBankTransactionPk(GlExportBankTransaction.BankTransactionPk) ThenIf BankTransactionView.IsImported ThenGlExportBankTransaction.Myob_Memo = BankTransactionView.ImportedDetailsForDisplay.GetString("OtherParty")For Each GlExportBankTransactionLine In GlExportBankTransaction.LinesGlExportBankTransactionLine.Myob_Memo = String.Format("{0} {1} {2}", BankTransactionView.ImportedDetailsForDisplay.GetString("Particulars"), BankTransactionView.ImportedDetailsForDisplay.GetString("Code"), BankTransactionView.ImportedDetailsForDisplay.GetString("Reference"))NextEnd IfEnd IfEnd IfNext