Issue with editing entity field ?promt input

Hello,
i have an issue with editing an entity field with ?promt input, samba for some reason is not accepting when there is an “-” before why so? And how i can handle that?
Thanks for helping!

Anotación 2020-04-05 120414


[General Info]

Application: SambaPOS
Version: 5.2.22
Region: es-AR
DB: SQ
Machine: CAJA
User: Manjessi
Date: 5/4/2020
Time: 16:03

User Explanation:

Manjessi said “”

[Exception Info 1]

Top-level Exception
Type: System.Reflection.TargetInvocationException
Message: Se produjo una excepción en el destino de la invocación.
Source: mscorlib
Stack Trace: en System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
en System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
en System.Delegate.DynamicInvokeImpl(Object[] args)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type: System.ArgumentOutOfRangeException
Message: El valor que desea agregar está fuera del intervalo.
Nombre del parámetro: value
Source: mscorlib
Stack Trace: en System.DateTime.Add(Double value, Int32 scale)
en Samba.Infrastructure.Helpers.DateFuncParser.UpdateDate(DateTime date, String expression, Int32 quantity)
en Samba.Infrastructure.Helpers.DateFuncParser.ExecuteDateExpression(String expression, String currentValue)
en Samba.Infrastructure.Helpers.DateFuncParser.Parse(String expression, String currentValue)
en Samba.Domain.Models.Entities.Entity.SetCustomData(String fieldName, String value)
en Samba.Persistance.Implementations.EntityDao.UpdateEntityData(Int32 entityId, String fieldName, String value)
en Samba.Services.ActionProcessors.EntityModule.UdpateEntityData.Process(ActionData actionData, RuleExecutionContext context) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\ActionProcessors\EntityModule\UdpateEntityData.cs:línea 34
en Samba.Services.Common.RuleActionTypeRegistry.ProcessAction(String actionType, ActionData actionData, RuleExecutionContext context) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Common\RuleActionTypeRegistry.cs:línea 39
en Samba.Services.Implementations.AutomationModule.AutomationService.ProcessAction(String actionType, ActionData actionData, RuleExecutionContext context) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\AutomationModule\AutomationService.cs:línea 42
en Samba.Services.Implementations.AutomationModule.ActionDataBuilder.<>c__DisplayClass13_0.b__0() en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\AutomationModule\ActionDataBuilder.cs:línea 76
en System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
en System.Windows.Threading.Dispatcher.Invoke(Action callback)
en Samba.Services.Implementations.AutomationModule.ActionDataBuilder.InvokeWith(AppState appState, RuleExecutionContext context) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\AutomationModule\ActionDataBuilder.cs:línea 84
en Samba.Services.Implementations.AutomationModule.RuleExecutor.ExecuteWithoutLogging(Object ruleData) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\AutomationModule\RuleExecutor.cs:línea 125
en Samba.Services.Implementations.AutomationModule.RuleExecutor.ExecuteWith(Object dataParameter) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\AutomationModule\RuleExecutor.cs:línea 62
en Samba.Services.Implementations.AutomationModule.NotificationService.NotifyEvent(String eventName, Object dataParameter, AppState appState) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\AutomationModule\NotificationService.cs:línea 26
en Samba.Services.Implementations.TicketModule.TicketServiceBase.UpdateTicketEntity(Ticket ticket, Entity entity, String entityCustomData, AppState appState) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\TicketModule\TicketServiceBase.cs:línea 330
en Samba.Presentation.Services.Implementations.TicketModule.TicketService.UpdateEntity(Ticket ticket, Entity entity)
en Samba.Presentation.ClientLibrary.Modules.PosModule.PosViewModel.OnEntitySelectedForTicket(EventParameters1 eventParameters) en C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\PosModule\PosViewModel.cs:línea 329 en Microsoft.Practices.Prism.Events.EventSubscription1.InvokeAction(Action1 action, TPayload argument) en Microsoft.Practices.Prism.Events.EventSubscription1.<>c__DisplayClass2.b__0(Object[] arguments)
en Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)
en Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)
en Samba.Presentation.Services.Common.ExtensionMethods.Publish[TEventsubject](TEventsubject eventArgs, String eventTopic, Action expectedAction)


[Assembly Info]

mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Domain, Version=1.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v16.2, Version=16.2.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v16.2, Version=16.2.13.0
DevExpress.Xpf.Grid.v16.2.Core, Version=16.2.13.0
System.Xaml, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v16.2, Version=16.2.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=1.0.0.0
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=1.0.0.0
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
NCalc, Version=1.3.8.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
DevExpress.Data.v16.2, Version=16.2.13.0
WindowsInput, Version=1.0.4.0


[System Info]

Operating System
-Microsoft Windows 10 Pro
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = -240
–FreePhysicalMemory = 686404
–OSArchitecture = 64 bits
–OSLanguage = 1031
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 10.0.18363

Machine
-CAJA
–Manufacturer = System manufacturer
–Model = System Product Name
–TotalPhysicalMemory = 3965165568
–UserName = CAJA\Manjessi


In error logs i saw that you are using a date time field. Can you check it please

hello yes i will check that