Add AgencyMarginPercent and RetailPrice to PriceListItems
This commit is contained in:
+4057
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()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("char(36)");
|
.HasColumnType("char(36)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("AgencyMarginPercent")
|
||||||
|
.HasColumnType("decimal(65,30)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreatedAt")
|
b.Property<DateTime>("CreatedAt")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
@@ -1041,6 +1044,9 @@ namespace Distribution.Migrations
|
|||||||
b.Property<decimal>("Price")
|
b.Property<decimal>("Price")
|
||||||
.HasColumnType("decimal(65,30)");
|
.HasColumnType("decimal(65,30)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("RetailPrice")
|
||||||
|
.HasColumnType("decimal(65,30)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("FK_ItemId");
|
b.HasIndex("FK_ItemId");
|
||||||
|
|||||||
@@ -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."
|
||||||
|
Reference in New Issue
Block a user