pub struct DetResult {Show 17 fields
pub xml: String,
pub icms_totals: IcmsTotals,
pub v_ipi: i64,
pub v_pis: i64,
pub v_cofins: i64,
pub v_ii: i64,
pub v_frete: i64,
pub v_seg: i64,
pub v_desc: i64,
pub v_outro: i64,
pub ind_tot: u8,
pub v_tot_trib: i64,
pub v_ipi_devol: i64,
pub v_pis_st: i64,
pub v_cofins_st: i64,
pub ind_deduz_deson: bool,
pub has_issqn: bool,
}Expand description
Result from building a single <det> element.
Fields§
§xml: StringThe serialised <det> XML string.
icms_totals: IcmsTotalsAccumulated ICMS totals contributed by this item.
v_ipi: i64IPI value in cents contributed by this item.
v_pis: i64PIS value in cents contributed by this item.
v_cofins: i64COFINS value in cents contributed by this item.
v_ii: i64II (import tax) value in cents contributed by this item.
v_frete: i64Freight value in cents for this item.
v_seg: i64Insurance value in cents for this item.
v_desc: i64Discount value in cents for this item.
v_outro: i64Other expenses value in cents for this item.
ind_tot: u8Whether this item counts towards the invoice total (indTot).
v_tot_trib: i64Approximate total tax for this item (vTotTrib). Optional.
v_ipi_devol: i64IPI devolution value in cents contributed by this item.
v_pis_st: i64PIS-ST value in cents contributed by this item (only when indSomaPISST = 1).
v_cofins_st: i64COFINS-ST value in cents contributed by this item (only when indSomaCOFINSST = 1).
ind_deduz_deson: boolWhether this item has indDeduzDeson = 1 (desoneration deduction applies).
has_issqn: boolWhether this item uses ISSQN instead of ICMS.