CostSpec#
- class CostSpec[source]#
Unit cost or total cost.
- property number_per: Optional[decimal.Decimal]#
- property number_total: Optional[decimal.Decimal]#
- property raw_compound_amount_comp: Optional[CompoundAmount]#
- property raw_cost_components: MutableSequence[CostComponent]#
- property raw_label: Optional[EscapedString]#
- property raw_label_comp: Optional[EscapedString]#
- property raw_number_comp: Optional[NumberExpr]#
- property raw_number_per: Optional[NumberExpr]#
- property raw_number_total: Optional[NumberExpr]#
- property raw_spacing_after: Sequence[RawTokenModel]#
- property raw_spacing_before: Sequence[RawTokenModel]#
- classmethod from_value(number_per: Optional[decimal.Decimal], number_total: Optional[decimal.Decimal], currency: Optional[str], date: Optional[datetime.date] = None, label: Optional[str] = None, merge: bool = False) Self[source]#