CorrecciĆ³n de Margenes Negativos o errĆ³neos a partir de SQL
update sale_order set margin = amount_untaxed-(select sum(sol.purchase_price*sol.product_uos_qty) from sale_order_line as sol join sale_order as so on so.id = sol.order_id and so.id=sale_order.id)
0 comentarios:
Publicar un comentario