pub struct SqliteReceivingRepository { /* private fields */ }Available on crate feature
sqlite only.Expand description
SQLite receiving repository
Implementations§
Source§impl SqliteReceivingRepository
impl SqliteReceivingRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl Debug for SqliteReceivingRepository
impl Debug for SqliteReceivingRepository
Source§impl ReceivingRepository for SqliteReceivingRepository
impl ReceivingRepository for SqliteReceivingRepository
Source§fn create_receipt(&self, input: CreateReceipt) -> Result<Receipt>
fn create_receipt(&self, input: CreateReceipt) -> Result<Receipt>
Create a new receipt
Source§fn get_receipt_by_number(&self, number: &str) -> Result<Option<Receipt>>
fn get_receipt_by_number(&self, number: &str) -> Result<Option<Receipt>>
Get receipt by receipt number
Source§fn update_receipt(&self, id: Uuid, input: UpdateReceipt) -> Result<Receipt>
fn update_receipt(&self, id: Uuid, input: UpdateReceipt) -> Result<Receipt>
Update a receipt
Source§fn list_receipts(&self, filter: ReceiptFilter) -> Result<Vec<Receipt>>
fn list_receipts(&self, filter: ReceiptFilter) -> Result<Vec<Receipt>>
List receipts with filter
Source§fn start_receiving(&self, id: Uuid) -> Result<Receipt>
fn start_receiving(&self, id: Uuid) -> Result<Receipt>
Start receiving (transition to
in_progress)Source§fn receive_items(&self, input: ReceiveItems) -> Result<Receipt>
fn receive_items(&self, input: ReceiveItems) -> Result<Receipt>
Receive items on a receipt
Source§fn complete_receiving(&self, id: Uuid) -> Result<Receipt>
fn complete_receiving(&self, id: Uuid) -> Result<Receipt>
Complete receiving (all items received)
Source§fn get_receipt_items(&self, receipt_id: Uuid) -> Result<Vec<ReceiptItem>>
fn get_receipt_items(&self, receipt_id: Uuid) -> Result<Vec<ReceiptItem>>
Get receipt items
Source§fn count_receipts(&self, filter: ReceiptFilter) -> Result<u64>
fn count_receipts(&self, filter: ReceiptFilter) -> Result<u64>
Count receipts
Source§fn create_put_away(&self, input: CreatePutAway) -> Result<PutAway>
fn create_put_away(&self, input: CreatePutAway) -> Result<PutAway>
Create a put-away task
Source§fn list_put_aways(&self, filter: PutAwayFilter) -> Result<Vec<PutAway>>
fn list_put_aways(&self, filter: PutAwayFilter) -> Result<Vec<PutAway>>
List put-aways with filter
Source§fn assign_put_away(&self, id: Uuid, assigned_to: &str) -> Result<PutAway>
fn assign_put_away(&self, id: Uuid, assigned_to: &str) -> Result<PutAway>
Assign put-away to user
Source§fn complete_put_away(&self, input: CompletePutAway) -> Result<PutAway>
fn complete_put_away(&self, input: CompletePutAway) -> Result<PutAway>
Complete put-away
Source§fn get_pending_put_aways(&self, receipt_id: Uuid) -> Result<Vec<PutAway>>
fn get_pending_put_aways(&self, receipt_id: Uuid) -> Result<Vec<PutAway>>
Get pending put-aways for receipt
Source§fn count_put_aways(&self, filter: PutAwayFilter) -> Result<u64>
fn count_put_aways(&self, filter: PutAwayFilter) -> Result<u64>
Count put-aways
Source§fn create_receipt_from_po(
&self,
po_id: Uuid,
warehouse_id: i32,
) -> Result<Receipt>
fn create_receipt_from_po( &self, po_id: Uuid, warehouse_id: i32, ) -> Result<Receipt>
Create receipt from purchase order
Source§fn create_receipts_batch(
&self,
inputs: Vec<CreateReceipt>,
) -> Result<BatchResult<Receipt>>
fn create_receipts_batch( &self, inputs: Vec<CreateReceipt>, ) -> Result<BatchResult<Receipt>>
Create multiple receipts
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteReceivingRepository
impl !UnwindSafe for SqliteReceivingRepository
impl Freeze for SqliteReceivingRepository
impl Send for SqliteReceivingRepository
impl Sync for SqliteReceivingRepository
impl Unpin for SqliteReceivingRepository
impl UnsafeUnpin for SqliteReceivingRepository
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