Created
September 2, 2012 23:33
-
-
Save sbob-sfdc/3605633 to your computer and use it in GitHub Desktop.
Workshop 201, Tutorial 3, Step 2, Apex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InvoiceUtilities { | |
// class method to renumber Line Items for a given Invoice number | |
// returns a string that indicates success or failure | |
public static String renumberLineItems(String invoiceName) { | |
// create a copy of the target Invoice object and it's Line Items | |
// loop through each Line Item, renumbering as you go | |
// update the Line Items in one transaction, rollback if any problems | |
// and return error messages to the calling environment | |
// on success, return the list to the calling program | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment