Skip to content

Commit

Permalink
feat(details): round line item amount by 2 decimal points
Browse files Browse the repository at this point in the history
  • Loading branch information
p-kuen committed Jun 2, 2024
1 parent 193dd68 commit 00f4097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl<'a> DetailsItem<'a> {
None => Decimal::ZERO,
};

self.quantity * self.unit_price / base_quantity + reduction_and_surcharge_sum
(self.quantity * self.unit_price / base_quantity + reduction_and_surcharge_sum).round_dp(2)
/* + sum of other_vat_able_tax_list_line_item.tax_amount */
}

Expand Down

0 comments on commit 00f4097

Please sign in to comment.