Skip to main content
Question

How can I change the “available-for-issue quantity” error behavior in the SO Invoice logic?

  • March 11, 2026
  • 2 replies
  • 39 views

mos11
Freshman I
Forum|alt.badge.img

I investigated, and this message is written in IN/Descriptor. It’s called AccumulatorAttribute only in this attribute. I don’t understand where this attribute is applied that uses this exception code. I suppose it is in ARTranUpdate DAC and also in several other DACs. If that’s the case, can I override this attribute? Is there a way in Acumatica to change a DAC attribute?

[PXHidden]
[Accumulator(BqlTable = typeof(AR.ARTran))]
public class ARTranUpdate : PXBqlTable, IBqlTable
{}

I tried using an Interceptor, but it doesn’t override the existing DAC; it only adds a new DAC.
Base.Caches[typeof(ARTranUpdate)].Interceptor = new BZAccumulatorAttribute();

2 replies

jhalling52
Jr Varsity I
Forum|alt.badge.img
  • Jr Varsity I
  • March 11, 2026

Are you just trying to save the document or do you also want to release it?  If you are trying to both, I would recommend allow negative inventory for the related Item Class.

I understand the need to save the document and not allow release if negative.  Did you look at this DAC: 

PX.Objects.IN.InventoryRelease.Accumulators.QtyAllocated


mos11
Freshman I
Forum|alt.badge.img
  • Author
  • Freshman I
  • March 11, 2026

@jhalling52 I don’t want to allow saving or releasing the document when the quantity is less than 10, for example. I want to implement this on the same level where Acumatica does it.