Update card.php

This commit is contained in:
Laurent Destailleur 2021-10-11 15:25:25 +02:00 committed by GitHub
parent 94875cdc77
commit b29bd325fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3730,8 +3730,7 @@ if ($action == 'create') {
print '<input type="hidden" name="amount" value="'.$objectsrc->total_ht.'">'."\n";
print '<input type="hidden" name="total" value="'.$objectsrc->total_ttc.'">'."\n";
print '<input type="hidden" name="tva" value="'.$objectsrc->total_tva.'">'."\n";
// The lines below override the parameters set by GET or POST for origin value and also be present in $origin and $originid variables (it make creation of invoice originating from an external module object impossible because for get an external module class we also need to know the name of the module in addition of the name of the element).
// This input fields already printed above at the <form> begin.
// The commented lines below are fields already added as hidden parameters before
//print '<input type="hidden" name="origin" value="'.$objectsrc->element.'">';
//print '<input type="hidden" name="originid" value="'.$objectsrc->id.'">';