Skip to content

Commit

Permalink
Added descriptive prefix for adjustment line items.
Browse files Browse the repository at this point in the history
  • Loading branch information
Saboteur777 committed Aug 19, 2020
1 parent 718ca52 commit 4b1ac1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/services/PayloadService.php
Expand Up @@ -185,7 +185,7 @@ public function createShippingAndDiscountAdjustmentItems(Order $order)

foreach ($discountAdjustments as $adjustment) {
$adjustments[] = [
'description' => (string) $adjustment->name,
'description' => (string) Craft::t('billingo', 'Discount: ') . $adjustment->name,
'item_comment' => (string) $adjustment->description,
'qty' => (float) 1.0,
'net_unit_price' => $adjustment->amount,
Expand All @@ -196,7 +196,7 @@ public function createShippingAndDiscountAdjustmentItems(Order $order)

foreach ($shippingAdjustments as $adjustment) {
$adjustments[] = [
'description' => (string) $adjustment->name,
'description' => (string) Craft::t('billingo', 'Shipping: ') . $adjustment->name,
'item_comment' => (string) $adjustment->description,
'qty' => (float) 1.0,
'net_unit_price' => $adjustment->amount,
Expand Down
5 changes: 4 additions & 1 deletion src/translations/hu/billingo.php
Expand Up @@ -76,5 +76,8 @@

'Creating Invoice in Billingo.' => 'Számla létrehozása a Billingo-ban.',
'Downloading invoice PDF from Billingo.' => 'Számla PDF letöltése Billingo-ból.',
'Stornoing Invoice in Billingo.' => 'Számla sztornózása Billingo-ban.'
'Stornoing Invoice in Billingo.' => 'Számla sztornózása Billingo-ban.',

'Shipping: ' => 'Szállítás: ',
'Discount: ' => 'Kedvezmény: '
];

0 comments on commit 4b1ac1c

Please sign in to comment.