Import of Orders with Discounts: Process Activity

The following activity will walk you through the process of importing orders that contain items with discounts.

Story

Suppose that SweetLife decided to offer discounts for some of the products that the company sells in its BigCommerce store. Starting from today, the company provides the following discounts:

  • An extra gift item for purchases of 96-ounce jar of banana jam
  • A 10 percent discount on purchases of 96-ounce jar of plum jam
  • A 5 percent discount on orders of $100 or more

As SweetLife's implementation consultant, you need to define these discounts in the BigCommerce store and make sure that orders that contain discounts or items with discounts are imported to MYOB Advanced with the discounts applied correctly.

Configuration Overview

In the U100 dataset, on the Stock Items (IN202500) form, the BANJAM96 and PLUMJAM96 stock items have been created for the purposes of this activity.

Process Overview

In this activity, you will do the following:

  1. On the BigCommerce Stores (BC201000) form, update the discount-related settings.
  2. In the control panel of the BigCommerce store, define three discounts of different types.
  3. In the control panel, create a sales order with the automatically applied discounts.
  4. On the Prepare Data (BC501000) form, prepare the sales order data for synchronization; on the Process Data (BC501500) form, process the sales order data prepared for synchronization.
  5. On the Sales Orders (SO301000) form, review the imported sales order and applied discounts.

System Preparation

Before you complete the instructions in this activity, do the following:

  1. Make sure that the following prerequisite activities have been performed:
  2. Launch the MYOB Advanced website with the U100 dataset preloaded, and sign in with the following credentials:
    • Username: gibbs
    • Password: 123
  3. Open the Enable/Disable Features (CS100000) form.
  4. On the form toolbar, click Modify.
  5. Under Advanced Financials, select the Customer Discounts check box.
  6. On the form toolbar, click Enable.

Step 1: Updating Discount-Related Settings

To review the settings specified in MYOB Advanced for the import of online orders with discounts, do the following:

  1. Open the BigCommerce Stores (BC201000) form.
  2. In the Store Name box of the Summary area, select SweetStore - BC.
  3. On the Order Settings tab (Order section), in the Show Discounts As box, select Document Discounts.

    With this option selected, the system aggregates discounts applied to particular lines of the order in the BigCommerce store and displays these discounts at the document level.

    If the Line Discounts option were selected, the system would show all discounts in the imported orders on the Details tab split between order lines.

  4. On the form toolbar, click Save.

Step 2: Defining the First Discount

In this step, you will define the first discount, a "buy one, get one free" discount that will be applied to the Banana jam 96 oz product.

In the control panel of the BigCommerce store, do the following:

  1. In the left pane, click Marketing > Promotions.

    The Promotions page opens.

  2. In the upper right of the Automatic tab, click Create > With advanced editor.

    The Create Promotion page opens.

  3. In the Name your promotion box (Summary section), type Buy one, get one free (Banana jam 96 oz).
  4. Under Schedule, make sure that the date and time inserted by default are earlier than the current date and time. The discount should be effective when you create an order with this item later in this activity.
  5. In the Rules section, click Add rule.
  6. In the Choose a template for your discount dialog box, select Buy one, get one free and click Apply template.
  7. On the Create Promotion > Rules page, define the promotion rule as follows:
    • If the customer: Buys Products
    • Reaching a: Quantity 1 products
    • Including products: Individual Products Banana jam 96 oz
    • Then reward: A gift in their cart Once per cart
    • Include: 1 Banana jam 96 oz in the customer's cart for free.
  8. In the lower right, click Add rule to promotion to save the rule and return to the Create Promotion page.
  9. In the lower right, click Create promotion.

Step 3: Define a Second Discount

To define a 10% discount that will be applied to the price of the Plum jam 96 oz product, do the following:

  1. While you are viewing the Promotions page (Automatic tab), click Create > With advanced editor.

    The Create Promotion page opens.

  2. In the Name your promotion box (Summary section), type 10% off Plum jam 96 oz.
  3. Under Schedule, make sure that the date and time inserted by default are earlier than the current date and time. The discount should be effective when you create an order with this item later in this activity.
  4. In the Rules section, click Add rule.
  5. In the Choose a template for your discount dialog box, select Custom rules and click Apply template.
  6. On the Create Promotion > Rules page, define the promotion rule as follows:
    • If the customer: No conditions
    • Then reward: Discount on products Unlimited times
    • By a: Percentage 10% from Each product's price
    • Applied on: All products
    • Including products already on sale: Cleared
    • Including products: Individual Products Plum jam 96 oz
  7. In the lower right, click Add rule to promotion to save the rule and return to the Create Promotion page.
  8. In the lower right, click Create promotion.

Step 4: Defining a Third Discount

To define a discount that will be applied to all orders that exceed the $100 threshold, do the following:

  1. While you are viewing the Promotions page (Automatic tab), click Create > With advanced editor.

    The Create Promotion page opens.

  2. In the Name your promotion box (Summary section), type 5% discount on orders of $100 or more.
  3. Under Schedule, make sure that the date and time inserted by default are earlier than the current date and time. The discount should be effective when you create an order with this item later in this activity.
  4. In the Rules section, click Add rule.
  5. In the Choose a template for your discount dialog box, select Discount order subtotal and click Apply template.
  6. On the Create Promotion > Rules page, define the promotion rule as follows:
    • If the customer: Reaches an order sub-total
    • Spending at least: 100 on the order
    • Then reward: Discount on order sub-total Once per cart
    • Discounting by a: Percentage 5 from the order sub-total
  7. In the lower right, click Add rule to promotion to save the rule and return to the Create Promotion page.
  8. In the lower right, click Create promotion.

