Skip to content

Commit

Permalink
Merge branch 'KreizIT-task712' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 13, 2014
2 parents e3f9680 + cc86e28 commit 4343d82
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ChangeLog
Expand Up @@ -38,6 +38,10 @@ For users:
- New: Intervention documents are now available in ECM module
- New: Add attachments on user card + in ECM module
- New: Can add __PROJECT_REF__ and __TIHRPARTY_NAME__ into email topic or content template.
- New: [ task #1204 ] add a External reference to contract
- New: [ task #1204 ] add Numering contrat module free (like leopard in product module)
- New: [ task #712 ] Add warning when creating invoice from proposal or order, when there is already one invoice
- New: Enable supplier price log table
- Fix: [ bug #1487 ] PAYMENT_DELETE trigger does not intercept trigger action
- Fix: [ bug #1470, #1472, #1473] User trigger problem
- Fix: [ bug #1489, #1491 ] Intervention trigger problem
Expand All @@ -55,9 +59,6 @@ For users:
- Fix: [ bug #1506, #1507 ] ECM trigger error problem
- Fix: [ bug #1469 ] Triggers CONTACT_MODIFY and CONTACT_DELETE duplicates error message
- Fix: [ bug #1537 ] Difference between societe.nom and adherent.societe.
- New: [ task #1204 ] add a External reference to contract
- New: [ task #1204 ] add Numering contrat module free (like leopard in product module)
- New: Enable supplier price log table

For translators:
- Update language files.
Expand Down
11 changes: 10 additions & 1 deletion htdocs/compta/facture.php
Expand Up @@ -2304,7 +2304,16 @@
elseif ($newclassname == 'Fichinter')
$newclassname = 'Intervention';

print '<tr><td>' . $langs->trans($newclassname) . '</td><td colspan="2">' . $objectsrc->getNomUrl(1) . '</td></tr>';
print '<tr><td>' . $langs->trans($newclassname) . '</td><td colspan="2">' . $objectsrc->getNomUrl(1);
//We check if Origin document has already an invoice attached to it
$objectsrc->fetchObjectLinked($originid,'','','facture');
$cntinvoice=count($objectsrc->linkedObjects['facture']);
if ($cntinvoice>=1)
{
setEventMessage('WarningBillExist','warnings');
echo ' ('.$langs->trans('LatestRelatedBill').end($objectsrc->linkedObjects['facture'])->getNomUrl(1).')';
}
echo '</td></tr>';
print '<tr><td>' . $langs->trans('TotalHT') . '</td><td colspan="2">' . price($objectsrc->total_ht) . '</td></tr>';
print '<tr><td>' . $langs->trans('TotalVAT') . '</td><td colspan="2">' . price($objectsrc->total_tva) . "</td></tr>";
if ($mysoc->localtax1_assuj == "1" || $objectsrc->total_localtax1 != 0) // Localtax1
Expand Down
2 changes: 2 additions & 0 deletions htdocs/langs/en_US/bills.lang
Expand Up @@ -295,6 +295,8 @@ TotalOfTwoDiscountMustEqualsOriginal=Total of two new discount must be equal to
ConfirmRemoveDiscount=Are you sure you want to remove this discount ?
RelatedBill=Related invoice
RelatedBills=Related invoices
LatestRelatedBill=Latest related invoice
WarningBillExist=Warning, one or more invoice already exist

# PaymentConditions
PaymentConditionShortRECEP=Immediate
Expand Down
2 changes: 2 additions & 0 deletions htdocs/langs/fr_FR/bills.lang
Expand Up @@ -295,6 +295,8 @@ TotalOfTwoDiscountMustEqualsOriginal=La somme du montant des 2 nouvelles réduct
ConfirmRemoveDiscount=Êtes-vous sûr de vouloir supprimer cette réduction ?
RelatedBill=Facture associée
RelatedBills=Factures associées
LatestRelatedBill=Dernière facture associée
WarningBillExist=Attention, il existe déjà une ou plusieurs factures

# PaymentConditions
PaymentConditionShortRECEP=A réception
Expand Down

0 comments on commit 4343d82

Please sign in to comment.