Revert "reorganize upload files and images"
This reverts commit c8275cb10b.
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
select max(nolig) from bddevfac.dem_lig
|
||||
update bdmenuiz.dem_lig set nolig=nolig+525xxx order by nolig DESC
|
||||
|
||||
select max(compteur) from bddevfac.facture_reg
|
||||
update bdmenuiz.facture_reg set compteur=compteur+28406 order by compteur DESC
|
||||
|
||||
supprimer temporairement le trigger `facture_reg_after_ins_tr`
|
||||
|
||||
select max(nolig) from bddevfac.ordres_lig
|
||||
update bdmenuiz.ordres_lig set nolig=nolig+525xxx order by nolig DESC
|
||||
|
||||
select max(nolig) from bddevfac.rdvous_lig
|
||||
update bdmenuiz.rdvous_lig set nolig=nolig+525xxx order by nolig DESC
|
||||
|
||||
======================================
|
||||
CREATE
|
||||
DEFINER=`root`@`localhost`
|
||||
TRIGGER `bddevfac`.`facture_reg_after_ins_tr`
|
||||
AFTER INSERT ON `bddevfac`.`facture_reg`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
|
||||
IF NEW.modereg < 7 THEN
|
||||
|
||||
|
||||
UPDATE `liv_bnq`
|
||||
SET montantdebit = (SELECT COALESCE(SUM(montant),0) FROM `facture_reg` WHERE cod_bnq=NEW.cod_bnq)
|
||||
WHERE cod_bnq=NEW.cod_bnq;
|
||||
END IF;
|
||||
|
||||
CALL spUPD_FACTURE_STATUT(NEW.nofact);
|
||||
|
||||
END$$
|
||||
=========================================
|
||||
|
||||
Reference in New Issue
Block a user