@hitc/netsuite-types 2022.2.10 → 2022.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/SuiteGL.d.ts +25 -1
  2. package/package.json +1 -1
package/SuiteGL.d.ts CHANGED
@@ -43,7 +43,6 @@ interface GLLine {
43
43
  * object contains a reference to each custom GL impact line.
44
44
  */
45
45
  interface CustomLine extends GLLine {
46
- // TODO: Add the rest of the methods here. There are a few more that may be used in special situations.
47
46
  /**
48
47
  * Sets the account ID property for a CustomLine object in a primary or secondary book.
49
48
  * @param {number} accountId Internal NetSuite ID for an account.
@@ -90,6 +89,20 @@ interface CustomLine extends GLLine {
90
89
  * @param {string} segmentValueId
91
90
  */
92
91
  setSegmentValueId (segmentId: string, segmentValueId: number): void;
92
+ /**
93
+ * Sets a custom GL impact line to affect only the primary book in a Custom GL plug-in implementation.
94
+ * If you use this method and set the value to false,
95
+ * the plug-in implementation copies the custom line to secondary books and the custom line is also subject to the any mapping set up for the Multi-Book Accounting feature.
96
+ *
97
+ * If you do not use this method or set the value to true, the custom GL impact line only applies to the primary accounting book and is not copied to secondary accounting books.
98
+ * @param {boolean} bookSpecific
99
+ */
100
+ setBookSpecific(bookSpecific: boolean): void;
101
+ /**
102
+ * Returns true if the custom line is specific to the primary book and should not be copied to the secondary accounting books.
103
+ * Returns false if the custom line is not specific to the primary accounting book.
104
+ */
105
+ isBookSpecific(): boolean;
93
106
  }
94
107
 
95
108
  /**
@@ -106,6 +119,17 @@ interface CustomLines {
106
119
  * ledger account ID and the amount of the custom line.
107
120
  */
108
121
  addNewLine(): CustomLine;
122
+ /**
123
+ * Returns the number of custom lines with GL impact for a specific accounting book in a transaction.
124
+ * Use this method in conjunction with getLine(index) to read individual custom lines.
125
+ */
126
+ getCount(): number;
127
+ /**
128
+ * Returns a CustomLine object that represents a custom line with GL impact.
129
+ * CustomLine objects are stored in the CustomLines object starting at index 0.
130
+ * @param {number} index
131
+ */
132
+ getLine (index: number): CustomLine;
109
133
  }
110
134
 
111
135
  /**
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "posttest": "npm run cleanup"
9
9
  },
10
10
  "homepage": "https://github.com/headintheclouddev/typings-suitescript-2.0",
11
- "version": "2022.2.10",
11
+ "version": "2022.2.12",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {