feat: updates for cashier, tds reports, rbi reserve and dashboard
This commit is contained in:
@@ -27,6 +27,17 @@ export function solidFill(argb: string): ExcelJS.Fill {
|
||||
return { type: 'pattern', pattern: 'solid', fgColor: { argb } };
|
||||
}
|
||||
|
||||
/**
|
||||
* The diagonal hatching RBI's templates put on a cell that is waiting to be filled in by hand.
|
||||
*
|
||||
* It reads differently from an empty cell, and the difference matters on a statutory form: an empty
|
||||
* cell says nothing was reported, hatching says someone still has to report it. The templates use
|
||||
* it on the signatory block and on the particulars a bank writes in itself.
|
||||
*/
|
||||
export function hatchFill(): ExcelJS.Fill {
|
||||
return { type: 'pattern', pattern: 'lightUp', fgColor: { argb: 'FF808080' }, bgColor: { argb: 'FFFFFFFF' } };
|
||||
}
|
||||
|
||||
/** Dark-blue full-width banner that heads every sheet in the RBI templates. */
|
||||
export function addBanner(sheet: ExcelJS.Worksheet, title: string, lastCol: string): void {
|
||||
const row = sheet.addRow([title]);
|
||||
|
||||
Reference in New Issue
Block a user