remove inventory on invoice commented test specs
authorjulesstp <julianmcarlin@gmail.com>
Sat, 19 Jul 2014 08:12:09 +0000 (02:12 -0600)
committerjulesstp <julianmcarlin@gmail.com>
Sat, 19 Jul 2014 08:12:09 +0000 (02:12 -0600)
test/specs/invoice.js

index 4c595d4..e674090 100644 (file)
@@ -1319,123 +1319,8 @@ TODO deferred to later sprint:
   exports.spec = spec;
   exports.additionalTests = additionalTests;
 
-
-
 /*
 
-***** CHANGES MADE BY INVENTORY EXTENSION ******
-
-* XM.InvoiceLine will include:
-  > Boolean "updateInventory"
-* The updateInventory attribute is readOnly unless all the following are true
-  > The invoice is unposted.
-  > A valid item is selected.
-  > The item and site do not resolve to an item site that is job cost
-  > There is no associated salesOrderLine (attr added by sales extension)
-
-* XM.InvoiceListItem will include:
-  > String "shipDate"
-  > String "shipToName"
-* XM.InvoiceListItem will extend the post function to include inventory information
-  * For each line item where "updateInventory" is true, issue materials to the invoice
-  * Capture distribution detail (trace and location) where applicable
-#HINT: This will likely require creating an alternate dispatchable "post" function that
-  accepts an invoice id _and_ inventory data.
-
-* XM.Invoice will include:
-  > Date "shipDate" default today
-  > CustomerShiptoRelation "shipto"
-  > String "shiptoName"
-  > String "shiptoAddress1"
-  > String "shiptoAddress2"
-  > String "shiptoAddress3"
-  > String "shiptoCity"
-  > String "shiptoState"
-  > String "shiptoPostalCode"
-  > String "shiptoCountry"
-  > String "shiptoPhone"
-  > ShipCharge "shipCharge"
-  > ShipZone "shipZone"
-  > String "incoterms" // HINT: This is the "invchead_fob" field
-  > String "shipVia" (The preferred Ship Via method for the Customer will appear in the field. You may change the Ship Via using the list.)
-  > Money "freight" required, default 0
-* When the customer changes will copy the following attributes from the customer model:
-  > shipCharge
-  > shipto (If a default customer shipto exists)
-  > The following fields will be set to read only if the customer does not allow free
-  form shipnto:
-    - shiptoName
-    - shiptoAddress1
-    - shiptoAddress2
-    - shiptoAddress3
-    - shiptoCity
-    - shiptoState
-    - shiptoPostalCode
-    - shiptoCountry
-    - shiptoPhone
-* The inventory extension adds a function to XM.Invoice "copyBilltoToShipto" that
-does the following
-  > Clears the shipto
-  > Copies billto name, address fields and phone number to shipto equivilants.
-  > Sets the invoice tax zone to the customer tax zone.
-* When an invoice is loaded where "isPosted" is true, then the following attributes
-will be made read only:
-  > lineItems
-  > number
-  > invoiceDate
-  > terms
-  > salesrep
-  > commission
-  > taxZone
-  > shipCharges
-  > project
-  > freight
-  > shipZone
-  > saleType
-
-* If the shipto changes to a value, the following fields should be set based on information
-from the shipto:
-  - shiptoName (= customer.shipto.name)
-  - shiptoAddress1
-  - shiptoAddress2
-  - shiptoAddress3
-  - shiptoCity
-  - shiptoState
-  - shiptoPostalCode
-  - shiptoCountry (< ^ should be populated by the default customer.shipto.address).
-  - shiptoPhone
-  - salesRep
-  - commission
-  - taxZone
-  - shipCharge
-  - shipZone
-* if the shipto is cleared these fields should be unset
-  - shiptoName
-  - shiptoAddress1
-  - shiptoAddress2
-  - shiptoAddress3
-  - shiptoCity
-  - shiptoState
-  - shiptoPostalCode
-  - shiptoCountry
-  - shiptoPhone
-* If any of the above listed shipto attributes are manually altered, the shipto is unset.
-
-* Freight should be read only and zero when the "isCustomerPay" property is false on the ship
-charge associated with the invoice.
-
-* totalTax should be recalculated when freight changes.
-
-* Add the following to the invoice workspace:
-  > When the customer is changed on the XV.InvoiceWorkspace model:
-    - customer should be set on shipto relation so that it will search on and select from that
-    customer's shipto addresses.
-    - The bill to address should be supplimented with a "Shipto" button that when clicked runs
-    the copyToShipto function ()
-    - The copy ship to button should be disabled if the customer does not allow free-form shiptos.
-  > The shipto addresses available when searching addresses sholud filter on the addresses
-  associated with the customer's account record by default.
-
 ***** CHANGES MADE BY MANUFACTURING EXTENSION ******
 
 * A nested only model should be created according to convention for many-to-many document