Browse Source

精算データ取得時に取得した金額で消費税を計算してしまっているのを修正

SATE_RECEIPT-42 精算履歴取得時の消費税
develop
sosuke.iwabuchi 2 years ago
parent
commit
804662186f
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/pages/dashboard/receipt-issuing-order/custom/hello-techno/hooks/useInputReceiptStep.tsx

+ 1
- 0
src/pages/dashboard/receipt-issuing-order/custom/hello-techno/hooks/useInputReceiptStep.tsx View File

@@ -92,6 +92,7 @@ export default function useInputReceiptStep({ onNext, onPrev }: Props) {
};

const setTax = () => {
if (adjustData !== null) return;
const tax = String(calcInnerTax(Number(amount)));
if (tax) {
form.setValue("tax_amount", tax);


Loading…
Cancel
Save