X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIR.pm;h=5c768cf8af5fe3a36e95bfe12f96f2b4eeca8442;hb=6410ae9fc53e8501b21038c41005e39831020f5f;hp=082e2aa5723d9d0c45a938be7312a1ef32a8f859;hpb=a6f7df18b090bf9eaa160027cddbd0d9b4b22cc2;p=kivitendo-erp.git diff --git a/SL/IR.pm b/SL/IR.pm index 082e2aa57..5c768cf8a 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -737,6 +737,7 @@ SQL invoice = ?, taxzone_id = ?, notes = ?, taxincluded = ?, intnotes = ?, storno_id = ?, storno = ?, cp_id = ?, employee_id = ?, department_id = ?, delivery_term_id = ?, + payment_id = ?, currency_id = (SELECT id FROM currencies WHERE name = ?), globalproject_id = ?, direct_debit = ? WHERE id = ?|; @@ -747,6 +748,7 @@ SQL '1', $taxzone_id, $restricter->process($form->{notes}), $form->{taxincluded} ? 't' : 'f', $form->{intnotes}, conv_i($form->{storno_id}), $form->{storno} ? 't' : 'f', conv_i($form->{cp_id}), conv_i($form->{employee_id}), conv_i($form->{department_id}), conv_i($form->{delivery_term_id}), + conv_i($form->{payment_id}), $form->{"currency"}, conv_i($form->{globalproject_id}), $form->{direct_debit} ? 't' : 'f', @@ -1004,7 +1006,7 @@ sub retrieve_invoice { ordnumber, quonumber, paid, taxincluded, notes, taxzone_id, storno, gldate, mtime, itime, intnotes, (SELECT cu.name FROM currencies cu WHERE cu.id=ap.currency_id) AS currency, direct_debit, - delivery_term_id + payment_id, delivery_term_id FROM ap WHERE id = ?|; $ref = selectfirst_hashref_query($form, $dbh, $query, conv_i($form->{id}));