Table of Contents

Basic EDI import/export Process

Notes

MW fields used

MW field Data
transaction.ourref invoice number
transaction.transdate date of invoice
transaction.duedate date payment is due
transaction.type DII for invoice, SOI for order
transaction.theirref customer's order number
transaction.namecode customer code in MW
transaction.contra account in MW
transaction.tofrom use this for contact person
transaction.mailingaddress always uses the customer's default mailing address
transaction.deliveryaddress use this for actual delivery address (NAD+DP) if supplied, otherwise the buyer's address (NAD+BY)
transaction.salesperson set to DD if using a direct delivery address
transaction.flag set to EDI for imported orders
transaction.description used to store the contact person as [ToFrom] gets wiped when sales order is processed
transaction.analysis supplier's order number
transaction.user1 expected delivery date (yyyymmdd)
transaction.user2 phone
transaction.user3 email
transaction.currency currency - blank if default (DKK)
transaction.freightdetails freight details e.g. shipping code or number
transaction.prodpricecode A=DKK, B=SEK, C=NOK
transaction.gross gross total for transaction
transaction.taxamount tax total for transaction
name.custom1 buyer's GLN/EAN (top level GLN/EAN looked up from corresponding head office name record)
name.custom2 not used yet
detail.account sales account in MW
detail.gross line gross amount
detail.tax line VAT amount
detail.net line total before tax
detail.description product description
detail.taxcode tax code in MW
detail.orderqty quantity ordered
detail.stockqty quantity supplied
detail.stockcode product code (= supplier's article) - corresponds to <detail.supplierarticle> in XML
detail.unitprice unit full price
product.custom1 manufacturer's part number (=TUN) corresponds to <detail.manufacturerpart> in XML
product.custom2 not used yet - corresponds to <detail.buyerpart> in XML
product.barcode product GTIN - corresponds to <detail.stockcode> in XML

Discounts for Ditas (XL-BYG) for EDI Orders

Script logic:

Pick List logic

Pick lists are split into 2 sections based on either shoe or accessories. Shoes have their product.category1 set to “Access” - that's it!

Shipping charges for customers

  1. The number of pairs a customer must order in order to get free shipping is stored in name.custom4
  2. As of Friday 04 July 2014 rates are
    1. 1 pair DKK 80,00
    2. 2 pairs DKK 100,00
    3. 3 pairs DKK 100,00
    4. 4 pairs DKK 100,00
    5. 5 pairs DKK 130,00
    6. 6 pairs DKK 130,00
    7. 7 pairs DKK 130,00
    8. 8 pairs DKK 130,00
    9. 9 pairs DKK 130,00
  3. So if name.custom4 is “5” and customer orders 4 pairs they pay 100, if they order 5, they pay zero.

Reports

Report 1