pub struct PurchaseOrderItem {Show 15 fields
pub base: DocumentLineItem,
pub item_category: String,
pub purchasing_group: Option<String>,
pub gr_indicator: bool,
pub ir_indicator: bool,
pub gr_based_iv: bool,
pub quantity_received: Decimal,
pub quantity_invoiced: Decimal,
pub quantity_returned: Decimal,
pub is_fully_received: bool,
pub is_fully_invoiced: bool,
pub requested_date: Option<NaiveDate>,
pub confirmed_date: Option<NaiveDate>,
pub incoterms: Option<String>,
pub account_assignment_category: String,
}Expand description
Purchase Order line item with P2P specific fields.
Fields§
§base: DocumentLineItemBase line item fields
item_category: StringItem category (goods, service, etc.)
purchasing_group: Option<String>Purchasing group
gr_indicator: boolGoods receipt indicator
ir_indicator: boolInvoice receipt indicator
gr_based_iv: boolGR-based invoice verification
quantity_received: DecimalQuantity received so far
quantity_invoiced: DecimalQuantity invoiced so far
quantity_returned: DecimalQuantity returned
is_fully_received: boolIs this line fully received?
is_fully_invoiced: boolIs this line fully invoiced?
requested_date: Option<NaiveDate>Requested delivery date
confirmed_date: Option<NaiveDate>Confirmed delivery date
incoterms: Option<String>Incoterms
account_assignment_category: StringAccount assignment category (cost center, asset, etc.)
Implementations§
Source§impl PurchaseOrderItem
impl PurchaseOrderItem
Sourcepub fn new(
line_number: u16,
description: impl Into<String>,
quantity: Decimal,
unit_price: Decimal,
) -> Self
pub fn new( line_number: u16, description: impl Into<String>, quantity: Decimal, unit_price: Decimal, ) -> Self
Create a new purchase order item.
Sourcepub fn service(
line_number: u16,
description: impl Into<String>,
quantity: Decimal,
unit_price: Decimal,
) -> Self
pub fn service( line_number: u16, description: impl Into<String>, quantity: Decimal, unit_price: Decimal, ) -> Self
Create a service line item.
Sourcepub fn with_material(self, material_id: impl Into<String>) -> Self
pub fn with_material(self, material_id: impl Into<String>) -> Self
Set material.
Sourcepub fn with_cost_center(self, cost_center: impl Into<String>) -> Self
pub fn with_cost_center(self, cost_center: impl Into<String>) -> Self
Set cost center.
Sourcepub fn with_gl_account(self, account: impl Into<String>) -> Self
pub fn with_gl_account(self, account: impl Into<String>) -> Self
Set GL account.
Sourcepub fn with_requested_date(self, date: NaiveDate) -> Self
pub fn with_requested_date(self, date: NaiveDate) -> Self
Set requested delivery date.
Sourcepub fn with_purchasing_group(self, group: impl Into<String>) -> Self
pub fn with_purchasing_group(self, group: impl Into<String>) -> Self
Set purchasing group.
Sourcepub fn record_goods_receipt(&mut self, quantity: Decimal)
pub fn record_goods_receipt(&mut self, quantity: Decimal)
Record goods receipt.
Sourcepub fn record_invoice(&mut self, quantity: Decimal)
pub fn record_invoice(&mut self, quantity: Decimal)
Record invoice receipt.
Sourcepub fn open_quantity_gr(&self) -> Decimal
pub fn open_quantity_gr(&self) -> Decimal
Get open quantity for receipt.
Sourcepub fn open_quantity_iv(&self) -> Decimal
pub fn open_quantity_iv(&self) -> Decimal
Get open quantity for invoice.
Sourcepub fn open_amount_iv(&self) -> Decimal
pub fn open_amount_iv(&self) -> Decimal
Get open amount for invoice.
Trait Implementations§
Source§impl Clone for PurchaseOrderItem
impl Clone for PurchaseOrderItem
Source§fn clone(&self) -> PurchaseOrderItem
fn clone(&self) -> PurchaseOrderItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PurchaseOrderItem
impl Debug for PurchaseOrderItem
Source§impl<'de> Deserialize<'de> for PurchaseOrderItem
impl<'de> Deserialize<'de> for PurchaseOrderItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PurchaseOrderItem
impl RefUnwindSafe for PurchaseOrderItem
impl Send for PurchaseOrderItem
impl Sync for PurchaseOrderItem
impl Unpin for PurchaseOrderItem
impl UnwindSafe for PurchaseOrderItem
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