Add code builder for order, shipment, invoice and credit note

Fix PathRule Db "Constraint violation"