item mng with sync
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
namespace Distribution.Features.Sync;
|
||||
|
||||
public record SyncUomRequest(int ErpId, string Name);
|
||||
public record SyncUomsPayload(List<SyncUomRequest> Items);
|
||||
|
||||
public record SyncSubCategoryRequest(int ErpId, string Name, int ParentErpId);
|
||||
public record SyncCategoryRequest(int ErpId, string Name, List<SyncSubCategoryRequest> SubCategories);
|
||||
public record SyncCategoriesPayload(List<SyncCategoryRequest> Items);
|
||||
|
||||
public record SyncBrandRequest(int ErpId, string Name);
|
||||
public record SyncBrandsPayload(List<SyncBrandRequest> Items);
|
||||
|
||||
public record SyncItemRequest(
|
||||
int ErpId,
|
||||
string Sku,
|
||||
string Name,
|
||||
string? Description,
|
||||
int CategoryErpId,
|
||||
int? SubCategoryErpId,
|
||||
int? BrandErpId,
|
||||
int BaseUomErpId,
|
||||
decimal? SalePrice,
|
||||
bool IsActive);
|
||||
public record SyncItemsPayload(List<SyncItemRequest> Items);
|
||||
|
||||
public record SyncResult(int Inserted, int Updated, int Skipped);
|
||||
Reference in New Issue
Block a user