Revision a50663d8
Von Kivitendo Admin vor fast 8 Jahren hinzugefügt
SL/Dev/Record.pm | ||
---|---|---|
42 | 42 |
salesman_id => $params{employee_id} // SL::DB::Manager::Employee->current->id, |
43 | 43 |
transdate => $params{transdate} // DateTime->today_local->to_kivitendo, |
44 | 44 |
payment_id => $params{payment_id} // undef, |
45 |
gldate => DateTime->today_local->to_kivitendo,
|
|
45 |
gldate => DateTime->today, |
|
46 | 46 |
invoiceitems => $invoiceitems, |
47 | 47 |
); |
48 | 48 |
$invoice->assign_attributes(%params) if %params; |
... | ... | |
71 | 71 |
taxincluded => $params{taxincluded} // 0, |
72 | 72 |
employee_id => $params{employee_id} // SL::DB::Manager::Employee->current->id, |
73 | 73 |
salesman_id => $params{employee_id} // SL::DB::Manager::Employee->current->id, |
74 |
transdate => $params{transdate} // DateTime->today_local->to_kivitendo,
|
|
74 |
transdate => $params{transdate} // DateTime->today, |
|
75 | 75 |
orderitems => $orderitems, |
76 | 76 |
); |
77 | 77 |
$delivery_order->assign_attributes(%params) if %params; |
... | ... | |
96 | 96 |
taxzone_id => delete $params{taxzone_id} // $customer->taxzone->id, |
97 | 97 |
currency_id => delete $params{currency_id} // $::instance_conf->get_currency_id, |
98 | 98 |
taxincluded => delete $params{taxincluded} // 0, |
99 |
# employee_id => delete $params{employee_id} // SL::DB::Manager::Employee->current->id,
|
|
100 |
# salesman_id => delete $params{employee_id} // SL::DB::Manager::Employee->current->id,
|
|
101 |
transdate => delete $params{transdate} // DateTime->today_local->to_kivitendo,
|
|
99 |
employee_id => delete $params{employee_id} // SL::DB::Manager::Employee->current->id, |
|
100 |
salesman_id => delete $params{employee_id} // SL::DB::Manager::Employee->current->id, |
|
101 |
transdate => delete $params{transdate} // DateTime->today, |
|
102 | 102 |
orderitems => $orderitems, |
103 | 103 |
); |
104 | 104 |
$order->assign_attributes(%params) if %params; |
... | ... | |
127 | 127 |
taxzone_id => delete $params{taxzone_id} // $vendor->taxzone->id, |
128 | 128 |
currency_id => delete $params{currency_id} // $::instance_conf->get_currency_id, |
129 | 129 |
taxincluded => delete $params{taxincluded} // 0, |
130 |
transdate => delete $params{transdate} // DateTime->today_local->to_kivitendo,
|
|
130 |
transdate => delete $params{transdate} // DateTime->today, |
|
131 | 131 |
'closed' => undef, |
132 | 132 |
orderitems => $orderitems, |
133 | 133 |
); |
... | ... | |
250 | 250 |
|
251 | 251 |
my $invoice2 = SL::Dev::Record::create_sales_invoice( |
252 | 252 |
invnumber => 777, |
253 |
transdate => DateTime->today_local->subtract(days => 7),
|
|
253 |
transdate => DateTime->today->subtract(days => 7), |
|
254 | 254 |
taxincluded => 1, |
255 | 255 |
); |
256 | 256 |
|
Auch abrufbar als: Unified diff
SL::Dev::Record - Datum als DateTime Objekt übergeben