MoneyWorks and Shopify

A module to download new sales from a Shopify ecommerce store is available as a service for MoneyWorks Gold/Datacentre. Once setup, this allows you to download new Shopify sales into MoneyWorks at the click of a button.

The service is enabled in File>Manage Services (you will need to restart your MoneyWorks after enabling the service). You will also need to configure your Shopify store.

Configuring Shopify

In the administration area of Shopify, you will need to create a new “app” that allows MoneyWorks to have read-only access to Orders using the Admin APIs (your store designer should be able to do this for you if you can’t figure it out — the Shopify documentation is a bit daunting). Creating the app will give you an Access Token which starts with “shpat_”. You need to enter this into the Shopify Settings in MoneyWorks (see below).

Prior to 2022, Shopify apps used an API Key and an API Password. If you already have an older app with access to Shopify orders, you can use these.

Configuring MoneyWorks

Having installed the Shopify service (and restarted MoneyWorks), choose Command>Shopify Settings (only users with Account Enquiry privileges can access this). The Shopify settings will open:

MoneyWorks Shopify Settings

You first need to enter and check your store details.

  1. Enter your store URL. This will be something like mystore.myshopify.com.
  2. Enter the Access Token, or (if you are using a pre 2022 app) turn on the Use OLD APIs checkbox and enter your API Key and API Password.
  3. Click the Test button to check that MoneyWorks can access the store.

The MoneyWorks Settings determine how you want MoneyWorks to handle your Shopify transactions.

Transaction Type: The type of transaction to create (Receipt, Invoice, Sales Order).

Bank Account: If you are creating receipts, the bank account for the transaction.

Taxable Tax Code: For sales which have tax/GST/VAT applied to them, the MoneyWorks tax code to use.

Exempt Tax Code: For sales which are tax exempt, the MoneyWorks tax code to use.

Default Customer Code: The default customer code to use on transactions. For example you might set up a customer “WEBSALE” and use this. The customer must be a debtor.

Create New Customer Records: Turn this on if you want to match the sale to an existing customer, or, if a match cannot be found, to create a new customer record. The matching is done on the email address in Contact 1 of the customer record. New customer codes are generated based on the settings in Edit>Document Preferences>Terms.

Default Item Code: The item code to be used if the SKU on the Shopify store is not found in MoneyWorks.

Discount Item Code: An item for any Shopify discounts. This must an item that you sell (and is required even if you don’t intend to have Shopify discounts).

Freight Item Code: The item code for any freight (this must be an item in MoneyWorks of type Freight).

Gift Card Item Code: The item code for Gift Cards. This should be an item that you buy and sell. As the sale of a gift card imposes a liability until the card is redeemed, both the sales and expense account should be of type Current Liability.

When no delivery address, do not substitute billing address: When there is no delivery (shipping) address specified in Shopify, the Billing address will be inserted as the delivery address. Turn this option on if you want the delivery address to be left empty.

MoneyWorks Customisation Code: Although the Shopify service should “just work”, there are many permutations of settings and different ways that a Shopify store can be set up, and it may be that the script has to be “tweaked” to work with your store. If this is required you will be issued with a Customisation Code which needs to be entered here (otherwise leave this field blank). Note that such customisations will be charged for.

Once your settings are correct, click the OK button to save them.

Downloading Shopify Transactions

To download new sales from Shopify:

  1. Click the green Shopify Orders button on Transaction list toolbar. You will be asked for confirmation.
  2. Click OK to download new orders. Any new orders created since the last one listed will be downloaded. This may take a few seconds. Upon completion an alert will display the number of transactions downloaded.
  3. Click Specific Order to download a nominated order. You will be prompted for the ID of the order. If you want to reset the order id (so subsequent downloads will be orders made after this id), set the Reset Importing check box.

Notes:

  1. The first time you download orders you need to “seed” it with the ID of the first transaction that you want to download (otherwise you risk importing lots of old orders). Use the Specific Order and Reset Importing to do this.
  2. If you are using the OLD APIs, the ID to use is the Shopify “name”, which corresponds to the ourref field in MoneyWorks. For the new APIs you need to use the Shopify ID, which is a 13 digit number. You get this from the administration area of your store, and it will stored in the transaction user5 field of any transactions imported from Shopify.
  3. Imports are limited to 25 transactions per batch. If you have more than 25 transactions you will need to repeat the Shopify Orders process.
