Difference between revisions of "Add Item to Created Order Tests"

From Opentaps Wiki
Jump to navigationJump to search
(Item Status Tests)
m (Item Status Tests)
Line 5: Line 5:
 
Because the logic is very heavily status dependent, there are some basic status changes that are required in order for things to work smoothly.  These tests are designed to ensure that adding an item to an order marks the status of the item and the order correctly.
 
Because the logic is very heavily status dependent, there are some basic status changes that are required in order for things to work smoothly.  These tests are designed to ensure that adding an item to an order marks the status of the item and the order correctly.
  
== Item Status Tests ==
+
== Item Status Tests for Sales Orders ==
  
 
'''Action'''
 
'''Action'''
Line 55: Line 55:
  
 
Item becomes completed when order ships.  Order is completed.
 
Item becomes completed when order ships.  Order is completed.
 +
 +
== Item Status Tests for Purchase Orders ==
  
 
'''Action'''
 
'''Action'''
  
Create a purchase order in Purchasing from DemoSupplier for product GZ-1000.  Use Offline Payment for the payment method.  The order must be in the Created state.  Click on the [Edit or Add Item] to get the add form.  At the bottom, add GZ-1001 to the order.
+
Create a purchase order in Purchasing from DemoSupplier for product GZ-1000.  The order must be in the Created state.  Click on the [Edit or Add Item] to get the add form.  At the bottom, add GZ-1001 to the order.
  
 
'''Results'''
 
'''Results'''

Revision as of 00:50, 9 October 2007

Unless noted, these tests assume that there is sufficient QOH and ATP for the orders. To increase them, go to Warehouse > Inventory > Receive an Item. Use this form to add products directly to the inventory

Status Tests

Because the logic is very heavily status dependent, there are some basic status changes that are required in order for things to work smoothly. These tests are designed to ensure that adding an item to an order marks the status of the item and the order correctly.

Item Status Tests for Sales Orders

Action

Create a sales order in CRMSFA for DemoCustomer with product GZ-1000. Use Offline Payment for the payment method. The order must be in the Created state. Click on the [Edit or Add Item] to get the add form. At the bottom, add GZ-1001 to the order.

Results

A new row for GZ-1001 is added to the order with status Created.

Action

Approve this order.

Results

All items, especially GZ-1001, are marked Approved.


Action

Create another sales order as above, but approve the order first before adding the item.

Results

A new row for GZ-1001 is added to the order with status Approved.

Action

Pack and ship both orders using the Warehouse application.

Results

Both orders should show the GZ-1001 item as being in the Completed status. Both orders are marked completed.

Action

Create another order using DemoCustomer's Credit Card. It should automatically be authorized and the order should be approved. Add an item to the order.

Results

Item is added to order in Approved state.

Action

Ship the credit card order.

Results

Item becomes completed when order ships. Order is completed.

Item Status Tests for Purchase Orders

Action

Create a purchase order in Purchasing from DemoSupplier for product GZ-1000. The order must be in the Created state. Click on the [Edit or Add Item] to get the add form. At the bottom, add GZ-1001 to the order.

Results

Added item must be in Creatd state.


Action

Approve the order

Results

Items are both Approved.

Action

Create another purchase order, but this time approve the order first and then add the item.

'Results

Item is automatically set to approved.