1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #4056 from beganovich/v2-show-gateway-fees-on-product-table

PDFs: Show gateway fess as invoice item
This commit is contained in:
David Bomba 2020-09-11 19:10:26 +10:00 committed by GitHub
commit 6e94d4460e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -592,11 +592,15 @@ trait MakesInvoiceValues
foreach ($items as $key => $item) {
if ($table_type == '$product' && $item->type_id != 1) {
continue;
if ($item->type_id != 4) {
continue;
}
}
if ($table_type == '$task' && $item->type_id != 2) {
continue;
if ($item->type_id != 4) {
continue;
}
}
$data[$key][$table_type.'.product_key'] = $item->product_key;