cosmetic + typo SQL

This commit is contained in:
Dany De Bontridder 2015-11-12 08:55:54 +01:00
parent 47f80a568d
commit 2e2ad0bec3
3 changed files with 9 additions and 7 deletions

View file

@ -172,6 +172,13 @@ hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #0
}
if ( $action == "upgrade" ) {
?>
<form method="get" id="frm_upg_all" onsubmit="return confirm_box('frm_upg_all','<?php echo _('Confirmez')?>')">
<input type="hidden" name="sb" value="upg_all">
<input type="hidden" name="action" value="upgrade">
<input type="submit" class="button" name="submit_upg_all" id="submit_upg_all" value="<?php echo _('Tout mettre à jour')?>">
</form>
<?php
require_once NOALYSS_INCLUDE."/upgrade.inc.php";
}
?>

View file

@ -181,10 +181,10 @@ $BODY$
LANGUAGE plpgsql;
alter table quant_sold add column qs_unit numeric(20,4) default 0;
update quant_sold set qs_unit = qs_price / qs_quantite;
update quant_sold set qs_unit = qs_price / qs_quantite where qs_quantite <> 0 ;
alter table quant_purchase add column qp_unit numeric(20,4) default 0;
update quant_purchase set qp_unit = qp_price / qp_quantite;
update quant_purchase set qp_unit = qp_price / qp_quantite where qp_quantite <> 0;
CREATE OR REPLACE FUNCTION comptaproc.insert_quant_sold(p_internal text, p_jid numeric, p_fiche character varying, p_quant numeric, p_price numeric, p_vat numeric, p_vat_code integer, p_client character varying, p_tva_sided numeric, p_price_unit numeric)
RETURNS void AS

View file

@ -29,11 +29,6 @@ if (!defined('ALLOWED'))
* @param $rep db connection to central repository
*/
?>
<form method="get" id="frm_upg_all" onsubmit="return confirm_box('frm_upg_all','<?php echo _('Confirmez')?>')">
<input type="hidden" name="sb" value="upg_all">
<input type="hidden" name="action" value="upgrade">
<input type="submit" class="button" name="submit_upg_all" id="submit_upg_all" value="<?php echo _('Tout mettre à jour')?>">
</form>
<?php
$sb= HtmlInput::default_value_get("sb", "none");