cp_id = ?, marge_total = ?, marge_percent = ?,
globalproject_id = ?, delivery_customer_id = ?,
transaction_description = ?, delivery_vendor_id = ?,
- donumber = ?, invnumber_for_credit_note = ?, direct_debit = ?,
+ donumber = ?, invnumber_for_credit_note = ?, direct_debit = ?, qrbill_without_amount = ?,
delivery_term_id = ?
WHERE id = ?|;
@values = ( $form->{"invnumber"}, $form->{"ordnumber"}, $form->{"quonumber"}, $form->{"cusordnumber"},
conv_i($form->{"cp_id"}), 1 * $form->{marge_total} , 1 * $form->{marge_percent},
conv_i($form->{"globalproject_id"}), conv_i($form->{"delivery_customer_id"}),
$form->{transaction_description}, conv_i($form->{"delivery_vendor_id"}),
- $form->{"donumber"}, $form->{"invnumber_for_credit_note"}, $form->{direct_debit} ? 't' : 'f',
+ $form->{"donumber"}, $form->{"invnumber_for_credit_note"}, $form->{direct_debit} ? 't' : 'f', $form->{qrbill_without_amount} ? 't' : 'f',
conv_i($form->{delivery_term_id}),
conv_i($form->{"id"}));
do_query($form, $dbh, $query, @values);
a.mtime, a.itime,
a.language_id, a.delivery_customer_id, a.delivery_vendor_id, a.type,
a.transaction_description, a.donumber, a.invnumber_for_credit_note,
- a.marge_total, a.marge_percent, a.direct_debit, a.delivery_term_id,
+ a.marge_total, a.marge_percent, a.direct_debit, a.qrbill_without_amount, a.delivery_term_id,
dc.dunning_description,
e.name AS employee
FROM ar a
'countrycode' => $biller_countrycode,
);
+ my $amount;
+ if ($form->{'qrbill_without_amount'}) {
+ $amount = '';
+ } else {
+ $amount = sprintf("%.2f", $form->parse_amount(\%::myconfig, $form->{'total'}));
+ }
+
my %payment_information = (
- 'amount' => sprintf("%.2f", $form->parse_amount(\%::myconfig, $form->{'total'})),
+ 'amount' => $amount,
'currency' => $form->{'currency'},
);
'Purpose' => 'Verwendungszweck',
'Purpose (if field names purpose, purpose1, purpose2 ... exist they will all combined into the field "purpose")' => 'Verwendungszweck (wenn die Spalten purpose, purpose1, purpose2 ... existieren werden diese zum Feld "purpose" zusammengefügt)',
'Purpose/Reference' => 'Verwendungszweck und Referenz',
+ 'QR bill without amount' => 'QR-Rechnung ohne Betrag',
'QR-Code placeholder image: QRCodePlaceholder not found in template.' => 'QR-Code Platzhalter Bild: QRCodePlaceholder nicht gefunden.',
'QR-Image generation failed: ' => 'QR-Code Erzeugung fehlgeschlagen: ',
'QUEUED' => 'In Warteschlange',
[%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
</td>
</tr>
+[%- IF INSTANCE_CONF.get_create_qrbill_invoices > 0 %]
+ <tr>
+ <th align="right">[% 'QR bill without amount' | $T8 %]</th>
+ <td>
+ [%- L.checkbox_tag('qrbill_without_amount', 'checked', qrbill_without_amount) %]
+ </td>
+ </tr>
+[%- END %]
</table>
</td>
</tr>
<input type="hidden" name="customer_discount" value="[% customer_discount %]">
<input type="hidden" name="gldate" value="[% gldate %]">
+[%- IF INSTANCE_CONF.get_create_qrbill_invoices <= 0 %]
+ <input type="hidden" name="qrbill_without_amount" value="[% qrbill_without_amount %]">
+[%- END %]
+
<div id="shipto_inputs" class="hidden">
[%- PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %]
</div>