I got this code of my trigger but it isn't working for some reason
CREATE TRIGGER copia_detalle_xml AFTER INSERT ON tif_detallexml
FOR EACH ROW
INSERT INTO tbl_rif (id, idDetalleXml, total_xml, subtotal_xml, iva_xml, fecha_operacion)
VALUES (new.idContador, new.idDetalleXml, new.doubleTotal, new.doubleSubtotal,new.duobleTotalImpuestosTrasladados, NOW());
I checked the name of this field many times and it's correct "new.duobleTotalImpuestosTrasladados"
It is inserting the data correctly in the table but not the field "duobleTotalImpuestosTrasladados", and I have no idea why, I hope you can help me to find the issue with my code.
INFO UPDATED
This is from "tbl_rif"
This is from tif_detallexml
where the field "iva_xml" is 0 it should be 13.79


tif_detallexml.duobleTotalImpuestosTrasladadosmaps totbl_rif.iva_xml. Andtif_detallexml.duobleTotalImpuestosTrasladados = 0so what is the value being set/inserted intotbl_rif.iva_xml?