Skip to content

Latest commit

 

History

History

generate-a-report-of-orders-that-still-require-payment

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Generate a report of orders that still require payment

Tags: CSV, Report, Unpaid

This task generates a CSV spreadsheet, listing orders that are unpaid, partially paid, or pending payment. The resulting report is emailed to the recipient of your choice. Optionally, choose to have this report generated hourly, or daily.

Default options

{
  "include_closed_orders__boolean": true,
  "recipient_email_address__email_required": null,
  "email_subject__required": "Orders that require payment: {{ \"now\" | date: \"%F\" }}",
  "email_body__required_multiline": "Hello,\n\nPlease find the attached report. Thanks!\n\n-Mechanic, for {{ shop.name }}",
  "csv_attachment_filename__required": "orders-that-require-payment-{{ \"now\" | date: \"%Y%m%d\" }}.csv",
  "run_hourly__boolean": null,
  "run_daily__boolean": null
}

Learn about task options in Mechanic

Subscriptions

mechanic/user/trigger

{% if options.run_hourly__boolean %}
  mechanic/scheduler/hourly
{% elsif options.run_daily__boolean %}
  mechanic/scheduler/daily
{% endif %}

Learn about event subscriptions in Mechanic

Documentation

This task generates a CSV spreadsheet, listing orders that are unpaid, partially paid, or pending payment. The resulting report is emailed to the recipient of your choice. Optionally, choose to have this report generated hourly, or daily.

Installing this task

Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!