Revision f087c373
Von Jan Büren vor mehr als 10 Jahren hinzugefügt
bin/mozilla/is.pl | ||
---|---|---|
shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptocontact shiptophone shiptofax
|
||
shiptoemail shiptodepartment_1 shiptodepartment_2 shiptocp_gender message email subject cc bcc taxaccounts cursor_fokus
|
||
convert_from_do_ids convert_from_oe_ids convert_from_ar_ids
|
||
invoice_id
|
||
show_details
|
||
), @custom_hiddens,
|
||
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
|
||
... | ... | |
$form->{employee_id} = SL::DB::Manager::Employee->current->id;
|
||
$form->{forex} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'buy');
|
||
$form->{exchangerate} = $form->{forex} if $form->{forex};
|
||
delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"};
|
||
|
||
&display_form;
|
||
|
||
... | ... | |
$form->{invnumber} = "Storno zu " . $form->{invnumber};
|
||
$form->{invdate} = DateTime->today->to_lxoffice;
|
||
$form->{rowcount}++;
|
||
# set new ids for storno invoice
|
||
delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"};
|
||
|
||
post();
|
||
$main::lxdebug->leave_sub();
|
||
... | ... | |
$form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if $form->{"${_}_${i}"};
|
||
}
|
||
}
|
||
# set new persistent ids for credit note
|
||
delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"};
|
||
|
||
my $currency = $form->{currency};
|
||
&invoice_links;
|
Auch abrufbar als: Unified diff
persistente ids für invoice (items)
analog zu do, oe auch die verknüpften items für rechnungen persistent machen.
- invoice_id retrieve_invoice in array übernehmen
- invoice_pos entfernt (war ggf. vor 2006 ähnlich vorgesehen)
- reverse_invoice gekürzt, sodass hier keine invoice gelöscht werden
- delete_invoice erweitert, sodass hier invoice gelöscht wird
- ferner code von IS.pm nach IR.pm portiert (queries in array)
- use_as_new invoice_ids löschen
- ferner bei storno invoice_ids löschen und ...
- bei Verkaufsrechnung Gutschrift
Ferner Kommentare (IR.pm) eingerückt
tests:
Verkaufsrechnung:
gesamten beleg löschen i.O.
update i.O.
als neu speichern i.O.
mittlere position löschen i.O.
Storno i.O.
Gutschrift i.O.
Einkaufsrechnung:
als neu speichern i.O.
Zahlung buchen i.O.
mittlere position löschen i.O.
gesamten beleg löschen i.O.
Storno i.O.
keine Gutschrift möglich