Revision a8109605
Von Udo Spallek vor etwa 19 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
2718 | 2718 |
# $locale->text('Assembly Number missing!') |
2719 | 2719 |
|
2720 | 2720 |
# save part |
2721 |
$lxdebug->message(LXDebug::DEBUG1, "ic.pl: sellprice in save = $form->{sellprice}\n"); |
|
2721 | 2722 |
$rc = IC->save(\%myconfig, \%$form); |
2722 | 2723 |
if ($rc == 3) { |
2723 | 2724 |
$form->error($locale->text('Partnumber not unique!')); |
... | ... | |
2772 | 2773 |
map { $form->{"${_}_$i"} = $newform{$_} } |
2773 | 2774 |
qw(partnumber description bin unit listprice inventory_accno income_accno expense_accno sellprice); |
2774 | 2775 |
$form->{"sellprice_$i"} = $newform{lastcost} if ($form->{vendor_id}); |
2775 |
|
|
2776 | 2776 |
if ($form->{exchangerate} != 0) { |
2777 | 2777 |
$form->{"sellprice_$i"} /= $form->{exchangerate}; |
2778 | 2778 |
} |
2779 |
|
|
2779 |
$lxdebug->message(LXDebug::DEBUG1, qq|sellprice_$i in previousform 2 = |.$form->{"sellprice_$i"}.qq|\n|); |
|
2780 | 2780 |
map { $form->{"taxaccounts_$i"} .= "$_ " } split / /, |
2781 | 2781 |
$newform{taxaccount}; |
2782 | 2782 |
chop $form->{"taxaccounts_$i"}; |
... | ... | |
2797 | 2797 |
|
2798 | 2798 |
$form->{creditremaining} -= $amount; |
2799 | 2799 |
|
2800 |
# redo number formatting, because invoice parse them! |
|
2801 |
$i = $form->{rowcount}; |
|
2802 |
map { $form->{"${_}_$i"} = $form->format_amount(\%myconfig, $form->{"${_}_$i"}) } |
|
2803 |
qw(weight listprice sellprice rop); |
|
2800 | 2804 |
} |
2801 | 2805 |
|
2802 | 2806 |
$form->{"id_$i"} = $parts_id; |
... | ... | |
2818 | 2822 |
} |
2819 | 2823 |
$form->{callback} = $callback; |
2820 | 2824 |
} |
2821 |
|
|
2825 |
$lxdebug->message(LXDebug::DEBUG1, qq|ic.pl: sellprice_$i nach sub save = |.$form->{"sellprice_$i"}.qq|\n|); |
|
2822 | 2826 |
# redirect |
2823 | 2827 |
$form->redirect; |
2824 | 2828 |
|
Auch abrufbar als: Unified diff
Solved Bug 231