Company/customer – mScript

Company

Object: @company

mscript Description
@company.name
Name
@company.id
Customer number
@company.identityNumber
Identity number (org. number)
@company.web
Webpage (Homepage)
@company.directions
Directions
@company.email
Email
@company.invoiceEmail
Invoice email address
@company.phone
Telephone
@company.address1
@company.address2
@company.postalCode
@company.city
@company.country

Address fields

If both invoice addresses, post address and visit address are filled in, the system will automatically select one of the addresses based on the following priority:

  1. Visit address
  2. Post address
  3. Invoice address
@company.created
Created, d.m.Y H:i:s
@company.updated
Updated, d.m.Y H:i:s
@company.creditTime
Credit time
@company.logo
@company.logo(height:50)
@company.logo(width:100)
@company.logo(width:90,height:75)
This will show the company logo. You can customise the size of an image and set width, height or both. The numbers correspond to the pixels.

Company – Visit address

Object: @companyVisitAddress

mscript Description
@companyVisitAddress.address1
First address line
@companyVisitAddress.address2
Second address line
@companyVisitAddress.city
City
@companyVisitAddress.postalCode
Postal Code
@companyVisitAddress.country
Country

Company – Invoice address

Object: @companyInvoiceAddress

mscript Description
@companyInvoiceAddress.address1
First address line
@companyInvoiceAddress.address2
Second address line
@companyInvoiceAddress.city
City
@companyInvoiceAddress.postalCode
Postal Code
@companyInvoiceAddress.country
Country

Company – Post address

Object: @companyPostAddress

mscript Description
@companyPostAddress.address1
First address line
@companyPostAddress.address2
Second address line
@companyPostAddress.city
City
@companyPostAddress.postalCode
Postal Code
@companyPostAddress.country
Country

Company – Delivery address

Object: @companyDeliveryAddress

mscript Description
@companyDeliveryAddress.address1
First address line
@companyDeliveryAddress.address2
Second address line
@companyDeliveryAddress.city
City
@companyDeliveryAddress.postalCode
Postal Code
@companyDeliveryAddress.country
Country

Format

Format 1
addressLine1, addessLine2, post, city, country
Format 6
addressLine1
addressLine2
city
post
country
Format 2
addressLine1
post city
country
Format 7
addressLine1
city, post
Format 3
addressLine1
addressLine2
post city
country
Format 8
addressLine1
city, post
country
Format 4
addressLine1
post city

Format 9
addressLine1, addressLine2
city, post

Format 5
addressLine1
addressLine2
post city
Format 10
addressLine1, addressLine2
city, post
country

Tags:

@companyDeliveryAddress.format
@companyInvoiceAddress.format
@companyPostAddress.format
@companyVisitAddress.format

Note

After the ".format", we need to select the number of the desired format.

Examples:

Delivery address
@companyDeliveryAddress.format1
Invoice Address
@companyInvoiceAddress.format10
Post Address
@companyPostAddress.format8
Visit Address
@companyVisitAddress.format4
Was this article helpful?
0 out of 0 found this helpful