Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ac3cc36
Backport changes from Fortytools
mnin Jan 31, 2025
9012769
Move ALLOWED_MIME_TYPES constant
mnin Feb 5, 2025
5d2e258
Merge remote-tracking branch 'upstream/main'
mnin Apr 9, 2025
13cf3ac
introduce invoice_type
Akise17 Apr 22, 2025
cf6aa80
change value of ActualDeliverySupplyChainEvent
Akise17 Jun 17, 2025
6d0e3dc
remove empty element
Akise17 Jun 17, 2025
0d0957e
remove empty element
Akise17 Jun 17, 2025
750ae96
remove empty element
Akise17 Jun 17, 2025
7da4b6a
change present
Akise17 Jun 17, 2025
690278e
set default value for invoice type
Akise17 Jun 18, 2025
32c0016
.
Akise17 Jun 19, 2025
3a34ca7
.
Akise17 Jun 19, 2025
c003d7a
address BG-3 Warning and gross price error
Akise17 Jun 20, 2025
28e20b2
.
Akise17 Jun 20, 2025
cf7bfe2
using amount instead gross_based flag
Akise17 Jun 24, 2025
3a4b9ab
.
Akise17 Jun 24, 2025
e529ae1
add new attribute delivery_date
Akise17 Jul 9, 2025
7af08d9
fix test
Akise17 Jul 9, 2025
d8b51ad
add condition to delivery date
Akise17 Jul 14, 2025
9921063
handle gross_amount
Akise17 Jul 25, 2025
63b3578
handle gross_amount
Akise17 Jul 25, 2025
571ab83
introduce new blank? method to make checking for blank values easier
bigsolom Jul 30, 2025
946e9f7
remove comment
bigsolom Jul 30, 2025
3562a80
introduce present? as well
bigsolom Jul 30, 2025
587d5a4
use present?
bigsolom Jul 30, 2025
927c543
Merge pull request #9 from fortytools/feature/introduce-blank
bigsolom Jul 31, 2025
752c24e
Merge pull request #8 from fortytools/feature/make_type_code_configur…
Akise17 Jul 31, 2025
89be24d
rename attribute
Akise17 Aug 5, 2025
1c44e61
.
Akise17 Aug 5, 2025
486ebe6
Merge pull request #10 from fortytools/feature/make_type_code_configu…
Akise17 Aug 7, 2025
fe9d369
Merge branch 'upstream_main' into sync_upstream_aug_25
bigsolom Aug 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
.
  • Loading branch information
Akise17 committed Aug 5, 2025
commit 1c44e6164682e1e179f5b26394ce2347f351888a
4 changes: 2 additions & 2 deletions lib/secretariat/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ def to_xml(version: 1, validate: true, mode: :zugferd)
Helpers.currency_element(xml, 'ram', 'DuePayableAmount', due_amount, currency_code, add_currency: version == 1)
end

if invoice_reference_id && invoice_reference_date
if invoice_reference_number && invoice_reference_date
invoice_reference = by_version(version, 'InvoiceReferencedDocument', 'InvoiceReferencedDocument')
xml['ram'].send(invoice_reference) do
xml['ram'].IssuerAssignedID invoice_reference_id
xml['ram'].IssuerAssignedID invoice_reference_number
xml['ram'].FormattedIssueDateTime do
xml['qdt'].DateTimeString(format: '102') do
xml.text(invoice_reference_date.strftime('%Y%m%d'))
Expand Down