@mj-biz-apps/orders-ng 5.51.0 → 5.53.0
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.
- package/dist/lib/data/orders-queries.d.ts +32 -4
- package/dist/lib/data/orders-queries.d.ts.map +1 -1
- package/dist/lib/data/orders-queries.js +79 -7
- package/dist/lib/data/orders-queries.js.map +1 -1
- package/dist/lib/data/preset-view.d.ts +4 -3
- package/dist/lib/data/preset-view.d.ts.map +1 -1
- package/dist/lib/data/preset-view.js +4 -3
- package/dist/lib/data/preset-view.js.map +1 -1
- package/dist/lib/pages/payments/account-credit.page.d.ts +21 -0
- package/dist/lib/pages/payments/account-credit.page.d.ts.map +1 -1
- package/dist/lib/pages/payments/account-credit.page.js +145 -82
- package/dist/lib/pages/payments/account-credit.page.js.map +1 -1
- package/dist/lib/pages/receivables/billing-issue.d.ts +14 -0
- package/dist/lib/pages/receivables/billing-issue.d.ts.map +1 -0
- package/dist/lib/pages/receivables/billing-issue.js +17 -0
- package/dist/lib/pages/receivables/billing-issue.js.map +1 -0
- package/dist/lib/pages/receivables/billing.page.d.ts +135 -19
- package/dist/lib/pages/receivables/billing.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/billing.page.js +748 -163
- package/dist/lib/pages/receivables/billing.page.js.map +1 -1
- package/dist/lib/pages/receivables/customer-ar-page.model.d.ts +265 -0
- package/dist/lib/pages/receivables/customer-ar-page.model.d.ts.map +1 -0
- package/dist/lib/pages/receivables/customer-ar-page.model.js +576 -0
- package/dist/lib/pages/receivables/customer-ar-page.model.js.map +1 -0
- package/dist/lib/pages/receivables/customer-ar.page.d.ts +220 -78
- package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/customer-ar.page.js +2206 -567
- package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -1
- package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts +157 -26
- package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js +1278 -316
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
- package/dist/lib/pages/receivables/overdue-page.model.d.ts +55 -0
- package/dist/lib/pages/receivables/overdue-page.model.d.ts.map +1 -0
- package/dist/lib/pages/receivables/overdue-page.model.js +112 -0
- package/dist/lib/pages/receivables/overdue-page.model.js.map +1 -0
- package/dist/lib/pages/receivables/overdue.page.d.ts +104 -16
- package/dist/lib/pages/receivables/overdue.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/overdue.page.js +476 -125
- package/dist/lib/pages/receivables/overdue.page.js.map +1 -1
- package/dist/lib/pages/receivables/progress.page.d.ts +69 -8
- package/dist/lib/pages/receivables/progress.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/progress.page.js +574 -248
- package/dist/lib/pages/receivables/progress.page.js.map +1 -1
- package/dist/lib/pages/receivables/worklist-view.model.d.ts +229 -0
- package/dist/lib/pages/receivables/worklist-view.model.d.ts.map +1 -0
- package/dist/lib/pages/receivables/worklist-view.model.js +402 -0
- package/dist/lib/pages/receivables/worklist-view.model.js.map +1 -0
- package/dist/lib/panels/aging-bar.component.d.ts +7 -1
- package/dist/lib/panels/aging-bar.component.d.ts.map +1 -1
- package/dist/lib/panels/aging-bar.component.js +89 -33
- package/dist/lib/panels/aging-bar.component.js.map +1 -1
- package/dist/lib/panels/side-panel.component.d.ts +41 -0
- package/dist/lib/panels/side-panel.component.d.ts.map +1 -0
- package/dist/lib/panels/side-panel.component.js +126 -0
- package/dist/lib/panels/side-panel.component.js.map +1 -0
- package/dist/lib/panels/stat-tile.component.d.ts +10 -1
- package/dist/lib/panels/stat-tile.component.d.ts.map +1 -1
- package/dist/lib/panels/stat-tile.component.js +27 -6
- package/dist/lib/panels/stat-tile.component.js.map +1 -1
- package/dist/lib/panels/worklist-bar.component.d.ts +81 -0
- package/dist/lib/panels/worklist-bar.component.d.ts.map +1 -0
- package/dist/lib/panels/worklist-bar.component.js +291 -0
- package/dist/lib/panels/worklist-bar.component.js.map +1 -0
- package/dist/lib/panels/worklist-table.component.d.ts +47 -5
- package/dist/lib/panels/worklist-table.component.d.ts.map +1 -1
- package/dist/lib/panels/worklist-table.component.js +283 -79
- package/dist/lib/panels/worklist-table.component.js.map +1 -1
- package/dist/lib/sections/orders-sections.component.d.ts +33 -1
- package/dist/lib/sections/orders-sections.component.d.ts.map +1 -1
- package/dist/lib/sections/orders-sections.component.js +100 -7
- package/dist/lib/sections/orders-sections.component.js.map +1 -1
- package/dist/lib/sections/section-nav.model.js +5 -5
- package/dist/lib/sections/section-nav.model.js.map +1 -1
- package/dist/lib/sections/section-shell.component.js +2 -2
- package/dist/lib/styles/orders-kit.css +10 -0
- package/dist/public-api.d.ts +2 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +2 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +35 -35
|
@@ -1,111 +1,253 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
4
|
-
import { type MJUserViewEntityExtended } from '@memberjunction/core-entities';
|
|
5
|
-
import { type MJOAgingBuckets } from '../../panels/aging-bar.component.js';
|
|
6
|
-
import { type mjBizAppsOrdersOrderHeaderEntity, type mjBizAppsOrdersPaymentHeaderEntity, type mjBizAppsOrdersSubscriptionEntity } from '@mj-biz-apps/orders-entities';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { type DateCell, type mjBizAppsOrdersOrderHeaderEntity, type mjBizAppsOrdersPaymentHeaderEntity, type mjBizAppsOrdersSubscriptionEntity } from '@mj-biz-apps/orders-entities';
|
|
3
|
+
import { type ARCompanyOption, type ARCustomer, type ARItemFilter, type ARItemFilterOption, type ARItemSortKey, type AROpenItem, type ARPreset, type ARSortKey, type ARTotals } from './customer-ar-page.model.js';
|
|
7
4
|
import * as i0 from "@angular/core";
|
|
8
|
-
/** A customer
|
|
9
|
-
interface
|
|
10
|
-
Key:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Credit: number;
|
|
15
|
-
Buckets: MJOAgingBuckets;
|
|
16
|
-
Orders: mjBizAppsOrdersOrderHeaderEntity[];
|
|
5
|
+
/** A column of the customer list. `Wide` columns fold away when a customer is open. */
|
|
6
|
+
interface ARColumn {
|
|
7
|
+
Key: ARSortKey;
|
|
8
|
+
Label: string;
|
|
9
|
+
Title: string;
|
|
10
|
+
Wide: boolean;
|
|
17
11
|
}
|
|
18
12
|
/**
|
|
19
|
-
* `mjo-customer-ar-page` — one customer
|
|
13
|
+
* `mjo-customer-ar-page` — the A/R book, and one customer on demand.
|
|
20
14
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
15
|
+
* TWO STATES OF ONE SCREEN. It opens on the whole book: one row per customer with their receivable,
|
|
16
|
+
* how old it is, what is scheduled but not yet invoiced, and the next date anything falls. Choosing
|
|
17
|
+
* a customer folds that table into a narrow list and opens their detail beside it, so moving to the
|
|
18
|
+
* next customer is one click (or an arrow key) and the book never leaves the screen. Choosing the
|
|
19
|
+
* same customer again, "All customers", Close or Escape unfolds it.
|
|
25
20
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
21
|
+
* INVOICED AND NOT YET INVOICED ARE SHOWN APART (bc-aidp-next-golive#481). A scheduled installment
|
|
22
|
+
* has no invoice behind it, so it is not receivable and is never aged; see the page model.
|
|
23
|
+
*
|
|
24
|
+
* IT IS A PLACE TO WORK FROM, NOT ONLY TO READ. From a customer you can record a payment, and issue
|
|
25
|
+
* a scheduled installment that is due; a figure in the table opens the invoices behind it.
|
|
26
|
+
*
|
|
27
|
+
* THE OPEN CUSTOMER IS IN THE TAB'S ADDRESS, AND THE SECTION WRITES IT. The page emits
|
|
28
|
+
* `AddressChanged` and is told the address through `ApplyAddress`; it never touches the shell or
|
|
29
|
+
* the browser's history itself, because a cached page acting on "the active tab" would rewrite
|
|
30
|
+
* whichever tab the user happened to be looking at.
|
|
31
|
+
*
|
|
32
|
+
* BALANCES ARE DERIVED FROM THE ORDER ROWS, never stored separately. Credit is a negative order
|
|
33
|
+
* balance; there is no separate instrument.
|
|
31
34
|
*
|
|
32
35
|
* ## Example
|
|
33
36
|
*
|
|
34
37
|
* ```html
|
|
35
|
-
* <mjo-customer-ar-page (OrderOpened)="open($event)" />
|
|
38
|
+
* <mjo-customer-ar-page (OrderOpened)="open($event)" (AddressChanged)="write($event)" />
|
|
36
39
|
* ```
|
|
37
40
|
*/
|
|
38
|
-
export declare class MJOCustomerARPageComponent implements OnInit {
|
|
41
|
+
export declare class MJOCustomerARPageComponent implements OnInit, OnDestroy {
|
|
39
42
|
private readonly cdr;
|
|
43
|
+
private readonly exporter;
|
|
44
|
+
private readonly host;
|
|
45
|
+
private readonly confirm;
|
|
46
|
+
/** Absent in a host that is not the Explorer shell; the action that needs it is then not offered. */
|
|
47
|
+
private readonly navigation;
|
|
40
48
|
OrderOpened: EventEmitter<mjBizAppsOrdersOrderHeaderEntity>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
readonly
|
|
49
|
-
|
|
49
|
+
/** A subscription or a payment in the customer's detail was chosen; the section opens the record. */
|
|
50
|
+
SubscriptionOpened: EventEmitter<mjBizAppsOrdersSubscriptionEntity>;
|
|
51
|
+
PaymentOpened: EventEmitter<mjBizAppsOrdersPaymentHeaderEntity>;
|
|
52
|
+
/** Asks the section to put the open customer in the tab's address, or take it out (`customer: null`). */
|
|
53
|
+
AddressChanged: EventEmitter<Record<string, string | null>>;
|
|
54
|
+
readonly Columns: ARColumn[];
|
|
55
|
+
/** Placeholder rows shown while the first read is in flight. */
|
|
56
|
+
readonly Skeleton: number[];
|
|
57
|
+
/** A read is in flight. */
|
|
58
|
+
Loading: boolean;
|
|
59
|
+
/** A read has succeeded at least once. Until then there are no figures, only placeholders or an error. */
|
|
60
|
+
Loaded: boolean;
|
|
61
|
+
Notice: {
|
|
62
|
+
Tone: 'success' | 'error' | 'warning';
|
|
63
|
+
Text: string;
|
|
64
|
+
} | null;
|
|
65
|
+
AsOfDisplay: string;
|
|
66
|
+
/** "Updated 4 minutes ago", refreshed on a timer so it does not go stale on a screen left open. */
|
|
67
|
+
UpdatedText: string;
|
|
68
|
+
/** Company filter: what is offered, and what is ticked (company ids, lower case). */
|
|
69
|
+
Companies: ARCompanyOption[];
|
|
70
|
+
CompanyPicks: string[];
|
|
71
|
+
Search: string;
|
|
72
|
+
Preset: ARPreset;
|
|
73
|
+
SortKey: ARSortKey;
|
|
74
|
+
SortDescending: boolean;
|
|
75
|
+
/** Customers the company filter leaves; the ones the search and quick filter then list; and the two totals. */
|
|
76
|
+
AllCount: number;
|
|
77
|
+
Shown: ARCustomer[];
|
|
78
|
+
/** The list's total row: what is listed. */
|
|
79
|
+
Totals: ARTotals;
|
|
80
|
+
/** The tiles: the book under the company filter and the search. A quick filter does not change them. */
|
|
81
|
+
Book: ARTotals;
|
|
82
|
+
/** The open customer's key, or null for the whole book. */
|
|
50
83
|
SelectedKey: string | null;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
84
|
+
/** The row that takes Tab focus: the open customer, the last one focused, or the first listed. */
|
|
85
|
+
FocusKey: string | null;
|
|
86
|
+
/** The customer the detail pane renders. Kept after closing so the pane folds away with its content, not empty. */
|
|
87
|
+
Detail: ARCustomer | null;
|
|
88
|
+
DetailLoading: boolean;
|
|
89
|
+
/** The open customer's payments and subscriptions could not be read, so their absence is not "none". */
|
|
90
|
+
DetailFailed: boolean;
|
|
55
91
|
Payments: mjBizAppsOrdersPaymentHeaderEntity[];
|
|
92
|
+
LastPayment: mjBizAppsOrdersPaymentHeaderEntity | null;
|
|
56
93
|
Subscriptions: mjBizAppsOrdersSubscriptionEntity[];
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
|
|
94
|
+
/** Which of the open customer's items are listed, the choices offered, and the rows that result. */
|
|
95
|
+
ItemFilter: ARItemFilter;
|
|
96
|
+
ItemFilters: ARItemFilterOption[];
|
|
97
|
+
ShownItems: AROpenItem[];
|
|
98
|
+
ShownReceivable: {
|
|
99
|
+
Count: number;
|
|
100
|
+
Amount: number;
|
|
101
|
+
};
|
|
102
|
+
ShownScheduled: {
|
|
103
|
+
Count: number;
|
|
104
|
+
Amount: number;
|
|
105
|
+
};
|
|
106
|
+
/** The column the open items are sorted on; null for their own order (invoiced first, then by due date). */
|
|
107
|
+
ItemSortKey: ARItemSortKey | null;
|
|
108
|
+
ItemSortDescending: boolean;
|
|
109
|
+
readonly ItemColumnsList: ReadonlyArray<{
|
|
110
|
+
Key: ARItemSortKey;
|
|
111
|
+
Label: string;
|
|
112
|
+
Right: boolean;
|
|
113
|
+
}>;
|
|
114
|
+
/** The item whose installment is being issued, so its button shows progress and the others wait. */
|
|
115
|
+
IssuingKey: string | null;
|
|
116
|
+
Exporting: boolean;
|
|
117
|
+
private orders;
|
|
118
|
+
private instalments;
|
|
119
|
+
private customers;
|
|
120
|
+
private today;
|
|
121
|
+
private loadedAt;
|
|
122
|
+
private ticker;
|
|
123
|
+
private destroyed;
|
|
124
|
+
/** Counts reads, so a slower earlier one cannot overwrite a later one. */
|
|
125
|
+
private loadSequence;
|
|
126
|
+
/** The customer the tab's address names, held until the first read lands. */
|
|
127
|
+
private linkedCustomer;
|
|
128
|
+
/** The tab's address as the section last gave it. */
|
|
129
|
+
private address;
|
|
130
|
+
private readonly companyKey;
|
|
131
|
+
/** The company choice as chosen, shared across Receivables. `CompanyPicks` is the part of it this page offers. */
|
|
132
|
+
private companyChoice;
|
|
133
|
+
/** The linked customer we have already said is not in this view, so it is said once. */
|
|
134
|
+
private missingLinkTold;
|
|
135
|
+
/** Company id (lower case) to the service that sends its invoices, for the wording of the issue dialog. */
|
|
136
|
+
private invoiceServices;
|
|
137
|
+
/** Waits for arrow keys to stop before the open customer is written to the address and their history read. */
|
|
138
|
+
private settleTimer;
|
|
139
|
+
get IsDetail(): boolean;
|
|
140
|
+
get PresetLabel(): string;
|
|
141
|
+
ngOnInit(): Promise<void>;
|
|
142
|
+
ngOnDestroy(): void;
|
|
143
|
+
/**
|
|
144
|
+
* The tab's address, from the section: on first show, and on Back, Forward or a link.
|
|
145
|
+
* `customer` names the customer to open; without it the book is shown.
|
|
146
|
+
*/
|
|
147
|
+
ApplyAddress(params: Record<string, string>): void;
|
|
60
148
|
/**
|
|
61
|
-
*
|
|
149
|
+
* Take the company choice every Receivables page shares (`AdoptCompanyChoice`): what the tab's
|
|
150
|
+
* address states, else, where it has never named a company, the saved choice.
|
|
62
151
|
*
|
|
63
|
-
*
|
|
64
|
-
* a time, and loading a hundred payment histories to render one is work with
|
|
65
|
-
* no answer attached to it. Both awaits complete BEFORE either is assigned, so
|
|
66
|
-
* no assignment straddles the boundary that produces NG0100.
|
|
152
|
+
* @returns Whether the choice changed.
|
|
67
153
|
*/
|
|
68
|
-
private
|
|
154
|
+
private adoptCompanyChoice;
|
|
155
|
+
/** Escape closes the open customer. */
|
|
156
|
+
OnEscape(event: Event): void;
|
|
157
|
+
/** Arrows move through the customers; with one open, they open the next. Focus follows. */
|
|
158
|
+
OnArrow(event: Event, step: 1 | -1): void;
|
|
159
|
+
/** Open a customer, or close them when they are the one already open. */
|
|
160
|
+
Toggle(key: string): void;
|
|
161
|
+
/** Open a customer on the invoices behind one figure in their row. */
|
|
162
|
+
OpenFiltered(key: string, filter: ARItemFilter, event: Event): void;
|
|
69
163
|
/**
|
|
70
|
-
*
|
|
164
|
+
* Open a customer.
|
|
71
165
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
166
|
+
* @param filter - Which of their items to list first.
|
|
167
|
+
* @param record - Whether to ask for the customer to be written into the tab's address. False when the address is what told us.
|
|
168
|
+
* @param settleMs - How long to wait before the address is written and the history read; another open in that time replaces this one.
|
|
75
169
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
|
|
170
|
+
Open(key: string, filter?: ARItemFilter, record?: boolean, settleMs?: number): Promise<void>;
|
|
171
|
+
Close(record?: boolean): void;
|
|
172
|
+
OnItemFilter(filter: ARItemFilter): void;
|
|
173
|
+
/** Sort the open items on a column; the same column again reverses it, and a third click returns to their own order. */
|
|
174
|
+
OnItemSort(key: ARItemSortKey): void;
|
|
175
|
+
/** The customer's own record (the organization, or the person), in a new tab. */
|
|
176
|
+
OpenCustomerRecord(customer: ARCustomer): void;
|
|
177
|
+
OpenOrder(item: AROpenItem): void;
|
|
178
|
+
OpenCredit(orderID: string): void;
|
|
179
|
+
/** A new payment for this customer, in its own tab. The payment form lists their open orders to allocate against. */
|
|
180
|
+
RecordPayment(customer: ARCustomer): void;
|
|
83
181
|
/**
|
|
84
|
-
*
|
|
182
|
+
* Issue a scheduled installment as an invoice.
|
|
85
183
|
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* attention: the customer still holds the seat and is not currently being served by it.
|
|
184
|
+
* THE IRREVERSIBLE STEP, so it asks first and says what it does: issuing posts the amount to A/R
|
|
185
|
+
* and, for a company that invoices through an external service, sends the invoice through it.
|
|
186
|
+
* The server re-checks that the installment can be issued.
|
|
90
187
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
188
|
+
Issue(item: AROpenItem, customer: ARCustomer): Promise<void>;
|
|
189
|
+
/** Read the figures again, keeping the open customer and every filter. */
|
|
190
|
+
Refresh(): Promise<void>;
|
|
191
|
+
OnCompanies(ids: string[]): void;
|
|
192
|
+
OnSearch(text: string): void;
|
|
193
|
+
/** A tile turns its quick filter on; the same tile again, or "All", turns it off. */
|
|
194
|
+
OnPreset(key: ARPreset): void;
|
|
195
|
+
OnSort(key: ARSortKey): void;
|
|
196
|
+
/** The customers listed, as an aging summary or as one row per invoice and installment. */
|
|
197
|
+
Export(kind: 'summary' | 'items', format: 'excel' | 'csv'): Promise<void>;
|
|
198
|
+
protected get pastDueDetail(): string;
|
|
199
|
+
protected get scheduledDetail(): string;
|
|
200
|
+
protected money(value: number | null | undefined): string;
|
|
201
|
+
/** Money in a table cell: a dash for nothing, so a column of zeros does not read as data. */
|
|
202
|
+
protected amount(value: number): string;
|
|
203
|
+
/**
|
|
204
|
+
* A `date` cell (due date, invoice day, payment date) as `MM/DD/YYYY`, which is how every date on
|
|
205
|
+
* this page is written. Passed as it is: `String()` of a `Date` reads as no date.
|
|
206
|
+
*/
|
|
207
|
+
protected dateOf(value: DateCell): string;
|
|
96
208
|
protected initials(name: string): string;
|
|
97
|
-
protected
|
|
98
|
-
|
|
99
|
-
|
|
209
|
+
protected plural(count: number, noun: string): string;
|
|
210
|
+
protected percent(part: number, whole: number): string;
|
|
211
|
+
protected netOwed(customer: ARCustomer): number;
|
|
212
|
+
/** The name links to the customer's record when there is a shell to open it in and a real customer behind the row. */
|
|
213
|
+
protected canOpenCustomer(customer: ARCustomer): boolean;
|
|
214
|
+
/** Recording a payment opens the payment form in a new tab, which needs the Explorer shell and a real customer. */
|
|
215
|
+
protected canRecordPayment(customer: ARCustomer): boolean;
|
|
216
|
+
protected rowLabel(customer: ARCustomer): string;
|
|
217
|
+
/** The line under a customer's name: what is past due if anything is, then what is waiting to be invoiced, otherwise how much is open. */
|
|
218
|
+
protected subLine(customer: ARCustomer): string;
|
|
219
|
+
protected canIssue(item: AROpenItem): boolean;
|
|
220
|
+
protected itemStatus(item: AROpenItem): string;
|
|
221
|
+
protected itemChip(item: AROpenItem): string;
|
|
100
222
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
|
|
104
|
-
|
|
223
|
+
* The chip for a subscription's state. Paused is the one that wants attention: the customer still
|
|
224
|
+
* holds the seat and is not currently being served by it.
|
|
225
|
+
*/
|
|
226
|
+
protected subClass(sub: mjBizAppsOrdersSubscriptionEntity): string;
|
|
227
|
+
/**
|
|
228
|
+
* Read the book. On failure what is on screen STAYS: figures a minute old are more use than an
|
|
229
|
+
* empty page, and an empty page under "Nothing is owed" would be a lie. Both reads throw on
|
|
230
|
+
* failure for exactly that reason.
|
|
105
231
|
*/
|
|
106
232
|
private load;
|
|
233
|
+
/** The open customer's payments and subscriptions. Dropped if another customer is opened meanwhile. */
|
|
234
|
+
private loadDetail;
|
|
235
|
+
/** Re-derive the customers from the orders the company filter leaves. */
|
|
236
|
+
private rebuild;
|
|
237
|
+
/** The open customer's items under the current filter. A filter that no longer matches anything falls back to all. */
|
|
238
|
+
private applyItems;
|
|
239
|
+
/** Apply the search, the quick filter and the sort, and total both what is in scope and what is listed. */
|
|
240
|
+
private applyView;
|
|
241
|
+
/** Open or close to match the address the section last gave us. */
|
|
242
|
+
private followAddress;
|
|
243
|
+
private saveView;
|
|
244
|
+
private tick;
|
|
245
|
+
private rowOf;
|
|
246
|
+
private focusRow;
|
|
247
|
+
/** Keep the open customer's row in view once the list has folded to its rail. */
|
|
248
|
+
private revealSelected;
|
|
107
249
|
static ɵfac: i0.ɵɵFactoryDeclaration<MJOCustomerARPageComponent, never>;
|
|
108
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MJOCustomerARPageComponent, "mjo-customer-ar-page", never, {}, { "OrderOpened": "OrderOpened"; }, never, never, true, never>;
|
|
250
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJOCustomerARPageComponent, "mjo-customer-ar-page", never, {}, { "OrderOpened": "OrderOpened"; "SubscriptionOpened": "SubscriptionOpened"; "PaymentOpened": "PaymentOpened"; "AddressChanged": "AddressChanged"; }, never, never, true, never>;
|
|
109
251
|
}
|
|
110
252
|
export {};
|
|
111
253
|
//# sourceMappingURL=customer-ar.page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-ar.page.d.ts","sourceRoot":"","sources":["../../../../src/lib/pages/receivables/customer-ar.page.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"customer-ar.page.d.ts","sourceRoot":"","sources":["../../../../src/lib/pages/receivables/customer-ar.page.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,YAAY,EAAE,SAAS,EAAE,MAAM,EAAkB,MAAM,eAAe,CAAC;AAM1H,OAAO,EAGH,KAAK,QAAQ,EACb,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,iCAAiC,EACzC,MAAM,8BAA8B,CAAC;AAiBtC,OAAO,EAsBH,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,QAAQ,EAChB,MAAM,0BAA0B,CAAC;;AAElC,uFAAuF;AACvF,UAAU,QAAQ;IACd,GAAG,EAAE,SAAS,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACjB;AAgBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBA89Ba,0BAA2B,YAAW,MAAM,EAAE,SAAS;IAChE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IACjD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA+C;IACpE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA4B;IACpD,qGAAqG;IACrG,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiD;IAElE,WAAW,iDAAwD;IAC7E,qGAAqG;IAC3F,kBAAkB,kDAAyD;IAC3E,aAAa,mDAA0D;IACjF,yGAAyG;IAC/F,cAAc,8CAAqD;IAE7E,SAAgB,OAAO,EAAE,QAAQ,EAAE,CAWjC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