Fixes #21

Merged
DeepnaPooja merged 61 commits from fixes into dev 2026-09-10 16:00:04 +05:30
4 changed files with 4148 additions and 0 deletions
Showing only changes of commit 9bb4c52efb - Show all commits
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,53 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Distribution.Migrations
{
/// <inheritdoc />
public partial class AddRetailPriceAndAgencyMargin : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "AgencyMarginPercent",
table: "PriceListItems",
type: "decimal(65,30)",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "RetailPrice",
table: "PriceListItems",
type: "decimal(65,30)",
nullable: true);
migrationBuilder.UpdateData(
table: "PriceListItems",
keyColumn: "Id",
keyValue: new Guid("40000000-0000-0000-0000-000000000001"),
columns: new[] { "AgencyMarginPercent", "RetailPrice" },
values: new object[] { null, null });
migrationBuilder.UpdateData(
table: "PriceListItems",
keyColumn: "Id",
keyValue: new Guid("40000000-0000-0000-0000-000000000002"),
columns: new[] { "AgencyMarginPercent", "RetailPrice" },
values: new object[] { null, null });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "AgencyMarginPercent",
table: "PriceListItems");
migrationBuilder.DropColumn(
name: "RetailPrice",
table: "PriceListItems");
}
}
}
@@ -1023,6 +1023,9 @@ namespace Distribution.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<decimal?>("AgencyMarginPercent")
.HasColumnType("decimal(65,30)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
@@ -1041,6 +1044,9 @@ namespace Distribution.Migrations
b.Property<decimal>("Price")
.HasColumnType("decimal(65,30)");
b.Property<decimal?>("RetailPrice")
.HasColumnType("decimal(65,30)");
b.HasKey("Id");
b.HasIndex("FK_ItemId");
+32
View File
@@ -0,0 +1,32 @@
Module,Feature,Description
Auth,Authentication,"Handles user login, JWT token issuance, refresh tokens, and session management."
User,User Management,"Create, update, and manage system users, their roles, and account status."
Role,Role Management,"Define roles and manage permission assignments for access control."
Brand,Brand Management,"Maintain product brands used to categorize items."
Category,Category Management,"Maintain product categories for organizing items."
Uom,Unit of Measure (UOM),"Manage units of measure (e.g., box, piece, kg) used for items and conversions."
Item,Item Management,"Manage product/item master data including pricing, stock units, and attributes."
PriceList,Price List Management,"Create and manage price lists with item-wise pricing for customers/regions, including view and update flows."
Scheme,Scheme Management,"Manage promotional schemes/discounts applicable to items or orders."
Stock,Stock Management,"Track and manage inventory stock levels across warehouses."
Warehouse,Warehouse Management,"Manage warehouse master data and locations for stock storage."
Store,Store Management,"Manage store/outlet master data for customers or sales points."
Supplier,Supplier Management,"Manage supplier master data used for purchase orders and GRNs."
SupplierClaims,Supplier Claims Management,"Manage claims raised against suppliers, including claim creation, viewing, and settlement."
Claims,Claims Management,"General claims management module for tracking and settling claims."
PurchaseOrder,Purchase Order Management,"Create and manage purchase orders placed with suppliers."
PurchaseReturn,Purchase Return Management,"Manage returns of purchased goods back to suppliers."
Grn,Goods Receipt Note (GRN),"Record and manage receipt of goods from suppliers against purchase orders."
Order,Order Management,"Manage customer sales orders from creation through fulfillment."
Sale,Sales Management,"Manage sales transactions and related sales records."
Returns,Sales Returns Management,"Manage return of goods from customers after sale/delivery."
Payment,Payment Management,"Record and track payments received/made against orders, sales, or claims."
Region,Region Management,"Manage geographic regions used for organizing routes, stores, and sales areas."
Route,Route Management,"Manage delivery/sales routes used for planning rides and deliveries."
Ride,Ride Management,"Manage delivery rides/trips assigned to drivers and vehicles."
DeliveryRide,Delivery Ride Tracking,"Track delivery ride execution, status, and progress."
LoadingEvent,Loading Event Tracking,"Track vehicle loading events for goods dispatched on rides."
Vehicle,Vehicle Management,"Manage vehicle master data used for deliveries."
DriverProfile,Driver Profile Management,"Manage driver master data and profile details."
DriverComplianceConfig,Driver Compliance Configuration,"Configure compliance rules and requirements for drivers."
Sync,Data Synchronization,"Handle data sync operations, likely for offline/mobile clients syncing with the server."
1 Module Feature Description
2 Auth Authentication Handles user login, JWT token issuance, refresh tokens, and session management.
3 User User Management Create, update, and manage system users, their roles, and account status.
4 Role Role Management Define roles and manage permission assignments for access control.
5 Brand Brand Management Maintain product brands used to categorize items.
6 Category Category Management Maintain product categories for organizing items.
7 Uom Unit of Measure (UOM) Manage units of measure (e.g., box, piece, kg) used for items and conversions.
8 Item Item Management Manage product/item master data including pricing, stock units, and attributes.
9 PriceList Price List Management Create and manage price lists with item-wise pricing for customers/regions, including view and update flows.
10 Scheme Scheme Management Manage promotional schemes/discounts applicable to items or orders.
11 Stock Stock Management Track and manage inventory stock levels across warehouses.
12 Warehouse Warehouse Management Manage warehouse master data and locations for stock storage.
13 Store Store Management Manage store/outlet master data for customers or sales points.
14 Supplier Supplier Management Manage supplier master data used for purchase orders and GRNs.
15 SupplierClaims Supplier Claims Management Manage claims raised against suppliers, including claim creation, viewing, and settlement.
16 Claims Claims Management General claims management module for tracking and settling claims.
17 PurchaseOrder Purchase Order Management Create and manage purchase orders placed with suppliers.
18 PurchaseReturn Purchase Return Management Manage returns of purchased goods back to suppliers.
19 Grn Goods Receipt Note (GRN) Record and manage receipt of goods from suppliers against purchase orders.
20 Order Order Management Manage customer sales orders from creation through fulfillment.
21 Sale Sales Management Manage sales transactions and related sales records.
22 Returns Sales Returns Management Manage return of goods from customers after sale/delivery.
23 Payment Payment Management Record and track payments received/made against orders, sales, or claims.
24 Region Region Management Manage geographic regions used for organizing routes, stores, and sales areas.
25 Route Route Management Manage delivery/sales routes used for planning rides and deliveries.
26 Ride Ride Management Manage delivery rides/trips assigned to drivers and vehicles.
27 DeliveryRide Delivery Ride Tracking Track delivery ride execution, status, and progress.
28 LoadingEvent Loading Event Tracking Track vehicle loading events for goods dispatched on rides.
29 Vehicle Vehicle Management Manage vehicle master data used for deliveries.
30 DriverProfile Driver Profile Management Manage driver master data and profile details.
31 DriverComplianceConfig Driver Compliance Configuration Configure compliance rules and requirements for drivers.
32 Sync Data Synchronization Handle data sync operations, likely for offline/mobile clients syncing with the server.