Fix ref of invoice in blockedlog

This commit is contained in:
Laurent Destailleur 2017-12-04 17:51:05 +01:00
parent 0e4f82439b
commit 3cd7d0af11
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ class BlockedLog
$this->date_object = $object->date;
}
// ref
$this->ref_object = $object->ref;
$this->ref_object = ((! empty($object->newref)) ? $object->newref : $object->ref); // newref is set when validating a draft, ref is set in other cases
// type of object
$this->element = $object->element;
// id of object

View File

@ -17,7 +17,7 @@ logPAYMENT_ADD_TO_BANK=Payment added to bank
logPAYMENT_CUSTOMER_CREATE=Payment of customer created
logBILL_PAYED=Customer bill payed
logBILL_UNPAYED=Customer bill set unpayed
logBILL_VALIDATE=Customer bill set valid from draft
logBILL_VALIDATE=Customer bill validated
logBILL_SENTBYMAIL=Customer bill send by mail
logBILL_DELETE=Customer bill deleted
BlockedlogInfoDialog=Log Details