Posted in FAQ, Resources | Comments Off on MoneyWorks and Shopify

Moving MoneyWorks Datacentre to a new computer

To move MoneyWorks Datacentre to a new computer:

Important: If you are using a Mac server, do NOT use Apple Migration Assistant to migrate to a new Mac. (It will offer to migrate MoneyWorks Server but it will make a complete mess of it. Don’t do it).

  1. Request the MoneyWorks Datacentre installer. Please contact us to request the Datacentre installer. Include your Datacentre serial number and the platform of the new machine (Windows or Mac). Note that we may not have installers for older versions of Datacentre that are out of maintenance.
  2. When you are ready to install, turn off the old Datacentre. Make sure that no-one is connected, and wait for a few minutes until all the files are closed and any backups made.
  3. Run the Installer on the new machine. Follow the MoneyWorks Datacentre setup instructions.
    • Re-enter the configuration information (serial number and other settings, including SSL certificates if you are using TLS, and webkey if you have one) in the Console.
  4. Make sure the new server computer is set to not go to sleep. Note that Mac servers will go to sleep by default. Change the sleep setting on macOS Ventura
  5. Copy the existing Datacentre file to the new machine. The Datacentre Documents directory can be located by clicking the Show button next to the Documents Folder entry on the Configuration panel of the Datacentre Console. Use this to find the location on the old machine and the target location on the new machine.
  6. Copy over the Archives and Backups if necessary and desired. These may be in the same directory as the Documents (so already copied over), or in a different directory. If they are located on a different server there is no need to copy them, just point the Archives and Backups directory on the new machine to the same location.
  7. Check the Documents and Permissions. Click on the Documents tab of the new Datacentre Console to see that the files are there. You may be prompted to update the Document permissions at this point. Note that if the Datacentre is installed on macOS Catalina or later you must give Datacentre full disk access (In System Preferences → Security & Privacy → Privacy).
  8. Check that you can log in. On a client machine, start MoneyWorks Gold and click the Connect button. You should see the new Datacentre listed when you Connect Using Local Browser. Choose that and check that you can then successfully log in to your file.
  9. Uninstall the old Datacentre. You definitely don’t want to leave this running in case people inadvertently log in and start working on old files (and also your Datacentre licence only covers one machine). See Uninstalling MoneyWorks Datacentre.
  10. Check users’ Recent Documents. If users are connecting to Datacentre using the Recent Document link, it is likely that these will no longer work (this is because, unless you have specifically set it. the IP address of the new computer is likely to be different from that of the old). Clients should choose File → Open Recent → Clear Menu to clear the old Recent Documents (it will clear on next restart), and connect using the Connect button (this will make a new entry in the Recent list, which should work from then on).

If you have configured your router for remote access and the internal IP address of the new machine differs from that the original, you will need to reconfigure your router to point to the new machine (see Using MoneyWorks over the Internet). Also ensure that you set the machine to a fixed IP so it doesn’t change in the event of a reboot. It is easier to change the IP of the old machine and fix the IP of the new one to that of the original (this also means the Open Recent should continue to work).

Posted in FAQ, Resources | Comments Off on Moving MoneyWorks Datacentre to a new computer

Change History for 9.0.7

Performance enhancements and bug fixes

16 Dec

  • Fix SMTP on Windows (the built-in SMTP MWScript was not being loaded due to being installed with an incorrect file extension)
  • Importing payments on invoices: performance improvement
  • Importing payments on invoices: fixed potential crash with unbalanced payments
  • Export XML performance improvement
  • Import progress window was not displaying progress on Mac
  • Canada GST report no longer showing for all locales
  • Datacentre/Console now times out if a database server becomes unresponsive
  • Budget importing now tolerates blank lines in the input
  • Fixed manpage installation on Mac
Posted in Change History | Comments Off on Change History for 9.0.7

Change History for 9.0.6

Mostly bug fixes

