mg-ocr-invoice 0.2.9 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mg-ocr-invoice",
3
3
  "private": false,
4
- "version": "0.2.9",
4
+ "version": "0.3.0",
5
5
  "type": "module",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "module": "dist/index.es.js",
@@ -411,7 +411,7 @@ const computed_amount = computed(() => {
411
411
  formData.value.itemAmountReqs.forEach((item) => {
412
412
  let tax_amount = new Decimal(filterNumber(item.itemExTaxAmount)).times(
413
413
  new Decimal(filterNumber(item.itemTaxRate / 100))
414
- )
414
+ ).toFixed(2)
415
415
  count = count.plus(
416
416
  new Decimal(filterNumber(item.itemExTaxAmount)).plus(tax_amount)
417
417
  )