<?php
$aData = array(
  'user' =>
  array(
    'oxactive' => 1,
    'oxusername' => 'databomb_user_20',
  ),
  'articles' =>
  array(
    0 =>
    array(
      'oxid' => '586166e9423662ef5cc5f36c9821b',
      'oxprice' => 822.29,
      'oxvat' => 10,
      'amount' => 255,
    ),
    1 =>
    array(
      'oxid' => '119e0e3aecbcfe0889694c52c815b',
      'oxprice' => 910.65,
      'oxvat' => 17,
      'amount' => 737,
    ),
    2 =>
    array(
      'oxid' => '67317d5e822b0536d2265470a0e59',
      'oxprice' => 263.09,
      'oxvat' => 17,
      'amount' => 731,
    ),
    3 =>
    array(
      'oxid' => '6e8e79736b408a4e456c7a501bf60',
      'oxprice' => 293.37,
      'oxvat' => 17,
      'amount' => 986,
    ),
    4 =>
    array(
      'oxid' => '78f863e122ad9207083eadfa4e721',
      'oxprice' => 726.4,
      'oxvat' => 17,
      'amount' => 245,
    ),
    5 =>
    array(
      'oxid' => '09d3600391e4bae86ba41f1f9c06d',
      'oxprice' => 410.57,
      'oxvat' => 10,
      'amount' => 35,
    ),
    6 =>
    array(
      'oxid' => '0cafec53dc97f421104b6611e5654',
      'oxprice' => 510.42,
      'oxvat' => 17,
      'amount' => 348,
    ),
    7 =>
    array(
      'oxid' => 'd34524a3c18c0c47660a0ee666693',
      'oxprice' => 21.3,
      'oxvat' => 10,
      'amount' => 444,
    ),
    8 =>
    array(
      'oxid' => 'ae886c76e63a4b8867a80c2fcf5c8',
      'oxprice' => 992.42,
      'oxvat' => 17,
      'amount' => 476,
    ),
    9 =>
    array(
      'oxid' => '057ef0a7993871e7ef04f2084c2c3',
      'oxprice' => 840.96,
      'oxvat' => 17,
      'amount' => 36,
    ),
    10 =>
    array(
      'oxid' => '960a3d2ded5c4049f3e3da734b1c9',
      'oxprice' => 896.91,
      'oxvat' => 17,
      'amount' => 621,
    ),
    11 =>
    array(
      'oxid' => '200b466e9bdaab32d7eae9cfd22a8',
      'oxprice' => 432.98,
      'oxvat' => 17,
      'amount' => 876,
    ),
    12 =>
    array(
      'oxid' => '8e5f46899961e819689873ef31975',
      'oxprice' => 679.25,
      'oxvat' => 10,
      'amount' => 547,
    ),
    13 =>
    array(
      'oxid' => '85b9d89cd344ba1476c26eee98a4d',
      'oxprice' => 78.96,
      'oxvat' => 17,
      'amount' => 148,
    ),
    14 =>
    array(
      'oxid' => '9175fcb6b4553f345153edebf6bcf',
      'oxprice' => 334.95,
      'oxvat' => 10,
      'amount' => 819,
    ),
  ),
  'costs' =>
  array(
    'wrapping' =>
    array(
      0 =>
      array(
        'oxtype' => 'WRAP',
        'oxprice' => 98,
        'oxactive' => 1,
        'oxarticles' =>
        array(
          0 => '586166e9423662ef5cc5f36c9821b',
          1 => '119e0e3aecbcfe0889694c52c815b',
          2 => '67317d5e822b0536d2265470a0e59',
          3 => '6e8e79736b408a4e456c7a501bf60',
          4 => '78f863e122ad9207083eadfa4e721',
        ),
      ),
      1 =>
      array(
        'oxtype' => 'WRAP',
        'oxprice' => 46,
        'oxactive' => 1,
        'oxarticles' =>
        array(
          0 => '586166e9423662ef5cc5f36c9821b',
          1 => '119e0e3aecbcfe0889694c52c815b',
          2 => '67317d5e822b0536d2265470a0e59',
          3 => '6e8e79736b408a4e456c7a501bf60',
          4 => '78f863e122ad9207083eadfa4e721',
        ),
      ),
      2 =>
      array(
        'oxtype' => 'WRAP',
        'oxprice' => 49,
        'oxactive' => 1,
        'oxarticles' =>
        array(
          0 => '586166e9423662ef5cc5f36c9821b',
          1 => '119e0e3aecbcfe0889694c52c815b',
          2 => '67317d5e822b0536d2265470a0e59',
          3 => '6e8e79736b408a4e456c7a501bf60',
          4 => '78f863e122ad9207083eadfa4e721',
        ),
      ),
    ),
    'payment' =>
    array(
      0 =>
      array(
        'oxaddsumtype' => 'abs',
        'oxaddsum' => 50,
        'oxactive' => 1,
        'oxchecked' => 1,
        'oxfromamount' => 0,
        'oxtoamount' => 1000000,
      ),
      1 =>
      array(
        'oxaddsumtype' => 'abs',
        'oxaddsum' => 81,
        'oxactive' => 1,
        'oxchecked' => 1,
        'oxfromamount' => 0,
        'oxtoamount' => 1000000,
      ),
      2 =>
      array(
        'oxaddsumtype' => 'abs',
        'oxaddsum' => 90,
        'oxactive' => 1,
        'oxchecked' => 1,
        'oxfromamount' => 0,
        'oxtoamount' => 1000000,
      ),
    ),
    'delivery' =>
    array(
      0 =>
      array(
        'oxaddsumtype' => 'abs',
        'oxaddsum' => 60,
        'oxactive' => 1,
        'oxdeltype' => 'p',
        'oxfinalize' => 0,
        'oxparam' => 0,
        'oxparamend' => 999999999,
        'oxfixed' => 0,
      ),
      1 =>
      array(
        'oxaddsumtype' => 'abs',
        'oxaddsum' => 90,
        'oxactive' => 1,
        'oxdeltype' => 'p',
        'oxfinalize' => 0,
        'oxparam' => 0,
        'oxparamend' => 999999999,
        'oxfixed' => 0,
      ),
      2 =>
      array(
        'oxaddsumtype' => 'abs',
        'oxaddsum' => 64,
        'oxactive' => 1,
        'oxdeltype' => 'p',
        'oxfinalize' => 0,
        'oxparam' => 0,
        'oxparamend' => 999999999,
        'oxfixed' => 0,
      ),
    ),
  ),
  'options' =>
  array(
    'config' =>
    array(
      'blEnterNetPrice' => false,
      'blShowNetPrice' => false,
    ),
    'activeCurrencyRate' => 1,
  ),
  'expected' =>
  array(
    'articles' =>
    array(
      '586166e9423662ef5cc5f36c9821b' =>
      array(
        0 => '822,29',
        1 => '209.683,95',
      ),
      '119e0e3aecbcfe0889694c52c815b' =>
      array(
        0 => '910,65',
        1 => '671.149,05',
      ),
      '67317d5e822b0536d2265470a0e59' =>
      array(
        0 => '263,09',
        1 => '192.318,79',
      ),
      '6e8e79736b408a4e456c7a501bf60' =>
      array(
        0 => '293,37',
        1 => '289.262,82',
      ),
      '78f863e122ad9207083eadfa4e721' =>
      array(
        0 => '726,40',
        1 => '177.968,00',
      ),
      '09d3600391e4bae86ba41f1f9c06d' =>
      array(
        0 => '410,57',
        1 => '14.369,95',
      ),
      '0cafec53dc97f421104b6611e5654' =>
      array(
        0 => '510,42',
        1 => '177.626,16',
      ),
      'd34524a3c18c0c47660a0ee666693' =>
      array(
        0 => '21,30',
        1 => '9.457,20',
      ),
      'ae886c76e63a4b8867a80c2fcf5c8' =>
      array(
        0 => '992,42',
        1 => '472.391,92',
      ),
      '057ef0a7993871e7ef04f2084c2c3' =>
      array(
        0 => '840,96',
        1 => '30.274,56',
      ),
      '960a3d2ded5c4049f3e3da734b1c9' =>
      array(
        0 => '896,91',
        1 => '556.981,11',
      ),
      '200b466e9bdaab32d7eae9cfd22a8' =>
      array(
        0 => '432,98',
        1 => '379.290,48',
      ),
      '8e5f46899961e819689873ef31975' =>
      array(
        0 => '679,25',
        1 => '371.549,75',
      ),
      '85b9d89cd344ba1476c26eee98a4d' =>
      array(
        0 => '78,96',
        1 => '11.686,08',
      ),
      '9175fcb6b4553f345153edebf6bcf' =>
      array(
        0 => '334,95',
        1 => '274.324,05',
      ),
    ),
    'totals' =>
    array(
      'vats' =>
      array(
        10 => '79.944,08',
        17 => '429.932,76',
      ),
      'wrapping' =>
      array(
        'brutto' => '144.746,00',
        'netto' => false,
        'vat' => false,
      ),
      'delivery' =>
      array(
        'brutto' => '214,00',
        'netto' => '182,91',
        'vat' => '31,09',
      ),
      'payment' =>
      array(
        'brutto' => '50,00',
        'netto' => '42,74',
        'vat' => '7,26',
      ),
      'voucher' =>
      array(
        'brutto' => '0,00',
      ),
      'totalNetto' => '3.328.457,03',
      'totalBrutto' => '3.838.333,87',
      'grandTotal' => '3.983.343,87',
    ),
  ),
);
