create invoice

This commit is contained in:
hamid zarghami
2026-02-21 12:32:46 +03:30
parent 8a0a62b6d7
commit 369ad837ee
5 changed files with 90 additions and 52 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import axios from "@/config/axios";
import type { CreatePreInvoiceType } from "../types/Types";
export const createPreInvoice = async (params: CreatePreInvoiceType) => {
const { data } = await axios.post("/admin/pre-invoice", params);
export const createInvoice = async (params: CreatePreInvoiceType) => {
const { data } = await axios.post("/admin/invoice", params);
return data;
};