Implement organization maker-checker workflows

This commit is contained in:
2026-09-24 17:22:50 +05:30
parent 08a427467a
commit 7b9a6394c8
30 changed files with 787 additions and 90 deletions
@@ -297,8 +297,14 @@ export class GlSettingsDialogComponent implements OnInit {
ddLimitAmount: val.ddLimitAmount
})
.subscribe({
next: () => {
this.snackBar.open('Sponsor DD GL Mapping & GST Settings saved successfully!', 'Close', { duration: 3000 });
next: (res: any) => {
// A save submitted for approval comes back HTTP 200 with rollbackTransaction: true - the
// mapping has not actually been applied yet, so this must not claim success the same way an
// immediate save does.
const message = res?.rollbackTransaction
? 'Sponsor DD GL Mapping & GST Settings submitted for approval'
: 'Sponsor DD GL Mapping & GST Settings saved successfully!';
this.snackBar.open(message, 'Close', { duration: res?.rollbackTransaction ? 4000 : 3000 });
this.dialogRef.close(true);
},
error: (err) => {