David Na
08/05/2024, 12:24 PMRick Goodrow
08/05/2024, 3:04 PMcreateSpecificSalesOrder(customer, date, items)
that
• is provided a customer, date, and items
• creates a sales order transaction for that customer, on that date, with those items attached
• sets a field on the transaction of "follow-up date" for 30 days from the date provided
• returns the newly created sales order IID
you'd write your own unit tests that test createSpecificSalesOrder()
, and within that unit test, check after the function is completed that
• the sales order transaction was created
• all proper fields were filled in with expected data (ex, making sure "follow-up date" is exactly <provided date>+30 dayscreece
08/05/2024, 3:50 PMbattk
08/05/2024, 5:44 PMbattk
08/05/2024, 5:45 PMbattk
08/05/2024, 5:46 PMbattk
08/05/2024, 5:46 PMbattk
08/05/2024, 5:48 PMbattk
08/05/2024, 5:48 PMbattk
08/05/2024, 5:55 PMbattk
08/05/2024, 5:55 PMbattk
08/05/2024, 5:58 PMbattk
08/05/2024, 5:59 PMRick Goodrow
08/05/2024, 6:43 PMcalculateFollowUpDate()
. I'm too used to mocking up things from my previous job. I haven't yet started unit tests myself in NetSuite, although I want to, just don't have the time yet to move to full SDF implementation.David Na
08/06/2024, 6:43 AM