Criteria

Salesforce Invoice Line Views

Field Name

Help

Ready for Amortization Calculation

Formula:

  1. Account Posting Group = Lease Revenue

  2. Order Record Type contains Rental

  3. Invoice Status = ‘Posted’

  4. Order Product != ''

  5. Lease Amortization Line = ''

  6. Product Family != ‘FRP’

  7. (Charge Type = ‘Recurring' OR Product.Sub Category = ‘DISCOUNT’ OR 'DOWN_PAYMENT')

ISPICKVAL( blng__InvoiceLineStatus__c ,'Posted') 
&& NOT(ISBLANK( blng__OrderProduct__c ))
&& ISBLANK( Lease_Amortization_Line__c ) 
&& (
ISPICKVAL(blng__ChargeType__c,'Recurring') 
|| ISPICKVAL( blng__Product__r.Sub_Category__c, 'DISCOUNT') 
|| ISPICKVAL(blng__Product__r.Sub_Category__c, 'DOWN_PAYMENT')
)

Lease First SF Invoices Lines w/o AMT Lines

Lease First SF Invoices Lines with AMT Lines

Lease Monthly SF Inv. Lines with AMT Lines

Lease Monthly SF Inv. Lines w/o AMT Lines

image-20240315-154353.png

Setups

Company Setup

Field Name

Help

Lease Receivable G/L Account

Lookup(GL Account)

Default Loan Interest Rate

Default Interest Rate(%) uses in the amoritization calculation, unless overwritten by Product2.GF_Interest_Rate__c

Account Posting Setup

Field Name

Help

Interest Income G/L Account

Lookup(GL Account)

Write-Off G/L Account

Lookup(GL Account)

Account Sales Tax Payable

Lookup(GL Account)

Product

Field Name

Help

Sub Category

DISCOUNT, DOWN_PAYMENT

Salesforce Invoice Line

Field Name

Help

Ready for Amortization Calculation

Lease Amortization Line

Lookup(Lease Amortization Line)

Create Amortizations Manually

Create Amortization from Salesforce Invoice Lines

image-20240313-211224.png

Amortization Schedule

image-20240306-232230.pngnote

Variables:

P = LR Booked Amount

PMT = MRR Amount

r = Interest Rate/12

n = Term(months)

Variables:

P = LR Booked Amount

PMT = MRR Amount

r = Interest Rate/12

n = Term(months)

Lease Amortization

Field Name

Help

Customer

blng_Account__c

First Invoice

Salesforce Invoice > First Invoice = True

Fully Paid

Formula(Total LR Amount Paid = LR Booked Amount)

Interest Income GL Account

Lease Receivable GL Account

Write-Off GL Account

Revenue GL Account

Interest Rate

Company Default > Default Loan Interest Rate, Can be overwritten by Product > GF_Interest_Rate__c

Item

Invoice Line > Product > Item

LR Booked Amount

Calculated Principal Amount

MRR Amount

Invoice Line > Order Product > Billable Unit Price

Open Lines

Roll-Up Summary COUNT Lease Amortization Line (Post != True)

Order Product

Invoice Line > Order Product (One Order Product per Lease Amortization)

Original Ownership

Order Product > Original Ownership

Sales Tax GL Account

Starting Date

Invoice Line > Start Date

Term

Invoice > Invoice Line > Product > Product_Contract_Term__c

Total Discount

Roll-Up Summary (SUM Lease Amortization Line Lease: Discount Amount)

Total Interest Paid

Roll-Up Summary (SUM Lease Amortization Line Lease: Interest Amount)

Total Invoice Amount

Roll-Up Summary (SUM Lease Amortization Line Lease: Invoice Amount)

Total Lines

Roll-Up Summary COUNT Lease Amortization Line

Total LR Amount Paid

Roll-Up Summary (SUM Lease Amortization Line: Lease Receivable), Line Type = Monthly Entry

Down Payment Amount

Roll-Up Summary (SUM Lease Amortization Line Lease: Down Payment Amount)

Cancelled

True if Lease Amortization is canceled using the Cancel Lease button

Currency

GL Ledger

From order’s Warehouse

Lease Amortization Lines

Field Name

Help

Type

INITIAL_ENTRY, MONTHLY_ENTRY,DOWN_PAYMENT,DISCOUNT,CANCELLATION

Invoice Date

SF Invoice Posting Date

Invoice Amount

SF Invoice Line: TotalAmount. (Include Tax)

Lease Receivable

MRR Amount

Monthly Payment Amount

Posted

True if the line is posted

SF Invoice Line Calculated Qty.

SF Invoice Line: Calcualted Quantity

Tax Amount

SF Invoice Line: TaxAmount

Interest Amount

Discount Amount

Down Payment Amount

SF Sales Invoice

SF Sales Invoice Line

Currency

Create Monthly Amortization Entries From Invoice Lines (Salesforce Invoice Line)

The system will search for existing Lease Amortization records using the Order Product associated with the Salesforce Invoice Line. If the Order Product is linked to a Lease Amortization record, the routine will utilize the data from the Salesforce Invoice Line to generate a Monthly Amortization Entry under the corresponding Lease Amortization.

If Lease Amortization is not found, an error message will be written on the invoice line, letting the user know to create an amortization schedule for that invoice line.

Monthly Amortization Line Entry Calculation

Create Amortizations Automatically

Cancel an Amortization

Manual Post & Un-Post Amortization GL Enries

Lease Amortization Line List Views

Open

Filter:

Posted = False


Post

Filter:

Posted = True

How to Post Amortization Entries

image-20240306-061020.png

G/L Entries Examples

How to Un-Post Amortization Entries

image-20240306-062344.pngimage-20240306-063311.png

Automatic Post Amortization GL Entries

Open Questions/To Dos

  1. Work with Umair to create and test different test cases:

    1. Salesforce Invoice with one product

    2. Salesforce Invoice with multiple products.

    3. Salesforce Invoice with discount

    4. Salesforce Invoice with sales tax (Texas charges Sales Tax on the first invoice?)

      1. SW: Please send some examples.

    5. Salesforce invoice with downpayment

      1. SW: Need the Home Water team to create test invoices with a down payment line

    6. Excel Sheet with Examples

      1. https://microdatanet1988.sharepoint.com/:x:/s/Clients/ES-9cKPQSJtKjv2iacvcnsoBie47orn_Gk8W_rOBTOMsPw?e=shJ7lo

  2. Go Live, how should we handle open invoices?

    1. if we mass-create GF invoices and Amortization entries for existing Salesforce Invoices will it cause GL issues? such as double count?

  3. The current First Invoice flag does not work on Renewed subscriptions, it does not flag the First Invoice of the renewed subscription!!!

Reference

  1. Home Water Amortization Schedule

  2. Amortization Mapping