|
ORE Studio 0.0.4
|
Manages commands related to CURRENCIES. More...
#include <currencies_commands.hpp>

Static Public Member Functions | |
| static void | register_commands (cli::Menu &root_menu, comms::net::client_session &session) |
| Register currency-related commands. | |
| static void | process_get_currencies (std::ostream &out, comms::net::client_session &session) |
| Process a get currencies request. | |
| static void | process_add_currency (std::ostream &out, comms::net::client_session &session, std::string iso_code, std::string name, std::string numeric_code, std::string symbol, std::string fractions_per_unit) |
| Process an add currency request. | |
Manages commands related to CURRENCIES.
|
static |
Register currency-related commands.
Creates the currencies submenu and adds currency operations.
|
static |
Process a get currencies request.
Retrieves all currencies from the server and displays them.
| out | Output stream for results |
| session | Client session for connectivity. |

|
static |
Process an add currency request.
Creates a new currency with the provided details. The modified_by field is automatically set from the logged-in user's session.
| out | Output stream for results |
| session | Client session for connectivity. |
| iso_code | ISO 4217 alphabetic code (e.g., "USD") |
| name | Full name of the currency |
| numeric_code | ISO 4217 numeric code (optional) |
| symbol | Currency symbol (optional) |
| fractions_per_unit | Number of fractional units (default: 100) |
