Advanced Intercompany Journal Entry

An advanced intercompany journal entry includes all the operations of the original journal entries, in addition to new time-saving functions. For SuiteScript details on the original intercompany journals, see Intercompany Journal Entry.

In the UI, you can access this record at Transactions > Financial > Make Advanced Intercompany Journal Entries.

If your account has the Multi-Book Accounting feature enabled, you can also work with book-specific intercompany journal entry records, which are available at Transactions > Financial > Make Book Specific Advanced Intercompany Journal Entries. Although they have different entry forms, both book-specific and regular intercompany journal entries are the same record type. Within SuiteScript, they are differentiated by the accountingbook field. In other words, a record that has a value set for accountingbook is book-specific. Otherwise, the record is not a book-specific intercompany journal entry.

For help working with this record in the UI, see Making Advanced Intercompany Journal Entries and Book-Specific Advanced Intercompany Journal Entries.

The internal ID for this record is advintercompanyjournalentry.

See the SuiteScript Records Browser for all internal IDs associated with this record.

Note:

For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following help topics:

Supported Script Types

The intercompany journal entry record is scriptable in both client and server SuiteScript.

All three user events are supported: beforeLoad, beforeSubmit, and afterSubmit.

Supported Functions

The advanced intercompany journal entry record is fully scriptable — it can be created, updated, copied, deleted, and searched using SuiteScript.

Warning:

If you update any type of journal entry that has been applied as a payment to an invoice or vendor bill, the relationship between the journal entry and payment is removed and the payment is no longer applied.

Code Samples

The following sample shows how to create an advanced intercompany journal entry.

          var journalEntry = record.create({
    type: record.Type.ADV_INTER_COMPANY_JOURNAL_ENTRY,
    isDynamic: true
});
journalEntry.setValue({
    fieldId: 'subsidiary',
    value: 1
});
journalEntry.selectNewLine({
    sublistId: 'line'
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'subsidiary',
    value: 1
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'account',
    value: 100
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'debit',
    value: '1.00'
});
journalEntry.commitLine({
    sublistId: 'line'
});

journalEntry.selectNewLine({
    sublistId: 'line'
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'subsidiary',
    value: 1
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'account',
    value: '101'
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'credit',
    value: '1.00'
});
journalEntry.commitLine({
    sublistId: 'line'
});

journalEntry.selectNewLine({
    sublistId: 'line'
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'subsidiary',
    value: 2
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'account',
    value: '200'
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'debit',
    value: '1.00'
});
journalEntry.commitLine({
    sublistId: 'line'
});

journalEntry.selectNewLine({
    sublistId: 'line'
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'subsidiary',
    value: 2
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'account',
    value: '201'
});
journalEntry.setCurrentSublistValue({
    sublistId: 'line',
    fieldId: 'credit',
    value: '1.00'
});
journalEntry.commitLine({
    sublistId: 'line'
}); 

        

Related Topics

General Notices