Proc Subway CashRecieptBatchPosting EquipmentLease Batch

Method Signature
[dbo].[proc_Subway_CashReceiptBatchPosting_EquipmentLease_Batch] (       @BalanceXML AS XML    ,	@UserStamp VARCHAR(300)    )

Procedure Flow

 * 1) Create a temp table with all the CashReceiptBatchIds to process from the XML passed in, these are the selected cash receipt batches
 * 2) Create a temp table with each unique lease number summing up the Item Amount
 * 3) Insert all the records in the previous step into the table ELTransactions
 * 4) For each record inserted in the previous step calculate a running balance by adding the existing balance minus the Credit Amount (Sales Tax and Debit Amount are zero for cash receipts)
 * 5) Calculate and set the security Deposit Amount in the ELMasterFile table for each Lease equal to the existing value plus the sum of the selected cash receipt batches.  Set the Security Date equal to the day the stored procedure is run.
 * 6) Calculate and set the Balance Due Amount in the ELMasterFile table for each Lease equal to the existing value minus the sum of the selected cash receipt batches.