Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
booni3 committed Jul 13, 2021
1 parent 8476f15 commit 985d310
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DTO/ShipmentCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,17 +302,17 @@ protected function invoice(): array
return $this->invoice;
}

public function setFreightCost($freightCost) {
$this->additionalCharges['freight_cost'] = $freightCost;
public function setFreightInvoiceCharge($freightCost) {
$this->additionalCharges['freight_invoice_charge'] = $freightCost;
}

protected function additionalCharges(): array
{
$array = [];

if(isset($this->additionalCharges['freight_cost'])){
if(isset($this->additionalCharges['freight_invoice_charge'])){
$array[] = [
'value' => $this->additionalCharges['freight_cost'],
'value' => $this->additionalCharges['freight_invoice_charge'],
'typeCode' => 'freight'
];
}
Expand Down

0 comments on commit 985d310

Please sign in to comment.