fix: update sponsor DD approvals, cashier transaction entry, FIU and dividend declaration

This commit is contained in:
2026-09-21 10:24:08 +05:30
parent 3c363d0372
commit a6e6220100
14 changed files with 1745 additions and 234 deletions
+12 -4
View File
@@ -125,18 +125,22 @@ export class SponsorDDService {
return this.http.get<any[]>('/sponsordd/cashier-deposit-requests/available');
}
// ── Multi-DD slip (one account debit/cheque funds several drafts) ──
// ── Multi-DD slip (one account debit / cheque / GL debit funds several drafts) ──
// CASH is the one funding method a slip cannot use: a single counted pile of notes cannot be
// apportioned across drafts without the denomination total ceasing to prove what was taken.
submitIssueRequestBatch(
inventoryId: number,
data: {
clientId?: number;
issuingBranchId: number;
issuedDate: string; // yyyy-MM-dd
paymentMethod: 'ACCOUNT_DEBIT' | 'CHEQUE';
paymentMethod: 'ACCOUNT_DEBIT' | 'CHEQUE' | 'GL';
savingsAccountId?: number;
currentAccountId?: number;
chequeNumber?: string;
chequeBankName?: string;
/** The GL account a GL-funded slip is debited from; omitted for every other method. */
glAccountId?: number;
lines: {
beneficiaryName: string;
payableAtBranch: string;
@@ -149,8 +153,12 @@ export class SponsorDDService {
return this.http.post<any>(`/sponsordd/inventory/${inventoryId}/issue-request-batch`, data);
}
approveIssueRequestBatch(batchId: number): Observable<any> {
return this.http.post<any>(`/sponsordd/issue-requests/batch/${batchId}/approve`, {});
/**
* Approves a slip. Omitting approvedRequestIds issues every draft on it; supplying them issues
* only those, debits only for them, and rejects the rest — whose DD numbers return to stock.
*/
approveIssueRequestBatch(batchId: number, approvedRequestIds?: number[]): Observable<any> {
return this.http.post<any>(`/sponsordd/issue-requests/batch/${batchId}/approve`, { approvedRequestIds });
}
rejectIssueRequestBatch(batchId: number, rejectionReason: string): Observable<any> {