Hi, there
Need a code in functions.php to create PO automatically when order is complete in woocomerce by using doaction 'atum_create_pos', such as the action available in Purchase Orders PRO.
Something like:
`add_action( 'woocommerce_order_status_completed', 'create_purchase_order_atum', 10, 2 );
function create_purchase_order_atum ('atum/purchase-orders', function( $data ) {
$order = wc_get_order( $order_id );
$woocommerce->post('atum_create_pos', $data);
);