Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-invoices
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-invoices
Commits
41f9cb13
Commit
41f9cb13
authored
Sep 03, 2004
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- started adding new-company-from-freelance
parent
b6001529
Pipeline
#311
failed with stages
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
46 additions
and
82 deletions
+46
-82
intranet-invoices-create.sql
sql/oracle/intranet-invoices-create.sql
+5
-5
index.adp
www/index.adp
+0
-29
index.tcl
www/index.tcl
+0
-43
new-2.tcl
www/new-2.tcl
+4
-1
new.adp
www/new.adp
+10
-2
new.tcl
www/new.tcl
+1
-0
payment-action.tcl
www/payment-action.tcl
+1
-1
view.adp
www/view.adp
+1
-0
view.tcl
www/view.tcl
+24
-1
No files found.
sql/oracle/intranet-invoices-create.sql
View file @
41f9cb13
...
...
@@ -137,14 +137,14 @@ create table im_invoice_items (
begin
acs_object_type
.
create_type
(
supertype
=>
'acs_object'
,
object_type
=>
'im_invoice'
,
pretty_name
=>
'Invoice'
,
object_type
=>
'im_invoice'
,
pretty_name
=>
'Invoice'
,
pretty_plural
=>
'Invoices'
,
table_name
=>
'im_invoices'
,
table_name
=>
'im_invoices'
,
id_column
=>
'invoice_id'
,
package_name
=>
'im_invoice'
,
package_name
=>
'im_invoice'
,
type_extension_table
=>
null
,
name_method
=>
'im_invoice.name'
name_method
=>
'im_invoice.name'
);
end
;
/
...
...
www/index.adp
deleted
100755 → 0
View file @
b6001529
<master src="../../intranet-core/www/master">
<property name="title">@page_title;noquote@</property>
<property name="main_navbar_label">finance</property>
<%= [im_costs_navbar "none" "/intranet/invoices/index" "" "" [list] "invoices_new"] %>
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr>
<td valign=top>
<H2>@page_title;noquote@</H2>
<ul>
@new_list_html;noquote@
</ul>
<%= [im_component_bay left] %>
</td>
<td valign=top>
<%= [im_component_bay right] %>
</td>
</tr>
</table><br>
<table cellpadding=0 cellspacing=0 border=0>
<tr><td>
<%= [im_component_bay bottom] %>
</td></tr>
</table>
www/index.tcl
deleted
100755 → 0
View file @
b6001529
# /packages/intranet-invoices/www/index.tcl
#
# Copyright (C
)
2003-2004 Project/Open
#
# All rights reserved. Please check
# http://www.project-open.com/license/ for details.
ad_page_contract
{
Offers a menu to create new Invoices, Quotes, POs
and Bills
@author frank.bergmann@project-open.com
}
{
{
project_id 0
}
{
customer_id 0
}
}
set
user_id
[
ad_maybe_redirect_for_registration
]
# select the "Finance" Menu
set
parent_menu_sql
"select menu_id from im_menus where label='finance'"
set
parent_menu_id
[
db_string parent_admin_menu
$parent
_menu_sql -default 0
]
set
menu_select_sql
"
select m.*
from im_menus m
where parent_menu_id = :parent_menu_id
and acs_permission.permission_p(m.menu_id, :user_id, 'read') = 't'
order by sort_order"
# Start formatting the menu bar
set
new_list_html
""
set
ctr 0
db_foreach menu_select
$menu
_select_sql
{
ns_log Notice
"im_sub_navbar: menu_name='
$name
'"
if
{
$customer
_id
}
{
append url
"&customer_id=
$customer
_id"
}
if
{
$project
_id
}
{
append url
"&project_id=
$project
_id"
}
append new_list_html
"<li><a href=
\"
$url
\"
>
$name
</a></li>
\n
"
}
set
page_title
"New Financial Item"
set
context_bar
[
ad_context_bar
$page
_title
]
www/new-2.tcl
View file @
41f9cb13
...
...
@@ -26,6 +26,7 @@ ad_page_contract {
template_id:integer
vat:float
tax:float
note
item_sort_order:array
item_name:array
item_units:float,array
...
...
@@ -110,7 +111,8 @@ if {!$invoice_exists_p} {
payment_days => :payment_days,
amount => 0,
vat => :vat,
tax => :tax
tax => :tax,
note => :note
);
END;"
}
...
...
@@ -142,6 +144,7 @@ set
payment_days = :payment_days,
vat = :vat,
tax = :tax,
note = :note,
variable_cost_p = 't'
where
cost_id = :invoice_id
...
...
www/new.adp
View file @
41f9cb13
...
...
@@ -70,7 +70,7 @@
<td align=center valign=top class=rowtitle colspan=2>Customer</td>
</tr>
<tr>
<td class=roweven>Customer:</t
r
>
<td class=roweven>Customer:</t
d
>
<td class=roweven>@customer_select;noquote@</td>
</tr>
<input type=hidden name=provider_id value=@provider_id@>
...
...
@@ -82,7 +82,7 @@
<td align=center valign=top class=rowtitle colspan=2>Provider</td>
</tr>
<tr>
<td class=roweven>Provider:</t
r
>
<td class=roweven>Provider:</t
d
>
<td class=roweven>@provider_select;noquote@</td>
</tr>
<input type=hidden name=customer_id value=@customer_id@>
...
...
@@ -90,6 +90,14 @@
</else>
<tr>
<td class=rowodd>Note:</td>
<td>
<textarea name=note rows=6 cols=40 wrap=hard>@cost_note@</textarea>
</td>
</tr>
</table>
</tr>
</table>
...
...
www/new.tcl
View file @
41f9cb13
...
...
@@ -88,6 +88,7 @@ select
ci.payment_days,
ci.vat,
ci.tax,
ci.note as cost_note,
i.payment_method_id,
ci.template_id,
ci.cost_status_id,
...
...
www/payment-action.tcl
View file @
41f9cb13
...
...
@@ -40,7 +40,7 @@ if {"" != $del} {
if
{
""
!=
$add
}
{
ns_log Notice
"payment-action: add payment"
ad_returnredirect
"/intranet-payments/new?
cost_id=
$cost
_id
"
ad_returnredirect
"/intranet-payments/new?
[
export_url_vars cost_id return_url
]
"
}
ad_return_complaint 1
"<li>No command specified"
www/view.adp
View file @
41f9cb13
...
...
@@ -141,3 +141,4 @@
</table>
</td></tr>
</table>
www/view.tcl
View file @
41f9cb13
...
...
@@ -89,6 +89,7 @@ append query "
select
i.*,
ci.*,
ci.note as cost_note,
c.*,
c.customer_id as company_id,
o.*,
...
...
@@ -127,6 +128,21 @@ set page_title "One $cost_type"
set
context_bar
[
ad_context_bar
[
list
/intranet-invoices/
"Finance"
]
$page
_title
]
# ---------------------------------------------------------------
# Update the amount paid for this cost_item
# ---------------------------------------------------------------
db_dml update_cost_items
"
update im_costs
set paid_amount = (
select sum(amount)
from im_payments
where cost_id = :invoice_id
)
where cost_id = :invoice_id
"
# ---------------------------------------------------------------
# Payments list
# ---------------------------------------------------------------
...
...
@@ -184,7 +200,8 @@ where
<input type=submit name=del value=
\"
Del
\"
>
</td>
</tr>
</table>
\n
"
</table>
</form>
\n
"
}
# ---------------------------------------------------------------
...
...
@@ -319,6 +336,12 @@ append item_html "
<td valign=top>Payment Method:</td>
<td valign=top colspan=
[
expr
$colspan-1
]
>
$invoice
_payment_method_desc</td>
</tr>
<tr>
<td valign=top>Note:</td>
<td valign=top colspan=
[
expr
$colspan-1
]
>
<pre><span style=
\"
font-family: verdana, arial, helvetica, sans-serif
\"
>
$cost
_note</font></pre>
</td>
</tr>
"
...
...
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