|
@@ -6,6 +6,7 @@ using System.Windows.Controls;
|
|
|
using System.Windows.Media.Imaging;
|
|
|
using Comal.Classes;
|
|
|
using InABox.Clients;
|
|
|
+using InABox.Configuration;
|
|
|
using InABox.Core;
|
|
|
using InABox.DynamicGrid;
|
|
|
using InABox.Wpf;
|
|
@@ -43,6 +44,18 @@ public class SupplierBillLineGrid : DynamicOneToManyGrid<Bill, BillLine>
|
|
|
|
|
|
ActionColumns.Add(new DynamicImageColumn(pencil, BillLineEdit_Click));
|
|
|
}
|
|
|
+
|
|
|
+ protected override void CustomiseEditor(BillLine[] items, DynamicGridColumn column, BaseEditor editor)
|
|
|
+ {
|
|
|
+ base.CustomiseEditor(items, column, editor);
|
|
|
+
|
|
|
+ if(editor is CurrencyEditor curr)
|
|
|
+ {
|
|
|
+ var settings = new GlobalConfiguration<SupplierBillPanelProperties>().Load();
|
|
|
+ curr.Digits = settings.CurrencyDecimalPlaces;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
protected override void DoReconfigure(FluentList<DynamicGridOption> options)
|
|
|
{
|
|
|
base.DoReconfigure(options);
|