-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PT-6745: Order returns creation (#2)
* Initial commit of returns creation * Code smells fix * Code smells fix * package-lock.json is added * Quantity validation is fixed * Search instruments are added to the order selection blade * Some visual changes * Code smell fix
- Loading branch information
Showing
20 changed files
with
816 additions
and
2,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/VirtoCommerce.ReturnModule.Core/Services/IReturnService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
using System.Threading.Tasks; | ||
using VirtoCommerce.Platform.Core.GenericCrud; | ||
using VirtoCommerce.ReturnModule.Core.Models; | ||
|
||
namespace VirtoCommerce.ReturnModule.Core.Services | ||
{ | ||
public interface IReturnService : ICrudService<Return> | ||
{ | ||
Task SaveChangesAsync(Return[] returns); | ||
} | ||
} |
133 changes: 133 additions & 0 deletions
133
src/VirtoCommerce.ReturnModule.Data/Migrations/20220303084117_LineItemFields.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
src/VirtoCommerce.ReturnModule.Data/Migrations/20220303084117_LineItemFields.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace VirtoCommerce.ReturnModule.Data.Migrations | ||
{ | ||
public partial class LineItemFields : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<decimal>( | ||
name: "Price", | ||
table: "ReturnLineItem", | ||
type: "Money", | ||
nullable: false, | ||
defaultValue: 0m); | ||
|
||
migrationBuilder.AddColumn<int>( | ||
name: "Quantity", | ||
table: "ReturnLineItem", | ||
type: "int", | ||
nullable: false, | ||
defaultValue: 0); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "Reason", | ||
table: "ReturnLineItem", | ||
type: "nvarchar(1024)", | ||
maxLength: 1024, | ||
nullable: true); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "Price", | ||
table: "ReturnLineItem"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Quantity", | ||
table: "ReturnLineItem"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Reason", | ||
table: "ReturnLineItem"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.