Skip to main content
Solved

Do not allow qty=0 lines saved on Invoice without coding?


Forum|alt.badge.img+5
  • Captain II
  • 398 replies

Hello,

    Recently, our users typed qty=0 lines on invoice (which should have qty). So we less charged our customers due to human error. 
    I know we can probably put codes like below in customization to prevent this mistake.

cache.RaiseExceptionHandling<ARTran.baseQty>(aRTran,
                                    aRTran.BaseQty, new PXSetPropertyException("Qty can not be 0.", PXErrorLevel.Error));

    I am just wondering if there is a way to prevent qty=0 line on Invoice entry without coding.

Best answer by Naveen Boga

Hi @ray20  I don’t think we have such configuration to raise an error when Qty is 0.

As you know already there is minor code change is required for this. Good to go with this :) to avoid such human errors :) 

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+12
  • Acumatica Support Team
  • 871 replies
  • March 24, 2023

Hi @ray20 

Are the invoices generated from shipment? What type of items are on those lines ( stock or non stock)?

Regards,


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • March 24, 2023

@vkumar Thank you for your always help.
These line items are user typed in on Invoice manually. And they are non-stock items.
As we checked, if the shipped qty=0, the lines with 0 qty on shipment would not converted into invoice.

So, here , What I am talking about the the key-in lines on invoice manually. 
The user forgot to key in the qty.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3406 replies
  • Answer
  • March 24, 2023

Hi @ray20  I don’t think we have such configuration to raise an error when Qty is 0.

As you know already there is minor code change is required for this. Good to go with this :) to avoid such human errors :) 


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • March 24, 2023

@Naveen Boga Thank you ,code master. Glad to get your advice again. However, you know I am not good at coding. And I tried, but I have met a small hole. If you don’t mind, can you take a look at below and advise me to fix it?

 

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3406 replies
  • March 24, 2023

Sure @ray20  Let me check and get back to you.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings