adresse added sachkonto for verbindlichkeit

This commit is contained in:
OpenXE 2023-12-30 14:05:16 +01:00
parent 7435a0605b
commit 7029295cb3
4 changed files with 25 additions and 0 deletions

View File

@ -3649,6 +3649,17 @@
"Extra": "", "Extra": "",
"Privileges": "select,insert,update,references", "Privileges": "select,insert,update,references",
"Comment": "" "Comment": ""
},
{
"Field": "kontorahmen",
"Type": "int(11)",
"Collation": null,
"Null": "NO",
"Key": "",
"Default": "0",
"Extra": "",
"Privileges": "select,insert,update,references",
"Comment": ""
} }
], ],
"keys": [ "keys": [

View File

@ -583,6 +583,9 @@ class WidgetGenadresse
$field = new HTMLCheckbox("geburtstagskarte","","","1","0","0"); $field = new HTMLCheckbox("geburtstagskarte","","","1","0","0");
$this->form->NewField($field); $this->form->NewField($field);
$field = new HTMLInput("sachkonto","text","","30","","","","","","","","0","","");
$this->form->NewField($field);
$field = new HTMLSelect("verrechnungskontoreisekosten",0,"verrechnungskontoreisekosten","","","0"); $field = new HTMLSelect("verrechnungskontoreisekosten",0,"verrechnungskontoreisekosten","","","0");
$this->form->NewField($field); $this->form->NewField($field);

View File

@ -714,6 +714,9 @@ $(document).ready(function(){
<div class="inside inside-full-height"> <div class="inside inside-full-height">
<fieldset><legend>{|Finanzbuchhaltung|}</legend> <fieldset><legend>{|Finanzbuchhaltung|}</legend>
<table width="100%" class="mkTableFormular"> <table width="100%" class="mkTableFormular">
<tr>
<td width="300">Sachkonto f&uuml;r Verbindlichkeiten-Vorkontierung:</td><td colspan="3">[SACHKONTO]</td>
</tr>
<tr><td width="210">{|Reisekosten|}:</td><td>[VERRECHNUNGSKONTOREISEKOSTEN][MSGVERRECHNUNGSKONTOREISEKOSTEN]&nbsp;<i>Verrechnungskonto</i></td> <tr><td width="210">{|Reisekosten|}:</td><td>[VERRECHNUNGSKONTOREISEKOSTEN][MSGVERRECHNUNGSKONTOREISEKOSTEN]&nbsp;<i>Verrechnungskonto</i></td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td></td><td></td></tr> <td></td><td></td></tr>

View File

@ -34,6 +34,9 @@ class WidgetAdresse extends WidgetGenAdresse
$this->form->ReplaceFunction("kreditlimit",$this,"ReplaceBetrag"); $this->form->ReplaceFunction("kreditlimit",$this,"ReplaceBetrag");
$this->form->ReplaceFunction("kreditlimiteinmalig",$this,"ReplaceBetrag"); $this->form->ReplaceFunction("kreditlimiteinmalig",$this,"ReplaceBetrag");
$this->app->YUI->AutoComplete("sachkonto","sachkonto",1);
$this->form->ReplaceFunction("sachkonto",$this,"ReplaceKontorahmen");
$this->form->ReplaceFunction("lat",$this,"ReplaceBetrag"); $this->form->ReplaceFunction("lat",$this,"ReplaceBetrag");
$this->form->ReplaceFunction("lng",$this,"ReplaceBetrag"); $this->form->ReplaceFunction("lng",$this,"ReplaceBetrag");
$this->form->ReplaceFunction("name",$this,"ReplaceTrim"); $this->form->ReplaceFunction("name",$this,"ReplaceTrim");
@ -473,6 +476,11 @@ class WidgetAdresse extends WidgetGenAdresse
return trim($value); return trim($value);
} }
function ReplaceKontorahmen($db,$value,$fromform)
{
return $this->app->erp->ReplaceKontorahmen($db,$value,$fromform);
}
/** /**
* @param int|bool $db * @param int|bool $db
* @param string|int $value * @param string|int $value