We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dfb37c9 + 58c2ffc commit 9054456Copy full SHA for 9054456
1 file changed
src/Delivery/NovaPoshtaApi2.php
@@ -918,8 +918,10 @@ protected function checkInternetDocumentParams(array &$params)
918
empty($params['PayerType']) and $params['PayerType'] = 'Recipient';
919
empty($params['SeatsAmount']) and $params['SeatsAmount'] = '1';
920
empty($params['CargoType']) and $params['CargoType'] = 'Cargo';
921
- empty($params['VolumeGeneral']) and $params['VolumeGeneral'] = '0.0004';
922
- empty($params['VolumeWeight']) and $params['VolumeWeight'] = $params['Weight'];
+ if($params['CargoType'] != 'Documents') {
+ empty($params['VolumeGeneral']) and $params['VolumeGeneral'] = '0.0004';
923
+ empty($params['VolumeWeight']) and $params['VolumeWeight'] = $params['Weight'];
924
+ }
925
}
926
927
/**
0 commit comments