Skip to main content

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;

Be the first to reply!

Reply