Update: 2026-05-12 01:29:57
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user