Voir les détails de l’anomalie
| Identifiant | Projet | Catégorie | Visibilité | Date de soumission | Dernière mise à jour |
|---|---|---|---|---|---|
| 0000782 | Noalyss - PLUGIN | Bug | public | 2013-01-27 18:45 | 2016-01-10 15:20 |
| Rapporteur | saniregul | Affecté à | danydb | ||
| Priorité | normale | Sévérité | majeur | Reproductibilité | non essayé |
| État | fermé | Résolution | corrigé | ||
| Résumé | 0000782: Nouveau module import_account - impossible d'importer un avoir ( montant négatif ) avec proposition de solution | ||||
| Description | L'import suivant ne passe pas suite blocage sur check_balance 4;"01.01.2013";"T";"F1";"Avoir 4";"8288407";;;;; 4;"01.01.2013";"S";"HA";"Avoir 4";"8288407";-1;-0,05;1;0.055;-1.05 | ||||
| Informations complémentaires | Proposition de solution : lignes marquées #00 dans l'extrait ci-dessous du fichier class_impacc_operation.php Pourquoi : $jrx->amount est passée en positif dans class_acc_operation.php/insert_jrnx ------- extrait du fichier class_impacc_operation.php ------------ $amount_tvac = $oper->getp("amount_total"); #echo "class_impac_operation : amount_tvac= ",$amount_tvac,' amount_tva= ',$amount_tva,' '; $jrnx->amount = bcsub($amount_tvac, $amount_tva); #echo "class_impac_operation : jrnx->amount= ",$jrnx->amount,' '; $jrnx_amount=$jrnx->amount; #00 $jrnx->poste = $oper->getp('poste'); $jrnx->grpt = $grpt; $jrnx->type = $oth_side; $jrnx->jrn = $jrn; $jrnx->user = $_SESSION['g_user']; $jrnx->periode = 0; $jrnx->qcode = $oper->getp("qcode"); $jrnx->desc = mb_substr($oper->getp("desc"),0,80,'UTF8'); $id = $jrnx->insert_jrnx(); $transfer = new impacc_operation_transfer_sql(); $transfer->setp("j_id", $id); $transfer->setp("o_id", $oper->getp("id")); $transfer->insert(); $tva_id = $oper->getp("tva_id"); /* * Save into quant_purchase or quant_sale */ switch ($type) { case 'ACH': echo "class_impac_operation : ACH : jrnx->amount= ",$jrnx->amount,' '; $sql = "insert into quant_purchase(qp_internal,j_id,qp_fiche,qp_quantite,qp_price,qp_vat,qp_vat_code,qp_supplier) values($1,$2,$3,$4,$5,$6,$7,$8)"; #00 $cn->exec_sql($sql, array(null, $id, $oper->getp("fiche"), $oper->getp("number_unit"), $jrnx->amount, $amount_tva, $tva_id, $oper_tiers->getp("fiche"))); $cn->exec_sql($sql, array(null, $id, $oper->getp("fiche"), $oper->getp("number_unit"), $jrnx_amount, $amount_tva, $tva_id, $oper_tiers->getp("fiche"))); #00 | ||||
| Balises | Aucune balise n’est attachée. | ||||
| Extension Noalyss | Importation Comptabilité | ||||
| Date de modification | Nom d’utilisateur | Champ | Changement |
|---|---|---|---|
| 2013-01-27 18:45 | saniregul | Nouvelle anomalie | |
| 2013-01-30 23:51 | danydb | Projet | NOALYSS => @15@ |
| 2013-03-05 16:37 | danydb | Note ajoutée: 0001748 | |
| 2013-03-05 16:37 | danydb | État | nouveau => résolu |
| 2013-03-05 16:37 | danydb | Résolution | ouvert => corrigé |
| 2013-03-05 16:37 | danydb | Affecté à | => danydb |
| 2014-01-09 21:41 | danydb | État | résolu => fermé |
| 2015-11-08 16:14 | danydb | Extension Noalyss | => Importation Comptabilité |
| 2016-01-10 15:20 | danydb | Projet | @15@ => Noalyss - PLUGIN |