Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-ubl
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-ubl
Commits
97ec8829
Commit
97ec8829
authored
Dec 14, 2007
by
eicom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added parameters to determine the buyer/seller ID
parent
37a6790b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
intranet-ubl-procs.tcl
tcl/intranet-ubl-procs.tcl
+13
-5
No files found.
tcl/intranet-ubl-procs.tcl
View file @
97ec8829
...
...
@@ -85,7 +85,9 @@ namespace eval im_ubl {
if
{
""
!=
$xml
}
{
db_dml invoice_written
"
update im_costs set ubl_exported_p = 't'
update im_costs set
ubl_exported_p = 't',
read_only_p = 't'
where cost_id = :invoice_id
"
}
...
...
@@ -126,12 +128,18 @@ namespace eval im_ubl {
# ---------------------------------------------------------------
# Get information about the financial document
(
"invoice"
)
# ---------------------------------------------------------------
set buyer_id_sql
[
parameter::get_from_package_key -package_key
"intranet-ubl"
-parameter
"BuyerIdSqlExpression"
-default
"cust.company_id"
]
set seller_id_sql
[
parameter::get_from_package_key -package_key
"intranet-ubl"
-parameter
"SellerIdSqlExpression"
-default
"prov.company_id"
]
if
{
!
[
db_0or1row project_info
"
select c.*,
i.*,
paymeth.category_description as payment_method_desc,
$buyer
_id_sql as buyer_id,
$seller
_id_sql as seller_id,
cust.company_name as customer_name,
cust.main_office_id as customer_main_office_id,
i.invoice_office_id as invoice_office_id,
...
...
@@ -311,11 +319,11 @@ namespace eval im_ubl {
$main
_node appendXML
"<ID>
$cost
_name</ID>"
$main
_node appendXML
"<cbc:IssueDate>
$issue
_date_pretty</cbc:IssueDate>"
$main
_node appendXML
"<TaxPointDate>
$issue
_date_pretty</TaxPointDate>"
$main
_node appendXML
"
<cac:OrderReference>
<cac:BuyersID>
$
custom
er
_id</cac:BuyersID>
<cac:SellersID>
$
provid
er
_id</cac:SellersID>
<cac:BuyersID>
$
buy
er
_id</cac:BuyersID>
<cac:SellersID>
$
sell
er
_id</cac:SellersID>
<cbc:IssueDate>
$issue
_date_pretty</cbc:IssueDate>
</cac:OrderReference>"
...
...
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