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