Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
invoice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web2project
invoice
Commits
433881e8
Commit
433881e8
authored
Jan 01, 2013
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new tab "Loss" to record invoices never paid and considered losses.
parent
1e528799
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
503 additions
and
494 deletions
+503
-494
addedit.php
addedit.php
+495
-494
index.php
index.php
+1
-0
projects_tab.invoice.php
projects_tab.invoice.php
+2
-0
vw_loss.php
vw_loss.php
+5
-0
No files found.
addedit.php
View file @
433881e8
...
@@ -369,9 +369,10 @@ Invoices will not be editable once the status changes from Open for Editing.
...
@@ -369,9 +369,10 @@ Invoices will not be editable once the status changes from Open for Editing.
<tr
valign=
"top"
width=
"90%"
>
<tr
valign=
"top"
width=
"90%"
>
<td
align=
"right"
>
Invoice Status
<td
align=
"right"
>
Invoice Status
<select
name=
"stat"
size=
"1"
class=
"text"
>
<select
name=
"stat"
size=
"1"
class=
"text"
>
<option
value=
"0"
>
Open for Editing
</option>
<option
<?php
if
(
$invoice_status
==
"0"
)
print
"selected"
?>
value=
"0"
>
Open for Editing
</option>
<option
value=
"1"
>
Pending Payment
</option>
<option
<?php
if
(
$invoice_status
==
"1"
)
print
"selected"
?>
value=
"1"
>
Pending Payment
</option>
<option
value=
"2"
>
Paid
</option>
<option
<?php
if
(
$invoice_status
==
"2"
)
print
"selected"
?>
value=
"2"
>
Paid
</option>
<option
<?php
if
(
$invoice_status
==
"3"
)
print
"selected"
?>
value=
"3"
>
Loss
</option>
</select>
</select>
</td>
</td>
</tr>
</tr>
...
...
index.php
View file @
433881e8
...
@@ -45,6 +45,7 @@ $tabBox = new CTabBox( "?m=invoice", dPgetConfig('root_dir') . '/modules/invoice
...
@@ -45,6 +45,7 @@ $tabBox = new CTabBox( "?m=invoice", dPgetConfig('root_dir') . '/modules/invoice
$tabBox
->
add
(
"vw_open"
,
'Invoices (Open)'
);
$tabBox
->
add
(
"vw_open"
,
'Invoices (Open)'
);
$tabBox
->
add
(
"vw_pend"
,
'Invoices (Pending)'
);
$tabBox
->
add
(
"vw_pend"
,
'Invoices (Pending)'
);
$tabBox
->
add
(
"vw_paid"
,
'Invoices (Paid)'
);
$tabBox
->
add
(
"vw_paid"
,
'Invoices (Paid)'
);
$tabBox
->
add
(
"vw_loss"
,
'Invoices (Loss)'
);
$tabBox
->
show
();
$tabBox
->
show
();
?>
?>
projects_tab.invoice.php
View file @
433881e8
...
@@ -46,6 +46,8 @@ function showtask_inv( &$a, $level=0 ) {
...
@@ -46,6 +46,8 @@ function showtask_inv( &$a, $level=0 ) {
$invoice_status
=
"Pending"
;
$invoice_status
=
"Pending"
;
}
elseif
(
$a
[
"invouce_status"
]
==
"2"
)
{
}
elseif
(
$a
[
"invouce_status"
]
==
"2"
)
{
$invoice_status
=
"Paid"
;
$invoice_status
=
"Paid"
;
}
elseif
(
$a
[
"invouce_status"
]
==
"3"
)
{
^
M
$invoice_status
=
"Loss"
;
}
}
$start_date
=
strftime
(
$df
,
$a
[
"invoice_date"
]);
$start_date
=
strftime
(
$df
,
$a
[
"invoice_date"
]);
...
...
vw_loss.php
0 → 100644
View file @
433881e8
<?php
include
(
"vw_inc.php"
);
echo
invoices
(
3
);
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment