Revision 3f93bd6c
Von Johannes Grassler vor mehr als 1 Jahr hinzugefügt
SL/Controller/ZUGFeRD.pm | ||
---|---|---|
167 | 167 |
|
168 | 168 |
$vendor = find_vendor($metadata{'ustid'}, $metadata{'taxnumber'}); |
169 | 169 |
|
170 |
die t8("Please add a valid VAT ID or tax number for this vendor: #1", $metadata{'vendor_name'}) unless $vendor; |
|
170 |
die t8("Vendor with VAT ID (#1) and/or tax ID (#2) not found. Please check if the vendor " . |
|
171 |
"#3 exists and whether it has the correct tax ID/VAT ID." , |
|
172 |
$metadata{'ustid'}, |
|
173 |
$metadata{'taxnumber'}, |
|
174 |
$metadata{'vendor_name'}, |
|
175 |
) unless $vendor; |
|
171 | 176 |
|
172 | 177 |
|
173 | 178 |
# Create a record template for this imported invoice |
... | ... | |
216 | 221 |
); |
217 | 222 |
|
218 | 223 |
$template_ap->assign_attributes( |
219 |
template_name => "Faktur-X/ZUGFeRD/XRechnung Import $vendor->name, $invnumber",
|
|
224 |
template_name => t8("Faktur-X/ZUGFeRD/XRechnung import #1, #2", $vendor->name, $invnumber),
|
|
220 | 225 |
template_type => 'ap_transaction', |
221 | 226 |
direct_debit => $metadata{'direct_debit'}, |
222 | 227 |
notes => "Faktur-X/ZUGFeRD/XRechnung Import. Type: $metadata{'type'}\nIBAN: " . $ibanmessage, |
... | ... | |
248 | 253 |
# be sufficient for that to happen), grab the first tax fitting the default |
249 | 254 |
# category, just like the AP form would do it for manual entry. |
250 | 255 |
if ( scalar @{$taxes} == 0 ) { |
251 |
$taxes = SL::D::ManagerTax->get_all(
|
|
256 |
$taxes = SL::DB::Manager::Tax->get_all(
|
|
252 | 257 |
where => [ chart_categories => { like => '%' . $default_ap_amount_chart->category . '%' } ], |
253 | 258 |
); |
254 | 259 |
} |
Auch abrufbar als: Unified diff
ZUGFeRD-Import: verschiedene behoben