Merge origin/main (CI quality gates) into the 1.1.0 release
# Conflicts: # package-lock.json # src/views/NewInvoice.tsx
This commit is contained in:
@@ -48,8 +48,7 @@ import type {
|
||||
Settings,
|
||||
TaxType,
|
||||
} from "../lib/types";
|
||||
import { computeLineAmount, computeTotals } from "../lib/invoice";
|
||||
import { amountInWords } from "../lib/numberToWords";
|
||||
import { computeLineAmount } from "../lib/invoice";
|
||||
import { gstinFullError } from "../lib/validators";
|
||||
import { addDays, formatAmount, todayIso } from "../lib/format";
|
||||
import { modelFromAssets, prefsForInvoice } from "../lib/pdf";
|
||||
@@ -265,11 +264,6 @@ export default function NewInvoice({ settings, onSettingsChange, active, onActiv
|
||||
if (ok) badQuantities.current.delete(id);
|
||||
else badQuantities.current.add(id);
|
||||
};
|
||||
const totals = useMemo(
|
||||
() => computeTotals(items, discount, effectiveTaxType, taxRate),
|
||||
[items, discount, effectiveTaxType, taxRate],
|
||||
);
|
||||
const words = useMemo(() => amountInWords(totals.total), [totals.total]);
|
||||
const bank = useMemo(() => banks.find((b) => b.id === bankId) ?? null, [banks, bankId]);
|
||||
|
||||
const payload = useMemo(
|
||||
|
||||
Reference in New Issue
Block a user