|
@@ -39,6 +39,16 @@ namespace Comal.Classes
|
|
|
[UserTracking(typeof(StockMovement))]
|
|
|
public class StockLocation : Entity, IRemotable, IPersistent, IStockLocation, ILicense<WarehouseLicense>, IExportable, IImportable
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
+ [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
|
|
|
+ [EditorSequence(1)]
|
|
|
+ public string Code { get; set; }
|
|
|
+
|
|
|
+ [TextBoxEditor]
|
|
|
+ [EditorSequence(2)]
|
|
|
+ public string Description { get; set; }
|
|
|
+
|
|
|
[EntityRelationship(DeleteAction.SetNull)]
|
|
|
[EditorSequence(3)]
|
|
|
public StockWarehouseLink Warehouse { get; set; }
|
|
@@ -60,6 +70,10 @@ namespace Comal.Classes
|
|
|
[EntityRelationship(DeleteAction.SetNull)]
|
|
|
[EditorSequence(4)]
|
|
|
public StockAreaLink Area { get; set; }
|
|
|
+
|
|
|
+
|
|
|
+ [EditorSequence(5)]
|
|
|
+ public JobLink Job { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// Is the location a "shelf" (ie permanent) or "pack" (ie transient)
|
|
@@ -67,6 +81,12 @@ namespace Comal.Classes
|
|
|
[EnumLookupEditor(typeof(StockLocationType))]
|
|
|
[EditorSequence(6)]
|
|
|
public StockLocationType Type { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Is the Stock Location Active?
|
|
|
+ /// </summary>
|
|
|
+ [EditorSequence(7)]
|
|
|
+ public bool Active { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// Mark this location as the default receival location for the warehouse
|
|
@@ -79,31 +99,16 @@ namespace Comal.Classes
|
|
|
/// </summary>
|
|
|
[EditorSequence(9)]
|
|
|
public bool Favourite { get; set; } = false;
|
|
|
-
|
|
|
- [Aggregate(typeof(StockLocationLastStocktake))]
|
|
|
- [NullEditor]
|
|
|
- public DateTime LastStocktake { get; set; }
|
|
|
-
|
|
|
- [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
|
|
|
- [EditorSequence(1)]
|
|
|
- public string Code { get; set; }
|
|
|
-
|
|
|
- [TextBoxEditor]
|
|
|
- [EditorSequence(2)]
|
|
|
- public string Description { get; set; }
|
|
|
-
|
|
|
- [EditorSequence(5)]
|
|
|
- public JobLink Job { get; set; }
|
|
|
|
|
|
[Aggregate(typeof(StockLocationHoldings))]
|
|
|
[DoubleEditor(Editable = Editable.Hidden)]
|
|
|
- [EditorSequence(6)]
|
|
|
+ [EditorSequence(10)]
|
|
|
public double Holdings { get; set; }
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// Is the Stock Location Active?
|
|
|
- /// </summary>
|
|
|
- [EditorSequence(7)]
|
|
|
- public bool Active { get; set; }
|
|
|
+ [Aggregate(typeof(StockLocationLastStocktake))]
|
|
|
+ [DateEditor(Editable = Editable.Hidden)]
|
|
|
+ [EditorSequence(11)]
|
|
|
+ public DateTime LastStocktake { get; set; }
|
|
|
+
|
|
|
}
|
|
|
}
|