Hi,
I testing Project'or'ria to verify that it corresponds to my needs.
But I don't understand how biling work.
I started by defining terms.
Then i joined a terms to a bill as new line
But i can't set the terms as charged (Facturé ? ), why ?
Thanks for your help !
It is not the term that is charged. It is the bill that is done.
When you add a term to the bill, the term gets a reference to the bill (not updatable from term).
Then, when you change status of bill to done, almost all fields (except name and comment) of bill are fixed and term is considered as billed.
Hope this helps.
Merci pour l'aide mais j'avais déjà mis la facture à l'état "fait". Malgré cela l'échance que j'ai lié à ma facture ne passe pas à facturé (la checkbox dans la liste des échéances). Que faut-il faire pour que celle-ci soit cochée ?
Sinon j'ai aussi noté dans le reporting que ma facture n'a pas les lignes avec les échéances qui lui sont affectés. C'est lié à l'erreur SQL ci-dessous car dans le fichier /report/bill.php j'ai cette ligne or la colonne refPayement n'éxiste pas dans ma BDD (qui correspondrait plutot à la colonne "refType" ?):
$crit = array("refId"=>$bill->id,"refPayment"=>"Bill");
En fait c'est corrigé dans la V3.0.0 si je ne m'abuse... Je suis en V2.6.3 comme la 3.0 n'est pas passée en stable.
Désolé pour le dérangement...
------
Thanks for your help, i already did it. My bill is on done states. But on terms there is a disable checkbox named "charged".
This checkbox shouldn't be checked when the terms is affected to a bill and this bill is done? If no, when this checkbox is checked?
I also noticed that my Bill doesn't have lines with affected terms on report area. But when i generate my bill as PDF on bill area the line with terms exist. It's because the column refPayement doesn't exist in Billline table, however this column is requested in file /report/bill.php
It's fixed in V3.0.0 isn't it? I'm in v2.6.3 because it's the last stable version.
Thanks for your help really, and i hope that my english is understable.
EDIT :
Maybe i had a problem during the update to v2.6.3 because i have this error in logs :
2012-11-20 15:18:05 ** ERROR ** Exception-[42S22] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'billline.refPayment' in 'where clause'
2012-11-20 15:18:05 ** ERROR ** For query : select * from billline where billline.refId ='4' and billline.refPayment ='Bill' order by line
2012-11-20 15:18:05 ** ERROR ** Strack trace :
2012-11-20 15:18:05 ** ERROR ** #0 Sql->query called at [C:wampwwwprojectorriamodelpersistenceSqlElement.php:1103]
2012-11-20 15:18:05 ** ERROR ** #1 SqlElement->getSqlElementsFromCriteria called at [C:wampwwwprojectorriareportbill.php:118]
En fait sauf erreur de ma part l'échéance ne passe pas à facturé non plus dans la version 3.0.0.
En fait elle passe a facturé uniquement lorsque la facture à laquelle elle est affectée à l'id numéro 1 parcequ'elle appelle la méthode suivante dans projectorFormatter.js :
function booleanFormatter(value) {
if (value==1) {
return '
';
} else {
return '
';
}
}
Or c'est l'id de la facture qui est passé en paramètre, donc si la facture à pour id 2 on aura checkedKO.
Est-ce bien un bug?
Peut-être est-il possible de créer un isBilledFormatter(value) ou un isNumericFormatter() où si la valeur est un nombre alors l'échance à été ajoutée à une facture et donc est facturée ?
Du moins j'ai fais ça pour le moment, il y a certainement une solution plus propre. 🙂
//view/js/projectorFormatter.js
function isNumericFormatter(value) {
if (value != '') {
return '
';
} else {
return '
';
}
}
//model/Term.php
${isBilled}
Bonjour,
Très bonne analyse.
La correction peut cependant être encore plus simple :
function booleanFormatter(value) {
if (value!=0) {
return '
';
} else {
return '
';
}
}
Cette adaptation sera incluse en V3.0.1
Merci.