mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01: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("summe","RechnungSumme"); // nur fuer rechte
|
||||
$this->app->ActionHandler("belegnredit","belegnredit"); // nur fuer rechte
|
||||
|
||||
$this->app->ActionHandler("einkaufspreise","RechnungEinkaufspreise");
|
||||
$this->app->ActionHandler("steuer","RechnungSteuer");
|
||||
$this->app->ActionHandler("formeln","RechnungFormeln");
|
||||
@ -1680,7 +1682,15 @@ class Rechnung extends GenRechnung
|
||||
}
|
||||
|
||||
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')){
|
||||
$this->app->Tpl->Set('KUNDE', " Kd-Nr. <a href=\"index.php?module=adresse&action=edit&id=$adresse\" target=\"_blank\">" . $kundennummer . "</a>");
|
||||
}
|
||||
@ -1799,6 +1809,16 @@ class Rechnung extends GenRechnung
|
||||
}
|
||||
|
||||
$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'))
|
||||
{
|
||||
|
@ -4503,9 +4503,16 @@ a.reportbutton.active:active {
|
||||
background: var(--sidebar-background);
|
||||
}
|
||||
|
||||
font[color="blue"]{
|
||||
font[color="blue"] {
|
||||
color: #2f3890;
|
||||
}
|
||||
|
||||
#belegnredit {
|
||||
color: #2f3890;
|
||||
border-width: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.project_sensitive,
|
||||
span.special,
|
||||
span.legacy,
|
||||
|
@ -21,7 +21,10 @@
|
||||
<!-- // ende anfang -->
|
||||
<table width="100%" align="center">
|
||||
<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 align="right" nowrap>[ICONMENU] [SAVEBUTTON]</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user