mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 05:56:27 +02:00
Faktura refactoring
This commit is contained in:
parent
9e1a56aa83
commit
60f5bf58ed
20 changed files with 791 additions and 1078 deletions
|
@ -473,6 +473,14 @@ sub save_account(){
|
|||
my $vde_on_fail = 0;
|
||||
$vde_on_fail = 2 if($valxx && $valxx == 1);
|
||||
$update_adr->{$_} = $vde_on_fail;
|
||||
}elsif($_ =~ /^int03/){
|
||||
#on payment-type change set vde=3
|
||||
if($ctadr->{int03} && $ctadr->{int03} != $valxx){
|
||||
$update_adr->{$_} = $valxx;
|
||||
$update_adr->{int12} = 3;
|
||||
}else{
|
||||
$update_adr->{$_} = $valxx;
|
||||
}
|
||||
}elsif($_ =~ /^int|barcode/){
|
||||
$update_adr->{$_} = $valxx;
|
||||
}elsif($_ eq "ct_name" && $R::base_edit){
|
||||
|
@ -733,8 +741,7 @@ sub save_transact(){
|
|||
fetch => "one",
|
||||
main_id => 300008,
|
||||
template_id => 218,
|
||||
ca_id => "$ctadr_operator->{c_id}",
|
||||
#int10 => "$ctadr_operator->{c_id}",#deprecated
|
||||
int10 => "$ctadr_operator->{c_id}",
|
||||
state => "is::null",
|
||||
close_time => "is::null",
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue