Skip to main content
Question

Purpose of this variable


Forum|alt.badge.img+2

Hi,

 

What is the purpose of this allow_empty_serial_record_ variable in inventory_part_in_stock_api ?

I am getting an error thrown when trying to approve a count report for a serial part which says “The quantity may only be 1 when serial numbers are used” and this stems from when this IF condition isn’t satisfied -

 

IF (newrec_.serial_no != '*') THEN
         IF ((newrec_.qty_onhand = 1 AND newrec_.qty_in_transit = 0)
            OR (newrec_.qty_onhand = 0 AND newrec_.qty_in_transit = 1)
            OR (newrec_.qty_onhand = 0 AND newrec_.qty_in_transit = 0 AND allow_empty_serial_record_) )THEN
            NULL;
         ELSE
            Raise_Serial_Qty_1_Error___;
         END IF;
END IF;

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