Picking list journal with negative inventory using x++

Hi, I’m working in AX 2012, and I’d like to know if there’s a way using x++ to perform a picking list journal for a sales order that has a line with negative inventory, I would appreciate your help thanks!