Skip to main content

Pastel export (on-premise)

Not every control room runs a cloud ledger. For those still on desktop Sage Pastel Partner or Pastel Xpress, CleverOps produces import-ready CSV files that you bring into Pastel by hand. It is the desktop counterpart to the live accounting sync connections.

You export three files here, customers, inventory items and invoices, and import each into its matching Pastel screen via File → Import/Export.

Everything lives under Billing → Config → Integrations → Import / Export → Sage Pastel. You need billing management access to export.

Confirm the tax and account codes against your Pastel company first

Pastel's tax types and ledger accounts are specific to your Pastel company's setup. The defaults on this screen are common South African values, but a tax type or sales account that does not exist in your company will make Pastel reject the import. Check them before your first export.

Settings​

Video Pastel export settings · 0:34

Four settings shape the invoice and inventory files. They are remembered in your browser.

SettingWhat it isDefault
Standard VAT tax typeThe Pastel tax type code for 15% VAT lines01
Zero-rated / no-VAT tax typeUsed for zero-rated invoice lines03
Sales ledger (GL) accountInvoice lines post to this GL account as a ledger line1000
Financial year startsThe first month of your Pastel financial year. It sets each invoice's period number (1 to 12)March

The three exports​

Export and import them in this order, so the invoices link up to customers and stock that already exist. Click Customers or Inventory items to download, or set the dates and click Export invoices. The files are named pastel_customers_…, pastel_inventory_… and pastel_invoices_<from>_<to>.csv.

Customers​

Every customer in the control room, as a Pastel customer masterfile. The Pastel account code is the customer's original Pastel code if it has one, otherwise its account number, otherwise a generated code. Codes are upper case letters and digits, cut to Pastel's six-character limit, so two long codes that share their first six characters would clash. Name, postal address, telephone, contact person, VAT reference, email and registration number are carried across.

Inventory items​

Every active catalog item, as a Pastel inventory file keyed on the item code (SKU), with the last cost price. The selling price is exported VAT-exclusive, worked out from the inclusive catalog price when needed. Items are exported as non-physical (no stock control).

Invoices​

Issued invoices with an issue date between the From and To dates you choose, as Pastel customer documents. Drafts and voided invoices are left out. Each invoice becomes a Pastel Header record followed by one Detail line per invoice line. Every line posts to the sales GL account, with the tax type matched to the line's VAT. Prices are exported VAT-exclusive.

Pastel numbers documents itself on import, so the CleverOps invoice number is written into the document's message line (CleverOps <number>) so you can reconcile the two.

How Pastel reads the files​

Pastel matches columns by position, not by heading, so each file must be imported against its matching Pastel layout. The files are plain CSV with text fields in quotes, dates as DD/MM/YYYY, and no heading row, which is the shape Pastel's own export produces. In Pastel go to File → Import/Export, pick the matching option (Customers, Inventory, or Customer documents), and select the downloaded file.

This is a one-way export

The Pastel export is a hand-off, not a live sync. It does not read anything back from Pastel and it does not track what you have already imported. For an automatic two-way link, use one of the cloud accounting sync connections instead.