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
37a6790b
Commit
37a6790b
authored
Dec 11, 2007
by
eicom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- working now
parent
2ab9fd38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
intranet-ubl-procs.tcl
tcl/intranet-ubl-procs.tcl
+8
-6
No files found.
tcl/intranet-ubl-procs.tcl
View file @
37a6790b
...
...
@@ -52,6 +52,7 @@ namespace eval im_ubl {
}
{
set export_path
[
parameter::get_from_package_key -package_key
"intranet-ubl"
-parameter
"UblExportPathUnix"
-default
"/web/projop/filestorage/ubl"
]
set converter_proc
[
parameter::get_from_package_key -package_key
"intranet-ubl"
-parameter
"UblExportConverterProc"
-default
"invoice2ubl"
]
set max_invoices
[
parameter::get_from_package_key -package_key
"intranet-ubl"
-parameter
"UblExportMaxInvoices"
-default 500
]
set invoices_sql
"
select i.invoice_id,
...
...
@@ -64,7 +65,7 @@ namespace eval im_ubl {
and c.cost_type_id =
[
im_cost_type_invoice
]
and c.ubl_exported_p = 'f'
order by invoice_id DESC
LIMIT
3
LIMIT
:max_invoices
"
set files_exported 0
...
...
@@ -420,6 +421,7 @@ namespace eval im_ubl {
set invoice_items_sql
"
select
i.*,
i.item_id as invoice_item_id,
p.*,
im_category_from_id(i.item_type_id) as item_type,
im_category_from_id(i.item_uom_id) as item_uom,
...
...
@@ -453,17 +455,17 @@ namespace eval im_ubl {
<cac:BuyersLineID>
$ctr
</cac:BuyersLineID>
</cac:OrderLineReference>
<cac:Item>
<cbc:Description>
$item
_name
</cbc:Description>
<cbc:Description>
[
ns_quotehtml
$item
_name
]
</cbc:Description>
<cac:BuyersItemIdentification>
<cac:ID>
$
ctr
</cac:ID>
<cac:ID>
$
invoice
_item_id
</cac:ID>
</cac:BuyersItemIdentification>
<cac:SellersItemIdentification>
<cac:ID>
32145-12
</cac:ID>
<cac:ID>
$invoice
_item_id
</cac:ID>
</cac:SellersItemIdentification>
<cac:BasePrice>
<cbc:PriceAmount amountCurrencyCodeListVersionID=
\"
0.3
\"
amountCurrencyID=
\"
$currency
\"
>
$price
_per_unit_pretty</cbc:PriceAmount>
amountCurrencyID=
\"
$currency
\"
>
$price
_per_unit_pretty
</cbc:PriceAmount>
</cac:BasePrice>
</cac:Item>
</cac:
${document_type}
Line>"
...
...
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