Update: 2026-05-12 01:29:57

This commit is contained in:
Hamza-Ayed
2026-05-12 01:29:57 +03:00
parent d6cedd23c1
commit ae5eba09aa
4 changed files with 23 additions and 48 deletions

View File

@@ -17,8 +17,14 @@ class InvoiceDetailController extends GetxController {
@override
void onInit() {
super.onInit();
if (Get.arguments != null) {
invoiceId = Get.arguments['id'];
final args = Get.arguments;
if (args != null) {
if (args is Map) {
invoiceId = args['id']?.toString();
} else if (args is String) {
invoiceId = args;
}
if (invoiceId != null) {
fetchInvoiceDetails();
}