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
40c83011
Commit
40c83011
authored
Feb 02, 2024
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added InterCo Bill document type
parent
fe9d4bea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
new-2.tcl
www/new-2.tcl
+5
-1
view.tcl
www/view.tcl
+3
-2
No files found.
www/new-2.tcl
View file @
40c83011
...
...
@@ -69,7 +69,11 @@ set invoice_or_quote_p [expr [im_category_is_a $cost_type_id [im_cost_type_invoi
ns_log Notice
"intranet-invoices/new-2: invoice_or_quote_p=
$invoice
_or_quote_p"
# Invoices and Bills have a "Payment Terms" field.
set
invoice_or_bill_p
[
expr
[
im_category_is_a
$cost
_type_id
[
im_cost_type_invoice
]]
||
[
im_category_is_a
$cost
_type_id
[
im_cost_type_bill
]]]
set
invoice_or_bill_p
[
expr
\
[
im_category_is_a
$cost
_type_id
[
im_cost_type_invoice
]]
||
\
[
im_category_is_a
$cost
_type_id
[
im_cost_type_bill
]]
||
\
[
im_category_is_a
$cost
_type_id
[
im_cost_type_interco_bill
]]
\
]
ns_log Notice
"intranet-invoices/new-2: invoice_or_bill_p=
$invoice
_or_bill_p"
if
{
$invoice
_or_quote_p
}
{
...
...
www/view.tcl
View file @
40c83011
...
...
@@ -118,6 +118,7 @@ set cost_type_id [db_string cost_type_id "select cost_type_id from im_costs wher
set
document_quote_p
[
im_category_is_a
$cost
_type_id
[
im_cost_type_quote
]]
set
document_invoice_p
[
im_category_is_a
$cost
_type_id
[
im_cost_type_invoice
]]
set
document_bill_p
[
im_category_is_a
$cost
_type_id
[
im_cost_type_bill
]]
set
document_interco_bill_p
[
im_category_is_a
$cost
_type_id
[
im_cost_type_interco_bill
]]
set
document_po_p
[
im_category_is_a
$cost
_type_id
[
im_cost_type_po
]]
set
document_delnote_p
[
im_category_is_a
$cost
_type_id
[
im_cost_type_delivery_note
]]
...
...
@@ -259,7 +260,7 @@ set invoice_cost_type_id [im_cost_type_invoice]
set
bill_cost_type_id
[
im_cost_type_bill
]
# Invoices and Bills have a "Payment Terms" field.
set
invoice_or_bill_p
[
expr
$document
_invoice_p ||
$document
_bill_p
]
set
invoice_or_bill_p
[
expr
$document
_invoice_p ||
$document
_bill_p
|
$document
_interco_bill_p
]
# CostType for "Generate Invoice from Quote" or "Generate Bill from PO"
set
target_cost_type_id
""
...
...
@@ -1252,7 +1253,7 @@ set note_html "
"
set terms_html ""
if {
$document
_invoice_p ||
$document
_bill_p} {
if {
$document
_invoice_p ||
$document
_bill_p
||
$document
_interco_bill_p
} {
set terms_html
[
concat
$payment
_terms_html
$payment
_method_html
]
}
append terms_html "
$canned
_note_html
$note
_html
"
...
...
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