231 |
231 |
payment_id => $payment_terms->id,
|
232 |
232 |
);
|
233 |
233 |
|
234 |
|
my $bt = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
235 |
|
amount => $ar_transaction->amount_less_skonto
|
|
234 |
my $bt = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
|
235 |
bank_chart_id => $bank->id,
|
|
236 |
amount => $ar_transaction->amount_less_skonto
|
236 |
237 |
) or die "Couldn't create bank_transaction";
|
237 |
238 |
|
238 |
239 |
$::form->{invoice_ids} = {
|
... | ... | |
260 |
261 |
my $ar_transaction_1 = test_ar_transaction(invnumber => 'salesinv_1');
|
261 |
262 |
my $ar_transaction_2 = test_ar_transaction(invnumber => 'salesinv_2');
|
262 |
263 |
|
263 |
|
my $bt = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction_1,
|
264 |
|
amount => ($ar_transaction_1->amount + $ar_transaction_2->amount),
|
265 |
|
purpose => "Rechnungen " . $ar_transaction_1->invnumber . " und " . $ar_transaction_2->invnumber,
|
|
264 |
my $bt = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction_1,
|
|
265 |
amount => ($ar_transaction_1->amount + $ar_transaction_2->amount),
|
|
266 |
purpose => "Rechnungen " . $ar_transaction_1->invnumber . " und " . $ar_transaction_2->invnumber,
|
|
267 |
bank_chart_id => $bank->id,
|
266 |
268 |
) or die "Couldn't create bank_transaction";
|
267 |
269 |
|
268 |
270 |
$::form->{invoice_ids} = {
|
... | ... | |
291 |
293 |
$ar_transaction = test_ar_transaction(invnumber => 'salesinv overpaid');
|
292 |
294 |
|
293 |
295 |
# amount 135 > 119
|
294 |
|
my $bt = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
295 |
|
amount => 135
|
|
296 |
my $bt = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
|
297 |
bank_chart_id => $bank->id,
|
|
298 |
amount => 135
|
296 |
299 |
) or die "Couldn't create bank_transaction";
|
297 |
300 |
|
298 |
301 |
$::form->{invoice_ids} = {
|
... | ... | |
321 |
324 |
|
322 |
325 |
$ar_transaction = test_ar_transaction(invnumber => 'salesinv overpaid partial');
|
323 |
326 |
|
324 |
|
my $bt_1 = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
325 |
|
amount => 10
|
|
327 |
my $bt_1 = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
|
328 |
bank_chart_id => $bank->id,
|
|
329 |
amount => 10
|
326 |
330 |
) or die "Couldn't create bank_transaction";
|
327 |
|
my $bt_2 = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
328 |
|
amount => 119,
|
329 |
|
transdate => DateTime->today->add(days => 5),
|
|
331 |
my $bt_2 = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
|
332 |
amount => 119,
|
|
333 |
transdate => DateTime->today->add(days => 5),
|
|
334 |
bank_chart_id => $bank->id,
|
330 |
335 |
) or die "Couldn't create bank_transaction";
|
331 |
336 |
|
332 |
337 |
$::form->{invoice_ids} = {
|
... | ... | |
358 |
363 |
$ar_transaction = test_ar_transaction(invnumber => 'salesinv partial payment');
|
359 |
364 |
|
360 |
365 |
# amount 100 < 119
|
361 |
|
my $bt = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
362 |
|
amount => 100
|
|
366 |
my $bt = SL::Dev::Payment::create_bank_transaction(record => $ar_transaction,
|
|
367 |
bank_chart_id => $bank->id,
|
|
368 |
amount => 100
|
363 |
369 |
) or die "Couldn't create bank_transaction";
|
364 |
370 |
|
365 |
371 |
$::form->{invoice_ids} = {
|
SL::Dev::Payment create_bank_transaction nutzt param bank_chart_id