7 Dec

  • Print from Preview (Mac) was being vertically offset on the page. This has been fixed, but if you normally Print from Preview, you may have adjusted your forms to account for this vertical offset. If so, you may need to adjust them back.
  • Fixed a number of issues introduced by the switch to the new Scintilla text editing framework on Mac…
    • Script Editor (Mac) performance issue syntax colouring XML fixed
    • Script Editor (Mac) high CPU usage fixed
    • Script Editor (Mac) fixed MWScript syntax colouring missing the final token after using html/xml/json syntax colouring lexer
    • Script Editor (Mac) for Report custom control was not active
  • Fixed Report-to-Excel only working half the time (Mac)
  • Bank Reconciliation Status Report: performance optimisation
  • Datacentre: Stale-disconnect time may no longer be less than 5 minutes
  • Datacentre: Rate-limit for reconnect attempts to give more time for the network to come back up if it has gone down
  • Fixed Yodlee account linking error when there are not yet any linked accounts
  • Fixed a stack overflow crash in the in-field expression evaluation when the expression is very long
  • Stock History report: corrected handling of revaluations and negative stock
  • Copy Records as XML command is now in the contextual menu (Gold)
  • Correct handling of UK VAT Flat Rate scheme submissions using MTD

Previously included in 9.0.5r1 DC

  • Fixed Tax rates dialog being read-only on a server in 9.0.5
  • Fixed high CPU usage in the import dialog (Mac)
  • Cosmetic fix to edit list column resize on Mac
  • Scripted clipboard access (GetClipboardText and PutClipboardText)
  • Fixed potential crash on server shutdown (mainly on Windows)
Posted in Change History | Comments Off on Change History for 9.0.6

Change History for 9.0.5

10 Nov 2021

  • Fixed a crash on 9.0.4 Windows server when uploading a JPEG
  • Fixed a rare crash on 9.0.4 Windows server when client disconnects
  • Fixed spurious departmentalised control account error in product importing when updating
  • Tax by Currency Report: Was not correctly handling inwards transactions on an invoice basis
  • Small optimisation for importing payments on invoices
  • Report part search expression syntax check now has “invis” custom controls in scope
  • Fixed spurious currency error that could happen when importing transactions
  • Commission Report now set to run on server
  • Script Editor – fix margin drawing on macOS Monterey
  • UK VAT: Amend to handle assets on flat rate scheme
  • Mac custom date format YYYY-mm-dd no longer causes format alert in NZ
  • Std plugins on Mac now have file extensions, since Big Sur and later will not display icons in Finder based on Finder type metadata alone
  • Improved budget importing — A/B budget supported, invoke by drag & drop supported, auto-detect of number of periods, drop file on column to specify start period
  • Colour field in User2 table
  • XPathEval count for empty nodeset now works

Datacentre/Gold 9.0.5r1 16 Nov

  • Fixed Tax rates dialog being read-only on a server in 9.0.5
  • Fixed high CPU usage in the import dialog (Mac)
  • Cosmetic fix to edit list column resize on Mac
  • Scripted clipboard access
  • Fixed potential crash on server shutdown
Posted in Change History | Comments Off on Change History for 9.0.5

Change History for 9.0.4

27 Oct 2021

General changes

  • Tweaked Mac installers so that M1 Macs don’t falsely claim that Rosetta needs to be installed
  • Product.BuyPrice is no longer updated for inventoried items returned for credit
  • Fixed Purchase Order invoice-after-goods processing to allow a negative purchase line to be zeroed for exclusion from the invoice when it has already been processed previously
  • Updated to libcurl 7.78.0 on Windows
  • Easier access to console log and logs folder (in Help menu). Also the Gold logs are now in their own Logs subfolder on Windows
  • Modeless MAPI is optional and only enabled on Windows 10, since it appears to be unreliable on older versions of Windows/Office
  • Generic CSV Bank Importer: Now ignores lines where date is empty or amount is empty

Reports

  • New Profit and Loss for Date Range Report
  • New Tax by Currency Report
  • Stock History Report: fixed error when transactions not being shown
  • Trial Balance to Date: fixed error for first period of financial year
  • Fixed a potential crash in GST Report

