mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
Bugfix verbindlichkeit datepicker & skonto, zahlbarbis 0 tage
This commit is contained in:
parent
19ac3415e3
commit
43b2cb05c0
@ -603,13 +603,13 @@ class Verbindlichkeit {
|
||||
$input['skontobis'] = $this->app->erp->ReplaceDatum(true,$input['skontobis'],true); // Parameters: Target db?, value, from form?
|
||||
$input['zahlbarbis'] = $this->app->erp->ReplaceDatum(true,$input['zahlbarbis'],true); // Parameters: Target db?, value, from form?
|
||||
|
||||
if(!empty($input['zahlbarbis_tage'])) {
|
||||
if($input['zahlbarbis_tage'] != '') {
|
||||
$zahlbarbis = date_create_from_format('Y-m-d', $input['rechnungsdatum']);
|
||||
date_add($zahlbarbis,date_interval_create_from_date_string($input['zahlbarbis_tage']." days"));
|
||||
$input['zahlbarbis'] = date_format($zahlbarbis, 'Y-m-d');
|
||||
}
|
||||
unset($input['zahlbarbis_tage']);
|
||||
if(!empty($input['skontobis_tage'])) {
|
||||
if($input['skontobis_tage'] != '') {
|
||||
$skontobis = date_create_from_format('Y-m-d', $input['rechnungsdatum']);
|
||||
date_add($skontobis,date_interval_create_from_date_string($input['skontobis_tage']." days"));
|
||||
$input['skontobis'] = date_format($skontobis, 'Y-m-d');
|
||||
@ -1032,6 +1032,7 @@ class Verbindlichkeit {
|
||||
$icons = $this->app->DB->SelectArr($sql);
|
||||
$this->app->Tpl->Add('STATUSICONS', $icons[0]['icons']);
|
||||
|
||||
$this->app->YUI->DatePicker("rechnungsdatum");
|
||||
$this->app->YUI->AutoComplete("adresse", "lieferant");
|
||||
$this->app->YUI->AutoComplete("projekt", "projektname", 1);
|
||||
$this->app->Tpl->Set('PROJEKT',$this->app->erp->ReplaceProjekt(false,$verbindlichkeit_from_db['projekt'],false));
|
||||
@ -1061,8 +1062,7 @@ class Verbindlichkeit {
|
||||
|
||||
if (empty($verbindlichkeit_from_db['freigabe'])) {
|
||||
$this->app->YUI->TableSearch('PAKETDISTRIBUTION', 'verbindlichkeit_paketdistribution_list', "show", "", "", basename(__FILE__), __CLASS__);
|
||||
}
|
||||
|
||||
} else {
|
||||
// -- POSITIONEN
|
||||
$this->app->YUI->AutoComplete("positionen_sachkonto", "sachkonto", 1);
|
||||
$this->app->YUI->TableSearch('POSITIONEN', 'verbindlichkeit_positionen', "show", "", "", basename(__FILE__), __CLASS__);
|
||||
@ -1070,6 +1070,8 @@ class Verbindlichkeit {
|
||||
// -- POSITIONEN
|
||||
|
||||
$this->verbindlichkeit_minidetail('MINIDETAIL',false);
|
||||
}
|
||||
|
||||
$this->app->Tpl->Parse('PAGE', "verbindlichkeit_edit.tpl");
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user