Compare commits

...

1 Commits

Author SHA1 Message Date
Tobias Herre 4a87ecf539 Display currency in table rows 2020-09-22 14:01:41 +00:00
3 changed files with 18 additions and 15 deletions

View File

@ -193,7 +193,7 @@ function addTableRow(){
// add column for num
e += `<td>${a_amount} EUR
e += `<td>${a_amount} ${a_currency}
<input type="hidden" name="amount[${currentRowId}]" value="${a_amount}" /></td>`;
@ -385,7 +385,6 @@ function downloadDocument(mail)
document.getElementById('banktype').value=banktype;
document.getElementById("theform").submit();
if (!document.getElementById("agree").checked){
document.getElementById("agree").focus();
@ -394,6 +393,8 @@ function downloadDocument(mail)
};
document.getElementById("theform").submit();
}

View File

@ -310,6 +310,8 @@ function mkTable(){
foreach ($_POST['amount'] as $key=>$val){
$currency = $_POST['currency'][$key];
$html .='<tr>';
$html .= "<td>$pos</td>";
@ -336,7 +338,7 @@ function mkTable(){
$html .= "Bereits erhaltener Vorschuss:";
$html .= '</td>';
$html .= '<td align="right">';
$html .= sprintf("-%0.2f",$adv)." EUR";
$html .= sprintf("-%0.2f",$adv)." $currency";
$html .= '</td>';
$html .= "</tr>";
@ -347,7 +349,7 @@ function mkTable(){
$html .= "<b>Summe:</b>";
$html .= '</td>';
$html .= '<td align="right">';
$html .= "<b>".calcSum()." EUR</b>";
$html .= "<b>".calcSum()." $currency</b>";
$html .= '</td>';
$html .= '</tr>';