Server and networking changes

  • Addressed an issue with the number of connected users sometimes being miscounted on Windows servers
  • Further sleep detection logic for flaky versions of Windows 10; if your PC went to sleep while network connected and did not tell MoneyWorks, MoneyWorks will now just exit on wake instead of crashing
  • REST doreport: optimised for large reports with no output format specified (i.e. plain text output)
  • Improved CLI logging
  • Server explicitly logs disorderly disconnects
  • Optimised the ledger autocomplete cache building to improve performance for data files with millions of ledgers (we do not condone structuring your accounts to have millions of ledgers — that is nuts)
  • jpegoptim path is relative for 64-bit install on Windows, instead of hardcoded to the (x86) directory
  • Addressed rare server crash on Windows server on client disconnect
  • Fixed a potential server lockup when a REST/HTTPS client fails to respond to a TLS shutdown
  • If a REST worker encounters a database lock, it will now fail instead of potentially retrying forever
  • Datacentre Console now indicates users whose connections appear to be stale ahead of them being disconnected

Scripting improvements

  • Fixed Before:F_REPSETUP being sent twice if the script handler takes a long time
  • New Timestamp function provides formatted timestamp with milliseconds
  • New WaitMilliseconds function for programmed script delay
  • Fixed script syntax colouring when first line is a hashbang (#!)
  • New Standalone scripts (hashbang mode) can receive command line arguments (in __args[])
  • Setting B_NEXT to true in the product entry now saves the record and advances to the next one as expected
  • Removed some outdated info from the command line tool man page
  • Message.StartDate is now mutable by ReplaceField()
  • Regex_search: Fixed spurious runtime error when search string is empty
Posted in Change History | Comments Off on Change History for 9.0.4

Change History for 9.0.3

2 Sept 2021

  • Improved network resilience when client network connection drops temporarily, and improved idle client detection for Windows clients
  • Improved report execution speed, particularly on Windows servers running on KVM virtual machines
  • MAPI mailing is now modeless when connected to a server
  • Receive non-stocked items from PO before invoice now supports all items on order being non-stocked
  • Bank Feeds Fastlink now uses external browser on Windows to work around embedded browser compatibility problems in Yodlee Fastlink
  • Show Company Details: added a “Single user mode required” notification
  • Improved Sum Selection on Orders to differentiate allocated and backordered
  • CSV Bank statement importer
  • Improved handling of departments in Asset Register
  • Account Enquiry Include Unposted performance improved on server
  • Fixed cosmetic Account Enquiry drill down highlight issue (Windows)
  • Shift-Next in Transaction entry now turns off Recurring checkbox, because the recurrence record is not duplicated
  • Datacentre Session file recovery is now always logged
  • Fixed a crash when closing a window immediately after starting to compose an accented character in a field on Mac

Scripting enhancements

  • Scripting: <READ> metasymbol to make a custom field read-only
  • Scriptable option to disable TLS attempt for SMTP: BuiltIn:SetSMTPEnableTLS(false)
  • Scriptable option to enable JS error reporting in Windows Web View: WebViewControl(w, "L_WEB", "options reportErrors='true'")
  • CLI can directly execute .mwscript files
  • Fixed an issue with REST request logging
Posted in Change History | Comments Off on Change History for 9.0.3

Change History for 9.0.2

9.0.2r3 supplementary update for Datacentre/Gold 30 July 2021 — see end of notes for additional bug fixes

  • New Rounding Mode option: For jurisdictions that mandate rounding half cents (for GST/VAT) “upwards” (technically, away from zero) you can now choose this rounding option instead of the default Bankers’ Rounding (round-half-to-even). Find this option in the GST/VAT Preferences for your document.
  • Anomalous entries in GST report now also have a background highlight, to be more easily discerned by colourblind users
  • Work around macOS High Sierra and later not reporting the correct language locale, resulting in Long Date format always being in English for customers in non-English locales. Note that working around this (intentional) Apple bug/feature has the unfortunate side effect of showing incorrectly localised sidebar headings in Open and Save dialogs within MoneyWorks for all locales (e.g. “SD8.1” instead of “Locations”). Apple appear to have fixed this bug in the upcoming Monterey release.
  • Fixed an intermittent login crash for users with very long MoneyWorks Now usernames
  • Optimised Sum Selection for Orders
  • Asset Register: New assets that have zero bookvalue should be made active
  • Asset Register: Allow new assets to be made non-depreciable
  • Asset Register: New assets with DV depreciation couldn’t alway be depreciated monthly
  • Implemented serverside importing for assets
  • Transaction Colour popup a bit wider
  • Allow zero-qty serialised product line on invoice (to indicate backordered item)
  • Prevent idle sleep for network clients, which otherwise results in disconnection
  • Improve forced-sleep logout behaviour for network clients
  • Fixed an issue with processing Sales Orders for cash customers
  • Retain send name in From header for SMTP, if specified
  • Fixed 64-bit crash on Windows when editing text objects in forms designer
  • Improved Work-it-out behaviour for price codes importing transactions
  • Bank Feeds improvements
  • Fix potential crash displaying fonts in preferences (Windows)
  • Fixed decimal alignment issues with parenthesised negatives in form lists
  • Fixed missing tooltips in Navigator on Windows
  • Fixed a runtime error in Profit Yearly Comparison report
  • Jobsheet importing now supports full length memo fields
  • Fixed type-selection in hierarchical lists, such as the Index to Reports
  • Report output to HTML file retains custom font size and style on parts and cells
  • Fixed On Order for products not respecting unit conversions
  • Fixed a login race condition with serverside reporting which could occasionally cause a report to fall back to running clientside
  • Removed spurious log entry when running a report on server for text output
  • Improved description of CI overpayment credit note
  • No longer using WinInet api on Windows; CURL across the board
  • Fixed Post icon disabling for payments on invoices
  • Handle pathological PO constructions (negative non-stocked items + stock received before invoice)
  • Preliminary Monterey compatibility work
  • Fixed concurrent login accounting for REST or a perpetual license Gold login

Scripting and automation

  • REST API change: REST import errors are no longer inappropriately reported as 500 Internal server error. These are now reported as status code 422
  • MWScript: handler parameters that are not provided now have value NULL instead of throwing an error when accessed (allowing for optional parameters).
  • MWScript: The Round function’s default rounding method is now the document’s rounding mode. Use the optional third parameter to force a specific rounding mode.
  • Script Editor: reloading of dependent scripts improved
  • REST//list may also be invoked with REST/folder/list for the benefit of UAs that don’t like //
  • Fixed exception from Mail() function on Catalina and later if no attachment supplied
  • Fixed a web object crash with 64-bit Windows version
  • Fixed Mac screen update issues after programmed refresh in Navigator
  • Form variables Stmt_Date, Omit_Credit, Omit_Zero, Print_Copy, Include_Remit, Message are now instantiated at startup (previously these variables would only exist after the first visit to the statement printing dialog)
  • Experimental API for database change notification

9.0.2r1 (Datacentre, Gold)

  • Fixed a 9.0.2 regression in purchase order processing (receiving invoice after goods)
  • Improved Datacentre performance of include unposted in account enquiry for large ledgers
  • Fixed SMTP failure where recipient’s name contains a comma (name now not included in that case)
  • Cosmetic fix to popup on Account Enquiry

9.0.2r3 (Datacentre, Gold)

  • Windows 64 bit Gold installer was not installing DLLs required for some Windows versions
  • Fixed crash on Windows when adding more than 500 reports to the Reports menu
  • Fixed crash when printing a report to clipboard (9.0.2r1 bug. d’oh)
  • SOH/Avail calculation for Sales Orders with multi-location stock is now cached and therefore MUCH faster
  • Scripting: AutoFillField function with programmed autofill text block now works with blank descriptions
Posted in Change History | Comments Off on Change History for 9.0.2

Change History for 9.0.1

Improvements and bug fixes
2 June 2021

  • MoneyWorks Services can now be activated from MoneyWorks Now and Datacentre clients
  • Fixed Drag and Drop of PDF files into image objects on Windows
  • Asset Register: Fixed depreciation of a new asset purchased on 31/12 being doubled when year end is 31/12
  • COM key reinstall now works with 64-bit Gold on Windows
  • Opening PDF manual checks that you have the v9 manual
  • Profit and Loss for Month: Fixed a syntax error in one configuration
  • Sales order with negative order lines now won’t go to Sold until the negative lines are also processed
  • Labels can now be smaller (40 points wide)
  • Detail.custom1 and Custom2 are now in the transaction import map
  • Windows F1 Help now exits the current field so that you can use the search function in Help
  • Fixed a crash on Windows in the printing dialog when selecting a form while output is set to Excel
  • Fixed a potential crash when processing a custom toolbar icon click
  • Yodlee logging is quieter by default
  • Paid By and Price Code popups bigger

Scripting

  • ValidateFieldWithValidationString can now take a list item or handle and it will validate the active cell of that list
  • SetFieldValue(w, "B_NEXT", 1) to step through records now works as expected (v9 regression)
  • CLI with -z now loads the SMTP BuiltIn script as expected
  • The BuiltIn SMTP script is now named as documented
  • Round now has an optional parameter to optionally get primary-school rounding instead of Banker’s rounding
  • Verbose logging option for CURL (CURLOPT_VERBOSE)
  • CURL support for CURLOPT_SASL_IR and CURLOPT_LOGIN_OPTIONS
  • Verbose logging option for SendSMTPMail (Built_In:SetVerbose(true))

Server fixes

  • Fixed a crash in 64-bit Win Gold client finalising GST when connected to a server
  • Removed unnecessary logging
  • Windows Console can be minimised again
  • Fixed server crash getting effective stock
  • Importing XML with Byte Order Mark (why would you even have this??) on the server now works
  • Removed connection limit UI for root folder in Console
  • Allow zero as a connection limit for subfolders in Console
  • Fix Windows server meltdown when ports collide with IPv6 turned off
  • Remove IPv6 checkbox because the setting should not be changed while documents are active; can be disabled in .conf if required
  • HTTP logging now logs the result code (this does mean that the log entry does not happen until the request has been processed, rather than before it it processed)
  • CLI with -z now loads the SMTP built-in script as expected
  • Fixed CLI login to MWNow documents (was failing to match the document URL)
Posted in Change History | Comments Off on Change History for 9.0.1

Switching between 32-bit and 64-bit Gold install on Windows

As of MoneyWorks 9, MoneyWorks Gold is available in both 32-bit and 64-bit versions on Windows (64-bit version requires Windows 10). When you update the software from Software Updates or by connecting to a newer Datacentre version, the update you get will be for the same architecture that you are currently running.

I am running MoneyWorks Gold 8 (subscription)

You can update to v9 using Help → Software Updates.

Your existing MoneyWorks Gold 8 is 32-bit, so the software update will deliver 32-bit MoneyWorks Gold 9, whether your Windows is 32- or 64-bit.

I have 64-bit Windows, and I want to install MoneyWorks Gold 9 64-bit

You can download the 64-bit Gold 9 installer from the Download page.

MoneyWorks Gold 9 64-bit will install in C:\Program Files. You may need to update any shortcuts you have made to the old version.

Note: 32-bit MoneyWorks Gold (v8 or v9) installs in C:\Program Files (x86), so if you want to be able to run both versions, it is recommended that you install the 64-bit version of Gold since it does not overwrite an earlier version in C:\Program Files (x86).

I have 32-bit MoneyWorks Gold 9 installed. How can I get the 64-bit version?

You can either download the installer from our Download page, or you can tell the Software Update system to give you a different version. To do this:

  1. Hold down the Control+Shift key and choose Help → Software Updates.
  2. Provided you are running MoneyWorks Gold 9 on 64-bit Windows, you will see a check box ✅ Request 64-bit installer. It will initially be on if you are currently running the 64-bit version, or off if you are currently running the 32-bit version.

  3. Change the checkbox setting for the desired architecture
  4. Hold down the Control+Shift keys and click Check Now
  5. This will get a software update installer even if the latest available is the same version as you are running.

I have a Mac

All current Mac software is 64-bit. Additionally, MoneyWorks 9 has native code for both x86-64 (Intel 64 bit) and ARM (Apple M1) processors. No need to have different installers.

I have Express or Cashbook

For simplicity, Windows Express 9 and Windows Cashbook 9 remain 32-bit. There is insufficient advantage to having multiple installers for these products.

Posted in FAQ | Comments Off on Switching between 32-bit and 64-bit Gold install on Windows