Affichage des articles dont le libellé est Commande PO. Afficher tous les articles
Affichage des articles dont le libellé est Commande PO. Afficher tous les articles

vendredi 25 mai 2018

Problème d'approbation de commande PO

Problème d’approbation de commande PO,
Impossible d’approuver la commande car une zone de taxe est renseignée à tord.

 " Une erreur inattendue s'est produite au cours du calcul des taxes, Exception : 023 - Une erreur inattendue s'est produite.


-- Vérification zone tax_attribute_update_code pour une commande standard
SELECT pha.tax_attribute_update_code, pla.tax_attribute_update_code, plla.tax_attribute_update_code, pda.tax_attribute_update_code
FROM po_distributions_all pda, po_line_locations_all plla, po_lines_all pla, po_headers_all pha
WHERE pha.segment1 = '259701'
AND pha.po_header_id = pla.po_header_id
and pla.po_line_id = plla.PO_LINE_ID
AND plla.LINE_LOCATION_ID = pda.LINE_LOCATION_ID

La zone peut contenir CREATE ou UPDATE, c’est ce qui cause le message.
update po_line_locations_all
set tax_attribute_update_code = NULL
where po_header_id = 1880074
and tax_attribute_update_code = 'UPDATE'

update po_distributions_all
set tax_attribute_update_code = NULL
where po_header_id = 1880074
and tax_attribute_update_code = 'UPDATE'