Skip to main content
Question

Service Orders need ability to have negative quantities

  • August 7, 2026
  • 1 reply
  • 8 views

Forum|alt.badge.img

We need to the ability to have negative quantities on service orders so we can return items from a customer and back into inventory, while giving the customer credit for that return.

1 reply

Forum|alt.badge.img+4
  • Jr Varsity II
  • August 9, 2026

Hi ​@MFarnsworth10 ,

Can you try below

Remove/Adjust MinValue on Base Qty Fields
File: PX.Objects.FS/DAC/FSSODet.cs
Override via CacheAttached in a graph extension to remove MinValue = 0 from:
- BaseEstimatedQty (line ~604)
- Related base qty fields as needed
[PXMergeAttributes(Method = MergeMethod.Append)]
[PXRemoveBaseAttribute(typeof(PXDBDecimalAttribute))]  
[PXDBDecimal(6)] // No MinValue
protected virtual void _(Events.CacheAttached<FSSODet.baseEstimatedQty> e) { }

 

Important Considerations
1. This alone won't fully enable negatives — (RowPersisting override in FSServiceOrderLineSplittingExtension) must also be addressed, or the persist will still reject negative inventory lines.
2. If using Appointments, apply the same pattern on AppointmentEntry for FSAppointmentDet base qty fields.

Hope above helps!!