insert Revenue

suspend fun insertRevenue(addingGeneralRevenue: Boolean, revenue: Revenue? = null, title: String, description: String, value: Double, revenueDate: LocalDateTime, labels: List<RevenueLabel> = emptyList()): JsonObject

Method to request the revenue insertion, this includes both the add or editing actions

Return

the result of the request as JsonObject

Parameters

addingGeneralRevenue

Whether the revenue to insert is a com.tecknobit.neutron.ui.screens.revenues.data.GeneralRevenue one

revenue

The revenue to edit

title

The title of the general revenue

description

The description of the general revenue

value

The amount revenue value

revenueDate

The date when the revenue has been created

labels

The labels to attach to the general revenue