|
@@ -51,6 +51,9 @@ namespace Comal.Classes
|
|
|
[EditorSequence(7)]
|
|
|
public double IncTax { get; set; }
|
|
|
|
|
|
+ [EditorSequence(8)]
|
|
|
+ public JobLink Job { get; set; }
|
|
|
+
|
|
|
[NullEditor]
|
|
|
public string PostedReference { get; set; }
|
|
|
|
|
@@ -96,6 +99,7 @@ namespace Comal.Classes
|
|
|
|
|
|
private static readonly Column<BillLine> OrderItemColumn = new Column<BillLine>(x => x.OrderItem.ID);
|
|
|
private static readonly Column<BillLine> ProductColumn = new Column<BillLine>(x => x.Product.ID);
|
|
|
+ private static readonly Column<BillLine> JobColumn = new Column<BillLine>(x => x.Job.ID);
|
|
|
|
|
|
protected override void DoPropertyChanged(string name, object? before, object? after)
|
|
|
{
|
|
@@ -104,8 +108,11 @@ namespace Comal.Classes
|
|
|
{
|
|
|
Product.ID = Guid.Empty;
|
|
|
Product.Clear();
|
|
|
+ Job.ID = Guid.Empty;
|
|
|
+ Job.Clear();
|
|
|
}
|
|
|
- else if(ProductColumn.IsEqualTo(name) && after is Guid productID && productID != Guid.Empty)
|
|
|
+ else if((ProductColumn.IsEqualTo(name) && after is Guid productID && productID != Guid.Empty)
|
|
|
+ || (JobColumn.IsEqualTo(name) && after is Guid jobID && jobID != Guid.Empty))
|
|
|
{
|
|
|
OrderItem.ID = Guid.Empty;
|
|
|
OrderItem.Clear();
|