Step 5: Creating a Sales Order

To create an order for the Banana jam 96 oz and Plum jam 96 oz products (to which the first and second discounts apply), do the following:

  1. In the left pane of the control panel of the BigCommerce store, click Orders > Add.
  2. On the Add an Order > Customer Info page, complete the order as follows:
    1. In the Customer Information section, select the Existing Customer option button right of Order for.
    2. In the Search box, start typing the customer's name, Isabelle, and select Isabelle Bober in the list of search results.
    3. In the Billing Information section, click Use this address right of the address details for William Duncan.

      The billing address elements are filled with the settings from the previously saved address of this customer.

    4. Clear the Save to customer's address book check box.
    5. In the lower right, click Next.
  3. On the Add an Order > Items page, under Add Products, do the following:
    1. In the Search box, start typing plum, and in the list of search results, select Plum jam 96 oz.
    2. In the only row for Plum jam 96 oz, in the Qty. column, make sure 1 is specified.

      Notice that in the Item Price column, the price of the product is $45.15, which is the default price, but the Item Total is $40.63, which is the price after the second product discount has been applied.

    3. In the Search box, start typing banana, and in the list of search results, select Banana jam 96 oz.

      Notice that two lines have been added for the Banana jam 96 oz product. The price in the first line is $45. In the second line, the price is zero, because this is the free item that you specified for the first discount.

    4. In the line of the Plum jam 96 oz, change the quantity to 2.
    5. Notice that the Item Total has changed for the items (except the free item) because the order total now exceeds the $100 threshold and the order-level discount has been applied. The order subtotal is $135.30.
    6. In the lower right, click Next.
  4. On the Add an Order > Fulfillment page, in the Shipping Method section, click the Fetch Shipping Quotes link.
  5. In the box with the list of shipping options, click Free Shipping ($0.00).
  6. In the lower right, click Next.
  7. On the Add an Order > Finalize page, review the information in the Customer Billing Details, Shipping Details, and Summary sections, and make sure that the order grand total after applying all discounts is $119.50.
  8. In the Finalize section, select the Manual Payment payment method.
  9. In the lower right, click Save & Process Payment.
  10. On the View Orders page, which opens, make a note of the reference number of the created order.

Step 6: Importing the Sales Order

To import the sales order, in MYOB Advanced, do the following:

  1. Open the Prepare Data (BC501000) form.
  2. In the Summary area, specify the following settings:
    • Store: SweetStore - BC
    • Prepare Mode: Incremental
  3. In the table, in the row of the Sales Order entity, select the Selected check box.
  4. On the form toolbar, click Prepare.
  5. In the Processing dialog box, which opens, click Close to close the dialog box.
  6. In the row of the Sales Order entity, click the link in the Ready to Process column.
  7. On the Process Data (BC501500) form, which opens with the SweetStore - BC store and the Sales Order entity selected, select the unlabeled check box in the row of the sales order you created in this activity.
  8. On the form toolbar, click Process.
  9. In the Processing dialog box, which opens, click Close to close the dialog box.

Step 7: Reviewing the Discounts in the Imported Sales Order

To review how the discounts are displayed in the imported sales order, do the following:

  1. Open the Sync History (BC301000) form.
  2. In the Summary area, specify the following settings:
    • Store: SweetStore - BC
    • Entity: Sales Order
  3. On the Processed tab, in the row of the sales order that you have just imported (which you can locate by its external ID), click the link in the ERP ID column.
  4. On the Sales Orders (SO301000) form, which opens, review the settings of the order.

    On the Details tab, notice that for the free item, Banana jam 96 oz, a separate line has been created with the Free Item check box selected. In the Discount Amount and Discount Percent column, the system has inserted zeros in all lines.

    On the Discounts tab, notice that one line has been created for all discounts applied to the order in the BigCommerce store (as shown in the following screenshot). The text in the Type column (External Document) reflects the fact that the discounts were not applied in MYOB Advanced but were instead imported from an external system. The amount in the Discount Amt. column corresponds to the Discount value of the order in the BigCommerce store ($15.80).

    Figure 1. The discounts imported from the store


You have created automatic discounts of different types in the BigCommerce store, explored how they are applied to an order in the store, and reviewed how they are displayed on the order after it has been imported to MYOB Advanced. If you were to continue processing the order, you would also notice that the document-level discounts are posted to a separate expense account specified for the customer in the Discount Account box on the GL Accounts tab of the Customers (AR303000) form.

Step 8: Deactivating the Discounts

To deactivate the discounts that you have set up in this activity, while you are signed in to the control panel of the BigCommerce store, do the following:

  1. In the left pane, click Marketing > Promotions.
  2. On the Automatic tab, switch off the toggle in the Active? column for each of the discounts.