Fix: handle NOTSET payment mode during invoice deserialization

Changes:

- Added support for PaymentMode::NOTSET in string-to-enum conversion
  to prevent invoice deserialization failures during system startup
- Improved invoice table column labels and spacing for better readability
  and alignment in invoice display screens

Fixes #1789
This commit is contained in:
2026-05-27 18:47:49 +05:30
parent 807490443e
commit f78e02ed3d
2 changed files with 12 additions and 8 deletions
@@ -137,6 +137,10 @@ namespace util
{
return PaymentMode::OFFLINE;
}
if (value == "NOTSET")
{
return PaymentMode::NOTSET;
}
throw std::invalid_argument("Invalid PaymentMode string");
}