mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-04-07 21:26:29 +02:00
rechnung edit belegnr
This commit is contained in:
parent
561b8c428e
commit
5d6d5a5de1
@ -76,6 +76,8 @@ class Rechnung extends GenRechnung
|
|||||||
$this->app->ActionHandler("archivierepdf","RechnungArchivierePDF");
|
$this->app->ActionHandler("archivierepdf","RechnungArchivierePDF");
|
||||||
|
|
||||||
$this->app->ActionHandler("summe","RechnungSumme"); // nur fuer rechte
|
$this->app->ActionHandler("summe","RechnungSumme"); // nur fuer rechte
|
||||||
|
$this->app->ActionHandler("belegnredit","belegnredit"); // nur fuer rechte
|
||||||
|
|
||||||
$this->app->ActionHandler("einkaufspreise","RechnungEinkaufspreise");
|
$this->app->ActionHandler("einkaufspreise","RechnungEinkaufspreise");
|
||||||
$this->app->ActionHandler("steuer","RechnungSteuer");
|
$this->app->ActionHandler("steuer","RechnungSteuer");
|
||||||
$this->app->ActionHandler("formeln","RechnungFormeln");
|
$this->app->ActionHandler("formeln","RechnungFormeln");
|
||||||
@ -1680,7 +1682,15 @@ class Rechnung extends GenRechnung
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($nummer!='') {
|
if($nummer!='') {
|
||||||
|
|
||||||
$this->app->Tpl->Set('NUMMER',$nummer);
|
$this->app->Tpl->Set('NUMMER',$nummer);
|
||||||
|
|
||||||
|
if (($schreibschutz!='1') && $this->app->erp->RechteVorhanden('rechnung','belegnredit')){
|
||||||
|
$this->app->Tpl->Set('BELEGNRHIDDEN','hidden');
|
||||||
|
} else {
|
||||||
|
$this->app->Tpl->Set('BELEGNREDITHIDDEN','hidden');
|
||||||
|
}
|
||||||
|
|
||||||
if($this->app->erp->RechteVorhanden('adresse','edit')){
|
if($this->app->erp->RechteVorhanden('adresse','edit')){
|
||||||
$this->app->Tpl->Set('KUNDE', " Kd-Nr. <a href=\"index.php?module=adresse&action=edit&id=$adresse\" target=\"_blank\">" . $kundennummer . "</a>");
|
$this->app->Tpl->Set('KUNDE', " Kd-Nr. <a href=\"index.php?module=adresse&action=edit&id=$adresse\" target=\"_blank\">" . $kundennummer . "</a>");
|
||||||
}
|
}
|
||||||
@ -1800,6 +1810,16 @@ class Rechnung extends GenRechnung
|
|||||||
|
|
||||||
$speichern = $this->app->Secure->GetPOST('speichern');
|
$speichern = $this->app->Secure->GetPOST('speichern');
|
||||||
|
|
||||||
|
if($speichern!='' && $this->app->erp->RechteVorhanden('rechnung','belegnredit')) {
|
||||||
|
$nummer_neu = $this->app->Secure->GetPOST('belegnredit');
|
||||||
|
|
||||||
|
$nummer_neu = $this->app->DB->real_escape_string($nummer_neu);
|
||||||
|
|
||||||
|
if(!$this->app->DB->select("SELECT id from rechnung WHERE belegnr ='".$nummer_neu."'")) {
|
||||||
|
$this->app->DB->update("UPDATE rechnung SET belegnr ='".$nummer_neu."' WHERE id = '".$id."'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($speichern!='' && $this->app->erp->RechteVorhanden('rechnung','mahnwesen'))
|
if($speichern!='' && $this->app->erp->RechteVorhanden('rechnung','mahnwesen'))
|
||||||
{
|
{
|
||||||
$mahnwesen_datum = $this->app->Secure->GetPOST('mahnwesen_datum');
|
$mahnwesen_datum = $this->app->Secure->GetPOST('mahnwesen_datum');
|
||||||
|
@ -4506,6 +4506,13 @@ a.reportbutton.active:active {
|
|||||||
font[color="blue"] {
|
font[color="blue"] {
|
||||||
color: #2f3890;
|
color: #2f3890;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#belegnredit {
|
||||||
|
color: #2f3890;
|
||||||
|
border-width: 0;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
span.project_sensitive,
|
span.project_sensitive,
|
||||||
span.special,
|
span.special,
|
||||||
span.legacy,
|
span.legacy,
|
||||||
|
@ -21,7 +21,10 @@
|
|||||||
<!-- // ende anfang -->
|
<!-- // ende anfang -->
|
||||||
<table width="100%" align="center">
|
<table width="100%" align="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td> <b style="font-size: 14pt">Rechnung <font color="blue">[NUMMER]</font></b>[KUNDE][RABATTANZEIGE]</td>
|
<td>
|
||||||
|
<b style="font-size: 14pt" [BELEGNRHIDDEN]>Rechnung <font color="blue">[NUMMER]</font></b>
|
||||||
|
<b style="font-size: 14pt" [BELEGNREDITHIDDEN]>Rechnung <input id="belegnredit" type="text" style="" name="belegnredit" value="[NUMMER]"><font color="blue"></font></input></b>
|
||||||
|
[KUNDE][RABATTANZEIGE]</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td align="right" nowrap>[ICONMENU] [SAVEBUTTON]</td>
|
<td align="right" nowrap>[ICONMENU] [SAVEBUTTON]</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user