pub struct create_journal_entry;Expand description
Create a manual journal entry (double-entry bookkeeping)
Access: Accountant, SuperAdmin
Noalyss-Inspired Features:
- Journal types: ACH (Purchases), VEN (Sales), FIN (Financial), ODS (Miscellaneous)
- Double-entry validation (debits = credits)
- Multi-line entries with account codes
Example:
POST /api/v1/journal-entries
{
"building_id": "uuid",
"journal_type": "ACH",
"entry_date": "2025-01-01T00:00:00Z",
"description": "Achat fournitures",
"reference": "FA-2025-001",
"lines": [
{"account_code": "604", "debit": 100.0, "credit": 0.0, "description": "Fournitures"},
{"account_code": "440", "debit": 0.0, "credit": 100.0, "description": "Fournisseur X"}
]
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for create_journal_entry
impl RefUnwindSafe for create_journal_entry
impl Send for create_journal_entry
impl Sync for create_journal_entry
impl Unpin for create_journal_entry
impl UnwindSafe for create_journal_entry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.