feat: implement purchase receipt items management with create, update, find, and delete functionalities

feat: add purchase receipts management with create, update, find, and delete functionalities

feat: implement sales invoice items management with create, update, find, and delete functionalities

feat: add sales invoices management with create, update, find, and delete functionalities

feat: implement stock adjustments management with create, update, find, and delete functionalities

feat: add stock balance retrieval functionality

feat: implement stock movements management with create, update, find, and delete functionalities
This commit is contained in:
2025-12-09 13:59:07 +03:30
parent a782d61890
commit 807f6c2087
98 changed files with 26109 additions and 501 deletions
@@ -0,0 +1,13 @@
/*
Warnings:
- The primary key for the `stock_balance` table will be changed. If it partially fails, the table could be left without primary key constraint.
- You are about to drop the column `itemId` on the `stock_balance` table. All the data in the column will be lost.
- Added the required column `ProductId` to the `stock_balance` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `stock_balance` DROP PRIMARY KEY,
DROP COLUMN `itemId`,
ADD COLUMN `ProductId` INTEGER NOT NULL,
ADD PRIMARY KEY (`ProductId`);