Advertisement
Guest User

sales

a guest
Nov 20th, 2017
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 77.46 KB | None | 0 0
  1. {
  2.     "_id": "2jHfprtvLreWXdvkH",
  3.     "SaleBy": {
  4.         "undefined": {
  5.             "isOnCommission": false,
  6.             "percentCommission": 0
  7.         }
  8.     },
  9.     "Date": 1.488284983962e+12,
  10.     "CustomerID": 3923,
  11.     "Customer": {
  12.         "_id": {
  13.             "$oid": "57adcc6381c291067c06c186"
  14.         },
  15.         "Firstname": "D.a.",
  16.         "Lastname": "Gower"
  17.     },
  18.     "Address": "20 Alamain Gardens, Dartford",
  19.     "DeliveryAddress": "20 Alamain Gardens, Dartford",
  20.     "Payments": [
  21.         {
  22.             "Date": 1.488284981238e+12,
  23.             "Amount": 430,
  24.             "Type": "CreditCard"
  25.         }
  26.     ],
  27.     "SoldItems": [
  28.         {
  29.             "_id": "t2pHaqc5rgF9dJeWW",
  30.             "ProductID": 1222,
  31.             "Product": {
  32.                 "_id": "FC6QEqigw9zB23oLd",
  33.                 "Name": "Test Product"
  34.             },
  35.             "Manufacturer": {
  36.                 "_id": "5FuGfdQcbGhNX8u8M",
  37.                 "Name": "TEST"
  38.             },
  39.             "Model": "test",
  40.             "ManufacturerID": "",
  41.             "Status": "InStock",
  42.             "Notes": "here are the notes!",
  43.             "modals": {
  44.                 "productsLookup": {
  45.                     "show": false
  46.                 }
  47.             },
  48.             "BookedInDate": "2017-02-27",
  49.             "TradePrice": 234,
  50.             "RRP": 432,
  51.             "SerialNumber": "124efcd123",
  52.             "StockID": 16,
  53.             "Barcode": "test1234",
  54.             "ManufacturerName": "Test",
  55.             "added": true,
  56.             "SalePrice": 432
  57.         }
  58.     ],
  59.     "Notes": "test into",
  60.     "ProductNotes": "",
  61.     "PriceTotal": "432.00",
  62.     "SalesID": 30
  63. }
  64. {
  65.     "_id": "2o7pbkC9ffC6hJygf",
  66.     "SaleBy": {
  67.         "1": {
  68.             "isOnCommission": false,
  69.             "percentCommission": 0
  70.         },
  71.         "2": {
  72.             "isOnCommission": false,
  73.             "percentCommission": 0
  74.         },
  75.         "7": {
  76.             "isOnCommission": false,
  77.             "percentCommission": 0
  78.         }
  79.     },
  80.     "Date": 1.488539581184e+12,
  81.     "CustomerID": null,
  82.     "Customer": {
  83.         "_id": "MC9krHzhDoMPoCnHn",
  84.         "Firstname": "Neil",
  85.         "Lastname": "Haffenden",
  86.         "Email": "neil_haffenden@yahoo.com"
  87.     },
  88.     "Address": "",
  89.     "DeliveryAddress": "",
  90.     "Payments": [
  91.         {
  92.             "Date": 1.48853957177e+12,
  93.             "Amount": 300,
  94.             "Type": "CreditCard"
  95.         },
  96.         {
  97.             "Date": 1.488539578829e+12,
  98.             "Amount": 32,
  99.             "Type": "CreditCard"
  100.         }
  101.     ],
  102.     "SoldItems": [
  103.         {
  104.             "_id": "t2pHaqc5rgF9dJeWW",
  105.             "ProductID": 1222,
  106.             "Product": {
  107.                 "_id": "FC6QEqigw9zB23oLd",
  108.                 "Name": "Test Product"
  109.             },
  110.             "Manufacturer": {
  111.                 "_id": "5FuGfdQcbGhNX8u8M",
  112.                 "Name": "TEST"
  113.             },
  114.             "Model": "test",
  115.             "ManufacturerID": "",
  116.             "Status": "InStock",
  117.             "Notes": "here are the notes!",
  118.             "modals": {
  119.                 "productsLookup": {
  120.                     "show": false
  121.                 }
  122.             },
  123.             "BookedInDate": "2017-02-27",
  124.             "TradePrice": 234,
  125.             "RRP": 432,
  126.             "SerialNumber": "124efcd123",
  127.             "StockID": 16,
  128.             "Barcode": "test1234",
  129.             "ManufacturerName": "Test",
  130.             "added": true,
  131.             "SalePrice": 432
  132.         }
  133.     ],
  134.     "Notes": "Test",
  135.     "ProductNotes": "",
  136.     "PriceTotal": "332.00",
  137.     "SalesID": 58
  138. }
  139. {
  140.     "_id": "3m5FkSgTyF87gkADz",
  141.     "SaleBy": {
  142.         "undefined": {
  143.             "isOnCommission": false,
  144.             "percentCommission": 0
  145.         }
  146.     },
  147.     "Date": 1.485373305428e+12,
  148.     "CustomerID": 2716,
  149.     "Customer": {
  150.         "_id": "57adcc6381c291067c06bcd8",
  151.         "Firstname": "",
  152.         "Lastname": "Mathews",
  153.         "Email": ""
  154.     },
  155.     "Address": "196 Hythe Road, Ashford",
  156.     "DeliveryAddress": "196 Hythe Road, Ashford",
  157.     "Payments": [
  158.         {
  159.             "Date": 1.485373302535e+12,
  160.             "Amount": 1799,
  161.             "Type": "CreditCard"
  162.         }
  163.     ],
  164.     "SoldItems": [
  165.         {
  166.             "StockID": 13,
  167.             "SalePrice": 1799
  168.         }
  169.     ],
  170.     "Notes": "",
  171.     "ProductNotes": "",
  172.     "PriceTotal": "1799.00",
  173.     "SalesID": 5
  174. }
  175. {
  176.     "_id": "3ntgeRvYG8PycFMdY",
  177.     "SaleBy": {
  178.         "undefined": {
  179.             "isOnCommission": false,
  180.             "percentCommission": 0
  181.         }
  182.     },
  183.     "Date": 1.488284485087e+12,
  184.     "CustomerID": 3923,
  185.     "Customer": {
  186.         "_id": {
  187.             "$oid": "57adcc6381c291067c06c186"
  188.         },
  189.         "Firstname": "D.a.",
  190.         "Lastname": "Gower"
  191.     },
  192.     "Address": "20 Alamain Gardens, Dartford",
  193.     "DeliveryAddress": "20 Alamain Gardens, Dartford",
  194.     "Payments": [
  195.         {
  196.             "Date": 1.488284483061e+12,
  197.             "Amount": 420,
  198.             "Type": "CreditCard"
  199.         }
  200.     ],
  201.     "SoldItems": [
  202.         {
  203.             "_id": "t2pHaqc5rgF9dJeWW",
  204.             "ProductID": 1222,
  205.             "Product": {
  206.                 "_id": "FC6QEqigw9zB23oLd",
  207.                 "Name": "Test Product"
  208.             },
  209.             "Manufacturer": {
  210.                 "_id": "5FuGfdQcbGhNX8u8M",
  211.                 "Name": "TEST"
  212.             },
  213.             "Model": "test",
  214.             "ManufacturerID": "",
  215.             "Status": "InStock",
  216.             "Notes": "here are the notes!",
  217.             "modals": {
  218.                 "productsLookup": {
  219.                     "show": false
  220.                 }
  221.             },
  222.             "BookedInDate": "2017-02-27",
  223.             "TradePrice": 234,
  224.             "RRP": 432,
  225.             "SerialNumber": "124efcd123",
  226.             "StockID": 16,
  227.             "Barcode": "test1234",
  228.             "ManufacturerName": "Test",
  229.             "added": true,
  230.             "SalePrice": 432
  231.         }
  232.     ],
  233.     "Notes": "test info",
  234.     "ProductNotes": "",
  235.     "PriceTotal": "432.00",
  236.     "SalesID": 29
  237. }
  238. {
  239.     "_id": "6BrWHsefiSwKnbooe",
  240.     "SaleBy": {
  241.         "1": {
  242.             "isOnCommission": false,
  243.             "percentCommission": 0
  244.         },
  245.         "2": {
  246.             "isOnCommission": false,
  247.             "percentCommission": 0
  248.         },
  249.         "7": {
  250.             "isOnCommission": false,
  251.             "percentCommission": 0
  252.         }
  253.     },
  254.     "Date": 1.489581694876e+12,
  255.     "CustomerID": null,
  256.     "Customer": {
  257.         "_id": "MC9krHzhDoMPoCnHn",
  258.         "Firstname": "Neil",
  259.         "Lastname": "Haffenden",
  260.         "Email": "neil_haffenden@yahoo.com"
  261.     },
  262.     "Address": "",
  263.     "DeliveryAddress": "",
  264.     "Payments": [
  265.         {
  266.             "Date": 1.489581692761e+12,
  267.             "Amount": 1000,
  268.             "Type": "Cash"
  269.         }
  270.     ],
  271.     "SoldItems": [
  272.         {
  273.             "_id": "bKwFJAb3DPgR5HpHx",
  274.             "ProductID": 1219,
  275.             "Product": {
  276.                 "_id": "MaAPLqj3rYerP4ngm",
  277.                 "Name": "Wolf"
  278.             },
  279.             "ManufacturerID": "",
  280.             "Manufacturer": {
  281.                 "_id": "",
  282.                 "Name": ""
  283.             },
  284.             "SerialNumber": "123",
  285.             "Status": "Demo",
  286.             "Notes": "In front demo room",
  287.             "modals": {
  288.                 "productsLookup": {
  289.                     "show": false
  290.                 }
  291.             },
  292.             "BookedInDate": "2017-01-25",
  293.             "TradePrice": 404.75,
  294.             "RRP": 1799,
  295.             "StockID": 12,
  296.             "Model": "Wolf",
  297.             "ManufacturerName": "AUDIOQUEST",
  298.             "added": true,
  299.             "SalePrice": 1799
  300.         }
  301.     ],
  302.     "Notes": "",
  303.     "Source": "phone",
  304.     "Deposit": 0,
  305.     "LabourPrice": 10,
  306.     "LabourNotes": "Test labour",
  307.     "ProductNotes": "",
  308.     "PriceTotal": "1779.00",
  309.     "SalesID": 59
  310. }
  311. {
  312.     "_id": "7z8LwrHch7LaKKQTc",
  313.     "SaleBy": {
  314.         "1": {
  315.             "isOnCommission": false,
  316.             "percentCommission": 0
  317.         },
  318.         "2": {
  319.             "isOnCommission": false,
  320.             "percentCommission": 0
  321.         },
  322.         "7": {
  323.             "isOnCommission": false,
  324.             "percentCommission": 0
  325.         }
  326.     },
  327.     "Date": 1.490034280316e+12,
  328.     "CustomerID": 8306,
  329.     "Customer": {
  330.         "_id": {
  331.             "$oid": "57adcc6381c291067c06d28f"
  332.         },
  333.         "Lastname": "Mathews"
  334.     },
  335.     "Address": "198 Hythe Road, Ashford",
  336.     "DeliveryAddress": "198 Hythe Road, Ashford",
  337.     "Payments": [
  338.         {
  339.             "Date": 1.490034272452e+12,
  340.             "Amount": 500,
  341.             "Type": "CreditCard"
  342.         }
  343.     ],
  344.     "SoldItems": [
  345.         {
  346.             "_id": "Cw5gYmSr4gMbNqPEN",
  347.             "ProductID": 1232,
  348.             "Product": {
  349.                 "_id": "",
  350.                 "Name": ""
  351.             },
  352.             "Manufacturer": {
  353.                 "_id": {
  354.                     "$oid": "57c5b0feeafb5b7e37b8dc05"
  355.                 },
  356.                 "Name": "LINN PRODUCTS LTD"
  357.             },
  358.             "Model": "Akurate DSM",
  359.             "ManufacturerID": "",
  360.             "Status": "",
  361.             "Notes": "",
  362.             "modals": {
  363.                 "productsLookup": {
  364.                     "show": false
  365.                 },
  366.                 "wishlist": {
  367.                     "show": false
  368.                 }
  369.             },
  370.             "wishlistCustomer": {},
  371.             "BookedInDate": "2017-03-20",
  372.             "TradePrice": 1000,
  373.             "RRP": 2000,
  374.             "SerialNumber": "123456",
  375.             "StockID": 58,
  376.             "Barcode": "",
  377.             "ManufacturerName": "LINN PRODUCTS LTD",
  378.             "added": true,
  379.             "SalePrice": 2000
  380.         },
  381.         {
  382.             "_id": "72Hb3bRkmHijgaEDM",
  383.             "ProductID": 1096,
  384.             "Product": {
  385.                 "_id": {
  386.                     "$oid": "57c5b137eafb5b7e37b8dff0"
  387.                 },
  388.                 "Name": "JIG 4 LP12 - (G/STONEHOUSE)"
  389.             },
  390.             "Manufacturer": {
  391.                 "_id": "57c5b0feeafb5b7e37b8dc05",
  392.                 "Name": "LINN PRODUCTS LTD"
  393.             },
  394.             "Model": "JIG 4 LP12",
  395.             "ManufacturerID": "",
  396.             "Status": "",
  397.             "Notes": "",
  398.             "modals": {
  399.                 "productsLookup": {
  400.                     "show": false
  401.                 },
  402.                 "wishlist": {
  403.                     "show": false
  404.                 }
  405.             },
  406.             "wishlistCustomer": {},
  407.             "BookedInDate": "2017-03-16",
  408.             "TradePrice": 10,
  409.             "RRP": 12,
  410.             "SerialNumber": "2222222",
  411.             "StockID": 57,
  412.             "Barcode": "",
  413.             "ManufacturerName": "LINN PRODUCTS LTD",
  414.             "added": true,
  415.             "SalePrice": 12
  416.         }
  417.     ],
  418.     "Notes": "",
  419.     "Source": "tillSale",
  420.     "Discount": 0,
  421.     "DiscountReason": "",
  422.     "Deposit": 0,
  423.     "LabourPrice": 0,
  424.     "LabourNotes": "",
  425.     "ProductNotes": "",
  426.     "PriceTotal": "2012.00",
  427.     "SalesID": 65
  428. }
  429. {
  430.     "_id": "9LKcuTr3QhT5xPviq",
  431.     "SaleBy": {
  432.         "1": {
  433.             "isOnCommission": false,
  434.             "percentCommission": 0
  435.         },
  436.         "2": {
  437.             "isOnCommission": false,
  438.             "percentCommission": 0
  439.         },
  440.         "7": {
  441.             "isOnCommission": false,
  442.             "percentCommission": 0
  443.         }
  444.     },
  445.     "Date": 1.491321877305e+12,
  446.     "CustomerID": 7013,
  447.     "Customer": {
  448.         "_id": {
  449.             "$oid": "57adcc6381c291067c06cd82"
  450.         },
  451.         "Lastname": "Rawlings"
  452.     },
  453.     "Address": "1 Upper Park Gate Farm Cottage, Park Lane",
  454.     "DeliveryAddress": "1 Upper Park Gate Farm Cottage, Park Lane",
  455.     "Payments": [
  456.         {
  457.             "Date": 1.491321875183e+12,
  458.             "Amount": 21,
  459.             "Type": "CreditCard"
  460.         }
  461.     ],
  462.     "SoldItems": [
  463.         {
  464.             "_id": "EKZ2v8rk7XPiDJjZF",
  465.             "ProductID": 1233,
  466.             "Product": {
  467.                 "_id": "eAYN4ded8AEJY3cxW",
  468.                 "Name": ""
  469.             },
  470.             "Manufacturer": {
  471.                 "_id": {
  472.                     "$oid": "57c5b0feeafb5b7e37b8dc26"
  473.                 },
  474.                 "Name": "REGA RESEARCH LTD"
  475.             },
  476.             "Model": "Rega White Belt",
  477.             "ManufacturerID": "",
  478.             "Status": "",
  479.             "Notes": "",
  480.             "modals": {
  481.                 "productsLookup": {
  482.                     "show": false
  483.                 },
  484.                 "wishlist": {
  485.                     "show": false
  486.                 }
  487.             },
  488.             "wishlistCustomer": {},
  489.             "BookedInDate": "2017-04-04",
  490.             "TradePrice": 11,
  491.             "RRP": 21,
  492.             "SerialNumber": "return test",
  493.             "StockID": 72,
  494.             "Barcode": "",
  495.             "ManufacturerName": "REGA RESEARCH LTD",
  496.             "added": true,
  497.             "SalePrice": 21
  498.         }
  499.     ],
  500.     "Notes": "",
  501.     "Source": "",
  502.     "Discount": 0,
  503.     "DiscountReason": "",
  504.     "Deposit": 0,
  505.     "LabourPrice": 0,
  506.     "LabourNotes": "",
  507.     "ProductNotes": "",
  508.     "PriceTotal": "21.00",
  509.     "SalesID": 69
  510. }
  511. {
  512.     "_id": "B9kSdWuZXFr58F6dm",
  513.     "SaleBy": {
  514.         "1": {
  515.             "isOnCommission": false,
  516.             "percentCommission": 0
  517.         },
  518.         "2": {
  519.             "isOnCommission": true,
  520.             "percentCommission": 100
  521.         },
  522.         "7": {
  523.             "isOnCommission": false,
  524.             "percentCommission": 0
  525.         }
  526.     },
  527.     "Date": 1.494330143062e+12,
  528.     "CustomerID": 12133,
  529.     "Customer": {
  530.         "_id": "vRGPxZXQkc2dEwhWt",
  531.         "Firstname": "Test",
  532.         "Lastname": "Record",
  533.         "Email": "test@test.com"
  534.     },
  535.     "DeliveryAddress": null,
  536.     "Payments": [
  537.         {
  538.             "Date": 1.488213235049e+12,
  539.             "Amount": 430,
  540.             "Type": "CreditCard"
  541.         },
  542.         {
  543.             "Date": 1.488213254878e+12,
  544.             "Amount": 2,
  545.             "Type": "CreditCard"
  546.         }
  547.     ],
  548.     "SoldItems": [],
  549.     "Notes": "This is a test",
  550.     "ProductNotes": "This is a test",
  551.     "PriceTotal": "0.00",
  552.     "SalesID": 28,
  553.     "Source": "",
  554.     "Discount": 0,
  555.     "DiscountReason": "",
  556.     "LabourPrice": 0,
  557.     "LabourNotes": "",
  558.     "IsRefund": true,
  559.     "RefundAmount": "100",
  560.     "RefundNotes": "This is just a test refund",
  561.     "RefundedItems": [
  562.         {
  563.             "_id": "t2pHaqc5rgF9dJeWW",
  564.             "ProductID": 1222,
  565.             "Product": {
  566.                 "_id": "FC6QEqigw9zB23oLd",
  567.                 "Name": "Test Product"
  568.             },
  569.             "Manufacturer": {
  570.                 "_id": "5FuGfdQcbGhNX8u8M",
  571.                 "Name": "TEST"
  572.             },
  573.             "Model": "test",
  574.             "ManufacturerID": "",
  575.             "Status": "InStock",
  576.             "Notes": "here are the notes!",
  577.             "modals": {
  578.                 "productsLookup": {
  579.                     "show": false
  580.                 }
  581.             },
  582.             "BookedInDate": "2017-02-27",
  583.             "TradePrice": 234,
  584.             "RRP": 432,
  585.             "SerialNumber": "124efcd123",
  586.             "StockID": 16,
  587.             "Barcode": "test1234",
  588.             "ManufacturerName": "Test",
  589.             "SalePrice": 432
  590.         }
  591.     ]
  592. }
  593. {
  594.     "_id": "BWpJviKMecegXTkNL",
  595.     "SaleBy": {
  596.         "1": {
  597.             "isOnCommission": true,
  598.             "percentCommission": 50
  599.         },
  600.         "2": {
  601.             "isOnCommission": true,
  602.             "percentCommission": 50
  603.         },
  604.         "7": {
  605.             "isOnCommission": false,
  606.             "percentCommission": 0
  607.         }
  608.     },
  609.     "Date": 1.488441883637e+12,
  610.     "CustomerID": 12132,
  611.     "Customer": {
  612.         "_id": "m2TCtvmmuMNZiYtDB",
  613.         "Firstname": "test",
  614.         "Lastname": "test",
  615.         "Email": "test@@test.com"
  616.     },
  617.     "Address": "1",
  618.     "DeliveryAddress": "1",
  619.     "Payments": [
  620.         {
  621.             "Date": 1.488441882009e+12,
  622.             "Amount": 234,
  623.             "Type": "CreditCard"
  624.         }
  625.     ],
  626.     "SoldItems": [
  627.         {
  628.             "_id": "x4S4tSecTsJnMzFJr",
  629.             "ProductID": 10,
  630.             "Product": {
  631.                 "_id": "57c5b137eafb5b7e37b8dc48",
  632.                 "Name": "FRAIM BASE/2ST - (D+1LG/MAP)"
  633.             },
  634.             "ManufacturerID": "",
  635.             "Manufacturer": {
  636.                 "_id": "",
  637.                 "Name": ""
  638.             },
  639.             "SerialNumber": "2af",
  640.             "BookedInDate": "2016-09-01",
  641.             "Status": "InStock",
  642.             "Notes": "",
  643.             "TradePrice": 234,
  644.             "RRP": 234,
  645.             "StockID": 4,
  646.             "Model": "FRAIM BASE/2ST",
  647.             "ManufacturerName": "NAIM AUDIO",
  648.             "added": true,
  649.             "SalePrice": 234
  650.         }
  651.     ],
  652.     "Notes": "test",
  653.     "ProductNotes": "",
  654.     "PriceTotal": "234.00",
  655.     "SalesID": 49
  656. }
  657. {
  658.     "_id": "BgcoYmoA7DYXEGGBp",
  659.     "SaleBy": {
  660.         "1": {
  661.             "isOnCommission": false,
  662.             "percentCommission": 0
  663.         },
  664.         "2": {
  665.             "isOnCommission": false,
  666.             "percentCommission": 0
  667.         },
  668.         "7": {
  669.             "isOnCommission": true,
  670.             "percentCommission": 100
  671.         }
  672.     },
  673.     "Date": 1.493800265081e+12,
  674.     "CustomerID": null,
  675.     "Customer": {
  676.         "_id": "4vYZHPmkWWG8cARHS",
  677.         "Firstname": "Danielle",
  678.         "Lastname": "Test",
  679.         "Email": "dani@test.com"
  680.     },
  681.     "DeliveryAddress": null,
  682.     "Payments": [
  683.         {
  684.             "Date": 1.493800260458e+12,
  685.             "Amount": 700,
  686.             "Type": "CreditCard"
  687.         }
  688.     ],
  689.     "SoldItems": [
  690.         {
  691.             "_id": "zyEhuSmXgh3F36Ap3",
  692.             "ProductID": 1222,
  693.             "Product": {
  694.                 "_id": "FC6QEqigw9zB23oLd",
  695.                 "Name": "Test Product"
  696.             },
  697.             "Manufacturer": {
  698.                 "_id": "5FuGfdQcbGhNX8u8M",
  699.                 "Name": "TEST"
  700.             },
  701.             "Model": "test",
  702.             "ManufacturerID": "",
  703.             "Status": "",
  704.             "Notes": "test",
  705.             "modals": {
  706.                 "productsLookup": {
  707.                     "show": false
  708.                 }
  709.             },
  710.             "BookedInDate": "2017-03-02",
  711.             "TradePrice": 765,
  712.             "RRP": 766,
  713.             "SerialNumber": "9856746354657",
  714.             "StockID": 21,
  715.             "Barcode": "test1234",
  716.             "ManufacturerName": "TEST",
  717.             "added": true,
  718.             "SalePrice": 766
  719.         }
  720.     ],
  721.     "Notes": "another recent one",
  722.     "Source": "phone",
  723.     "Discount": 0,
  724.     "DiscountReason": "",
  725.     "Deposit": 0,
  726.     "LabourPrice": 0,
  727.     "LabourNotes": "",
  728.     "ProductNotes": "",
  729.     "PriceTotal": "766.00",
  730.     "SalesID": 73
  731. }
  732. {
  733.     "_id": "ByiA5whgc5kArJ9ay",
  734.     "SaleBy": {
  735.         "1": {
  736.             "isOnCommission": false,
  737.             "percentCommission": 0
  738.         },
  739.         "2": {
  740.             "isOnCommission": false,
  741.             "percentCommission": 0
  742.         },
  743.         "7": {
  744.             "isOnCommission": true,
  745.             "percentCommission": 100
  746.         }
  747.     },
  748.     "Date": 1.486042816413e+12,
  749.     "CustomerID": 12131,
  750.     "Customer": {
  751.         "_id": "WhgcCgE4q2fKphkuR",
  752.         "Firstname": "Geoff",
  753.         "Lastname": "Mathews",
  754.         "Email": "geoff.mathews@btinternet.com"
  755.     },
  756.     "Address": "196",
  757.     "DeliveryAddress": "196",
  758.     "Payments": [],
  759.     "SoldItems": [
  760.         {
  761.             "StockID": 9,
  762.             "SalePrice": 234
  763.         }
  764.     ],
  765.     "Notes": "",
  766.     "ProductNotes": "",
  767.     "PriceTotal": "185.00",
  768.     "SalesID": 6
  769. }
  770. {
  771.     "_id": "BzfsLu34Az7y8c7wY",
  772.     "SaleBy": {
  773.         "undefined": {
  774.             "isOnCommission": false,
  775.             "percentCommission": 0
  776.         }
  777.     },
  778.     "Date": 1.488285617955e+12,
  779.     "CustomerID": 3923,
  780.     "Customer": {
  781.         "_id": {
  782.             "$oid": "57adcc6381c291067c06c186"
  783.         },
  784.         "Firstname": "D.a.",
  785.         "Lastname": "Gower"
  786.     },
  787.     "Address": "20 Alamain Gardens, Dartford",
  788.     "DeliveryAddress": "20 Alamain Gardens, Dartford",
  789.     "Payments": [
  790.         {
  791.             "Date": 1.488285616579e+12,
  792.             "Amount": 132,
  793.             "Type": "CreditCard"
  794.         }
  795.     ],
  796.     "SoldItems": [
  797.         {
  798.             "_id": "t2pHaqc5rgF9dJeWW",
  799.             "ProductID": 1222,
  800.             "Product": {
  801.                 "_id": "FC6QEqigw9zB23oLd",
  802.                 "Name": "Test Product"
  803.             },
  804.             "Manufacturer": {
  805.                 "_id": "5FuGfdQcbGhNX8u8M",
  806.                 "Name": "TEST"
  807.             },
  808.             "Model": "test",
  809.             "ManufacturerID": "",
  810.             "Status": "InStock",
  811.             "Notes": "here are the notes!",
  812.             "modals": {
  813.                 "productsLookup": {
  814.                     "show": false
  815.                 }
  816.             },
  817.             "BookedInDate": "2017-02-27",
  818.             "TradePrice": 234,
  819.             "RRP": 432,
  820.             "SerialNumber": "124efcd123",
  821.             "StockID": 16,
  822.             "Barcode": "test1234",
  823.             "ManufacturerName": "Test",
  824.             "added": true,
  825.             "SalePrice": 432
  826.         }
  827.     ],
  828.     "Notes": "test info",
  829.     "ProductNotes": "",
  830.     "PriceTotal": "432.00",
  831.     "SalesID": 34
  832. }
  833. {
  834.     "_id": "DZAaQ5tyXyDCcuPSb",
  835.     "SaleBy": {
  836.         "undefined": {
  837.             "isOnCommission": false,
  838.             "percentCommission": 0
  839.         }
  840.     },
  841.     "Date": 1.488285063402e+12,
  842.     "CustomerID": 3923,
  843.     "Customer": {
  844.         "_id": {
  845.             "$oid": "57adcc6381c291067c06c186"
  846.         },
  847.         "Firstname": "D.a.",
  848.         "Lastname": "Gower"
  849.     },
  850.     "Address": "20 Alamain Gardens, Dartford",
  851.     "DeliveryAddress": "20 Alamain Gardens, Dartford",
  852.     "Payments": [
  853.         {
  854.             "Date": 1.488285062076e+12,
  855.             "Amount": 420,
  856.             "Type": "CreditCard"
  857.         }
  858.     ],
  859.     "SoldItems": [
  860.         {
  861.             "_id": "t2pHaqc5rgF9dJeWW",
  862.             "ProductID": 1222,
  863.             "Product": {
  864.                 "_id": "FC6QEqigw9zB23oLd",
  865.                 "Name": "Test Product"
  866.             },
  867.             "Manufacturer": {
  868.                 "_id": "5FuGfdQcbGhNX8u8M",
  869.                 "Name": "TEST"
  870.             },
  871.             "Model": "test",
  872.             "ManufacturerID": "",
  873.             "Status": "InStock",
  874.             "Notes": "here are the notes!",
  875.             "modals": {
  876.                 "productsLookup": {
  877.                     "show": false
  878.                 }
  879.             },
  880.             "BookedInDate": "2017-02-27",
  881.             "TradePrice": 234,
  882.             "RRP": 432,
  883.             "SerialNumber": "124efcd123",
  884.             "StockID": 16,
  885.             "Barcode": "test1234",
  886.             "ManufacturerName": "Test",
  887.             "added": true,
  888.             "SalePrice": 432
  889.         }
  890.     ],
  891.     "Notes": "test info",
  892.     "ProductNotes": "",
  893.     "PriceTotal": "432.00",
  894.     "SalesID": 31
  895. }
  896. {
  897.     "_id": "DsBZx36dqLTYJfGfc",
  898.     "SaleBy": {
  899.         "1": {
  900.             "isOnCommission": false,
  901.             "percentCommission": 0
  902.         },
  903.         "2": {
  904.             "isOnCommission": false,
  905.             "percentCommission": 0
  906.         },
  907.         "7": {
  908.             "isOnCommission": false,
  909.             "percentCommission": 0
  910.         }
  911.     },
  912.     "Date": 1.490034915235e+12,
  913.     "CustomerID": 8306,
  914.     "Customer": {
  915.         "_id": {
  916.             "$oid": "57adcc6381c291067c06d28f"
  917.         },
  918.         "Lastname": "Mathews"
  919.     },
  920.     "Address": "198 Hythe Road, Ashford",
  921.     "DeliveryAddress": "198 Hythe Road, Ashford",
  922.     "Payments": [],
  923.     "SoldItems": [
  924.         {
  925.             "_id": "Cw5gYmSr4gMbNqPEN",
  926.             "ProductID": 1232,
  927.             "Product": {
  928.                 "_id": "",
  929.                 "Name": ""
  930.             },
  931.             "Manufacturer": {
  932.                 "_id": {
  933.                     "$oid": "57c5b0feeafb5b7e37b8dc05"
  934.                 },
  935.                 "Name": "LINN PRODUCTS LTD"
  936.             },
  937.             "Model": "Akurate DSM",
  938.             "ManufacturerID": "",
  939.             "Status": "",
  940.             "Notes": "",
  941.             "modals": {
  942.                 "productsLookup": {
  943.                     "show": false
  944.                 },
  945.                 "wishlist": {
  946.                     "show": false
  947.                 }
  948.             },
  949.             "wishlistCustomer": {},
  950.             "BookedInDate": "2017-03-20",
  951.             "TradePrice": 1000,
  952.             "RRP": 2000,
  953.             "SerialNumber": "123456",
  954.             "StockID": 58,
  955.             "Barcode": "",
  956.             "ManufacturerName": "LINN PRODUCTS LTD",
  957.             "added": true,
  958.             "SalePrice": 2000
  959.         }
  960.     ],
  961.     "Notes": "",
  962.     "Source": "",
  963.     "Discount": 0,
  964.     "DiscountReason": "",
  965.     "Deposit": 0,
  966.     "LabourPrice": 0,
  967.     "LabourNotes": "",
  968.     "ProductNotes": "",
  969.     "PriceTotal": "2000.00",
  970.     "SalesID": 66
  971. }
  972. {
  973.     "_id": "ECpxAMMXsDegDZ6ao",
  974.     "SaleBy": {
  975.         "1": {
  976.             "isOnCommission": false,
  977.             "percentCommission": 0
  978.         },
  979.         "2": {
  980.             "isOnCommission": false,
  981.             "percentCommission": 0
  982.         },
  983.         "7": {
  984.             "isOnCommission": false,
  985.             "percentCommission": 0
  986.         }
  987.     },
  988.     "Date": 1.475517395454e+12,
  989.     "CustomerID": 7013,
  990.     "Customer": {
  991.         "_id": "57adcc6381c291067c06cd82",
  992.         "Firstname": "",
  993.         "Lastname": "Rawlings",
  994.         "Email": ""
  995.     },
  996.     "Address": "1 Upper Park Gate Farm Cottage, Park Lane",
  997.     "DeliveryAddress": "1 Upper Park Gate Farm Cottage, Park Lane",
  998.     "Payments": [],
  999.     "SoldItems": [
  1000.         {
  1001.             "StockID": 10,
  1002.             "SalePrice": 255
  1003.         },
  1004.         {
  1005.             "StockID": 4,
  1006.             "SalePrice": 234
  1007.         }
  1008.     ],
  1009.     "Notes": "",
  1010.     "ProductNotes": "",
  1011.     "PriceTotal": "489.00",
  1012.     "SalesID": null
  1013. }
  1014. {
  1015.     "_id": "HgeLbKimeejaRYahW",
  1016.     "SaleBy": {
  1017.         "1": {
  1018.             "isOnCommission": false,
  1019.             "percentCommission": 0
  1020.         },
  1021.         "2": {
  1022.             "isOnCommission": false,
  1023.             "percentCommission": 0
  1024.         },
  1025.         "7": {
  1026.             "isOnCommission": false,
  1027.             "percentCommission": 0
  1028.         }
  1029.     },
  1030.     "Date": 1.490034195887e+12,
  1031.     "CustomerID": 7832,
  1032.     "Customer": {
  1033.         "_id": {
  1034.             "$oid": "57adcc6381c291067c06d0b5"
  1035.         },
  1036.         "Lastname": "Mathews"
  1037.     },
  1038.     "Address": "196 Hythe Road, Ashford",
  1039.     "DeliveryAddress": "196 Hythe Road, Ashford",
  1040.     "Payments": [
  1041.         {
  1042.             "Date": 1.490034189758e+12,
  1043.             "Amount": 2100,
  1044.             "Type": "CreditCard"
  1045.         }
  1046.     ],
  1047.     "SoldItems": [
  1048.         {
  1049.             "_id": "Cw5gYmSr4gMbNqPEN",
  1050.             "ProductID": 1232,
  1051.             "Product": {
  1052.                 "_id": "",
  1053.                 "Name": ""
  1054.             },
  1055.             "Manufacturer": {
  1056.                 "_id": {
  1057.                     "$oid": "57c5b0feeafb5b7e37b8dc05"
  1058.                 },
  1059.                 "Name": "LINN PRODUCTS LTD"
  1060.             },
  1061.             "Model": "Akurate DSM",
  1062.             "ManufacturerID": "",
  1063.             "Status": "",
  1064.             "Notes": "",
  1065.             "modals": {
  1066.                 "productsLookup": {
  1067.                     "show": false
  1068.                 },
  1069.                 "wishlist": {
  1070.                     "show": false
  1071.                 }
  1072.             },
  1073.             "wishlistCustomer": {},
  1074.             "BookedInDate": "2017-03-20",
  1075.             "TradePrice": 1000,
  1076.             "RRP": 2000,
  1077.             "SerialNumber": "123456",
  1078.             "StockID": 58,
  1079.             "Barcode": "",
  1080.             "ManufacturerName": "LINN PRODUCTS LTD",
  1081.             "added": true,
  1082.             "SalePrice": 2000
  1083.         }
  1084.     ],
  1085.     "Notes": "",
  1086.     "Source": "",
  1087.     "Discount": 100,
  1088.     "DiscountReason": "ex demo",
  1089.     "Deposit": 0,
  1090.     "LabourPrice": 200,
  1091.     "LabourNotes": "space op",
  1092.     "ProductNotes": "",
  1093.     "PriceTotal": "2100.00",
  1094.     "SalesID": 64
  1095. }
  1096. {
  1097.     "_id": "HxfkhhftqiJAmPp65",
  1098.     "SaleBy": {
  1099.         "1": {
  1100.             "isOnCommission": true,
  1101.             "percentCommission": 100
  1102.         },
  1103.         "2": {
  1104.             "isOnCommission": false,
  1105.             "percentCommission": 0
  1106.         },
  1107.         "7": {
  1108.             "isOnCommission": false,
  1109.             "percentCommission": 0
  1110.         }
  1111.     },
  1112.     "Date": 1.489519593012e+12,
  1113.     "CustomerID": 12131,
  1114.     "Customer": {
  1115.         "_id": "WhgcCgE4q2fKphkuR",
  1116.         "Firstname": "Geoff",
  1117.         "Lastname": "Mathews",
  1118.         "Email": "geoff.mathews@btinternet.com"
  1119.     },
  1120.     "Address": "196",
  1121.     "DeliveryAddress": "196",
  1122.     "Payments": [
  1123.         {
  1124.             "Date": 1.48845465041e+12,
  1125.             "Amount": 1348,
  1126.             "Type": "CreditCard"
  1127.         }
  1128.     ],
  1129.     "SoldItems": [
  1130.         {
  1131.             "_id": "t2pHaqc5rgF9dJeWW",
  1132.             "ProductID": 1222,
  1133.             "Product": {
  1134.                 "_id": "FC6QEqigw9zB23oLd",
  1135.                 "Name": "Test Product"
  1136.             },
  1137.             "Manufacturer": {
  1138.                 "_id": "5FuGfdQcbGhNX8u8M",
  1139.                 "Name": "TEST"
  1140.             },
  1141.             "Model": "test",
  1142.             "ManufacturerID": "",
  1143.             "Status": "InStock",
  1144.             "Notes": "here are the notes!",
  1145.             "modals": {
  1146.                 "productsLookup": {
  1147.                     "show": false
  1148.                 }
  1149.             },
  1150.             "BookedInDate": "2017-02-27",
  1151.             "TradePrice": 234,
  1152.             "RRP": 432,
  1153.             "SerialNumber": "124efcd123",
  1154.             "StockID": 16,
  1155.             "Barcode": "test1234",
  1156.             "ManufacturerName": "Test",
  1157.             "added": true,
  1158.             "SalePrice": 432
  1159.         },
  1160.         {
  1161.             "_id": "zyEhuSmXgh3F36Ap3",
  1162.             "ProductID": 1222,
  1163.             "Product": {
  1164.                 "_id": "FC6QEqigw9zB23oLd",
  1165.                 "Name": "Test Product"
  1166.             },
  1167.             "Manufacturer": {
  1168.                 "_id": "5FuGfdQcbGhNX8u8M",
  1169.                 "Name": "TEST"
  1170.             },
  1171.             "Model": "test",
  1172.             "ManufacturerID": "",
  1173.             "Status": "",
  1174.             "Notes": "test",
  1175.             "modals": {
  1176.                 "productsLookup": {
  1177.                     "show": false
  1178.                 }
  1179.             },
  1180.             "BookedInDate": "2017-03-02",
  1181.             "TradePrice": 765,
  1182.             "RRP": 766,
  1183.             "SerialNumber": "9856746354657",
  1184.             "StockID": 21,
  1185.             "Barcode": "test1234",
  1186.             "ManufacturerName": "Test",
  1187.             "added": true,
  1188.             "SalePrice": 766
  1189.         }
  1190.     ],
  1191.     "Notes": "",
  1192.     "ProductNotes": "",
  1193.     "PriceTotal": "1198.00",
  1194.     "SalesID": 55,
  1195.     "LabourPrice": 0,
  1196.     "LabourNotes": "",
  1197.     "Source": "internet"
  1198. }
  1199. {
  1200.     "_id": "JxLMCeZTJZnneDomE",
  1201.     "SaleBy": {
  1202.         "undefined": {
  1203.             "isOnCommission": false,
  1204.             "percentCommission": 0
  1205.         }
  1206.     },
  1207.     "Date": 1.488186180077e+12,
  1208.     "CustomerID": 639,
  1209.     "Customer": {
  1210.         "_id": {
  1211.             "$oid": "57adcc6281c291067c06b4dd"
  1212.         },
  1213.         "Lastname": "Smith"
  1214.     },
  1215.     "Address": "112 Sherlock Road, Canterbury",
  1216.     "DeliveryAddress": "112 Sherlock Road, Canterbury",
  1217.     "Payments": [
  1218.         {
  1219.             "Date": 1.488186176277e+12,
  1220.             "Amount": 10,
  1221.             "Type": "CreditCard"
  1222.         }
  1223.     ],
  1224.     "SoldItems": [
  1225.         {
  1226.             "StockID": 11,
  1227.             "SalePrice": 66
  1228.         }
  1229.     ],
  1230.     "Notes": "",
  1231.     "ProductNotes": "",
  1232.     "PriceTotal": "66.00",
  1233.     "SalesID": 11
  1234. }
  1235. {
  1236.     "_id": "LNYxHFyBgEoDTdR7j",
  1237.     "SaleBy": {
  1238.         "1": {
  1239.             "isOnCommission": false,
  1240.             "percentCommission": 0
  1241.         },
  1242.         "2": {
  1243.             "isOnCommission": false,
  1244.             "percentCommission": 0
  1245.         },
  1246.         "7": {
  1247.             "isOnCommission": true,
  1248.             "percentCommission": 100
  1249.         }
  1250.     },
  1251.     "Date": 1.486113367263e+12,
  1252.     "CustomerID": 12131,
  1253.     "Customer": {
  1254.         "_id": "WhgcCgE4q2fKphkuR",
  1255.         "Firstname": "Geoff",
  1256.         "Lastname": "Mathews",
  1257.         "Email": "geoff.mathews@btinternet.com"
  1258.     },
  1259.     "Address": "196",
  1260.     "DeliveryAddress": "196",
  1261.     "Payments": [],
  1262.     "SoldItems": [
  1263.         {
  1264.             "StockID": 12,
  1265.             "SalePrice": 1799
  1266.         },
  1267.         {
  1268.             "StockID": 15,
  1269.             "SalePrice": 40
  1270.         }
  1271.     ],
  1272.     "Notes": "",
  1273.     "ProductNotes": "",
  1274.     "PriceTotal": "1839.00",
  1275.     "SalesID": 8
  1276. }
  1277. {
  1278.     "_id": "LQD9WTpcg4LAZaTxQ",
  1279.     "SaleBy": {
  1280.         "1": {
  1281.             "isOnCommission": true,
  1282.             "percentCommission": 100
  1283.         },
  1284.         "2": {
  1285.             "isOnCommission": false,
  1286.             "percentCommission": 0
  1287.         },
  1288.         "7": {
  1289.             "isOnCommission": false,
  1290.             "percentCommission": 0
  1291.         }
  1292.     },
  1293.     "Date": 1.488390421322e+12,
  1294.     "CustomerID": 12132,
  1295.     "Customer": {
  1296.         "_id": "m2TCtvmmuMNZiYtDB",
  1297.         "Firstname": "test",
  1298.         "Lastname": "test",
  1299.         "Email": "test@@test.com"
  1300.     },
  1301.     "Address": "1",
  1302.     "DeliveryAddress": "1",
  1303.     "Payments": [],
  1304.     "SoldItems": [],
  1305.     "Notes": "test",
  1306.     "ProductNotes": "",
  1307.     "PriceTotal": "250.00",
  1308.     "SalesID": 42
  1309. }
  1310. {
  1311.     "_id": "La247A2XBhKeAtGZ8",
  1312.     "SaleBy": {
  1313.         "1": {
  1314.             "isOnCommission": false,
  1315.             "percentCommission": 0
  1316.         },
  1317.         "2": {
  1318.             "isOnCommission": false,
  1319.             "percentCommission": 0
  1320.         },
  1321.         "7": {
  1322.             "isOnCommission": false,
  1323.             "percentCommission": 0
  1324.         }
  1325.     },
  1326.     "Date": 1.488390287407e+12,
  1327.     "Customer": {},
  1328.     "Payments": [],
  1329.     "SoldItems": [],
  1330.     "Notes": "",
  1331.     "ProductNotes": "",
  1332.     "PriceTotal": "200.00",
  1333.     "SalesID": 41
  1334. }
  1335. {
  1336.     "_id": "MLbomgwbvdnSwF4ws",
  1337.     "SaleBy": {
  1338.         "1": {
  1339.             "isOnCommission": false,
  1340.             "percentCommission": 0
  1341.         },
  1342.         "2": {
  1343.             "isOnCommission": true,
  1344.             "percentCommission": 100
  1345.         },
  1346.         "7": {
  1347.             "isOnCommission": false,
  1348.             "percentCommission": 0
  1349.         }
  1350.     },
  1351.     "Date": 1.48965094199e+12,
  1352.     "CustomerID": 3923,
  1353.     "Customer": {
  1354.         "_id": {
  1355.             "$oid": "57adcc6381c291067c06c186"
  1356.         },
  1357.         "Firstname": "D.a.",
  1358.         "Lastname": "Gower"
  1359.     },
  1360.     "Address": "20 Alamain Gardens, Dartford",
  1361.     "DeliveryAddress": "20 Alamain Gardens, Dartford",
  1362.     "Payments": [],
  1363.     "SoldItems": [
  1364.         {
  1365.             "_id": "t2pHaqc5rgF9dJeWW",
  1366.             "ProductID": 1222,
  1367.             "Product": {
  1368.                 "_id": "FC6QEqigw9zB23oLd",
  1369.                 "Name": "Test Product"
  1370.             },
  1371.             "Manufacturer": {
  1372.                 "_id": "5FuGfdQcbGhNX8u8M",
  1373.                 "Name": "TEST"
  1374.             },
  1375.             "Model": "test",
  1376.             "ManufacturerID": "",
  1377.             "Status": "InStock",
  1378.             "Notes": "here are the notes!",
  1379.             "modals": {
  1380.                 "productsLookup": {
  1381.                     "show": false
  1382.                 }
  1383.             },
  1384.             "BookedInDate": "2017-02-27",
  1385.             "TradePrice": 234,
  1386.             "RRP": 432,
  1387.             "SerialNumber": "124efcd123",
  1388.             "StockID": 16,
  1389.             "Barcode": "test1234",
  1390.             "ManufacturerName": "Test",
  1391.             "added": true,
  1392.             "SalePrice": 432
  1393.         }
  1394.     ],
  1395.     "Notes": "test",
  1396.     "Source": "phone",
  1397.     "DiscountReason": "discount",
  1398.     "Deposit": 0,
  1399.     "LabourPrice": 10,
  1400.     "LabourNotes": "labour notes",
  1401.     "ProductNotes": "test",
  1402.     "PriceTotal": "432.00",
  1403.     "SalesID": 62
  1404. }
  1405. {
  1406.     "_id": "NWeNJtfo3uyP4EwvC",
  1407.     "SaleBy": {
  1408.         "1": {
  1409.             "isOnCommission": false,
  1410.             "percentCommission": 0
  1411.         },
  1412.         "2": {
  1413.             "isOnCommission": true,
  1414.             "percentCommission": 100
  1415.         },
  1416.         "7": {
  1417.             "isOnCommission": false,
  1418.             "percentCommission": 0
  1419.         }
  1420.     },
  1421.     "Date": 1.488285229234e+12,
  1422.     "CustomerID": 3923,
  1423.     "Customer": {
  1424.         "_id": {
  1425.             "$oid": "57adcc6381c291067c06c186"
  1426.         },
  1427.         "Firstname": "D.a.",
  1428.         "Lastname": "Gower"
  1429.     },
  1430.     "Address": "20 Alamain Gardens, Dartford",
  1431.     "DeliveryAddress": "20 Alamain Gardens, Dartford",
  1432.     "Payments": [
  1433.         {
  1434.             "Date": 1.488285227667e+12,
  1435.             "Amount": 32,
  1436.             "Type": "CreditCard"
  1437.         }
  1438.     ],
  1439.     "SoldItems": [
  1440.         {
  1441.             "_id": "t2pHaqc5rgF9dJeWW",
  1442.             "ProductID": 1222,
  1443.             "Product": {
  1444.                 "_id": "FC6QEqigw9zB23oLd",
  1445.                 "Name": "Test Product"
  1446.             },
  1447.             "Manufacturer": {
  1448.                 "_id": "5FuGfdQcbGhNX8u8M",
  1449.                 "Name": "TEST"
  1450.             },
  1451.             "Model": "test",
  1452.             "ManufacturerID": "",
  1453.             "Status": "InStock",
  1454.             "Notes": "here are the notes!",
  1455.             "modals": {
  1456.                 "productsLookup": {
  1457.                     "show": false
  1458.                 }
  1459.             },
  1460.             "BookedInDate": "2017-02-27",
  1461.             "TradePrice": 234,
  1462.             "RRP": 432,
  1463.             "SerialNumber": "124efcd123",
  1464.             "StockID": 16,
  1465.             "Barcode": "test1234",
  1466.             "ManufacturerName": "Test",
  1467.             "added": true,
  1468.             "SalePrice": 432
  1469.         }
  1470.     ],
  1471.     "Notes": "test info",
  1472.     "ProductNotes": "",
  1473.     "PriceTotal": "432.00",
  1474.     "SalesID": 33
  1475. }
  1476. {
  1477.     "_id": "PByFLf3Zrpu32Bmmn",
  1478.     "SaleBy": {
  1479.         "1": {
  1480.             "isOnCommission": true,
  1481.             "percentCommission": 100
  1482.         },
  1483.         "2": {
  1484.             "isOnCommission": false,
  1485.             "percentCommission": 0
  1486.         },
  1487.         "7": {
  1488.             "isOnCommission": false,
  1489.             "percentCommission": 0
  1490.         }
  1491.     },
  1492.     "Date": 1.488538858533e+12,
  1493.     "CustomerID": null,
  1494.     "Customer": {
  1495.         "_id": "MC9krHzhDoMPoCnHn",
  1496.         "Firstname": "Neil",
  1497.         "Lastname": "Haffenden",
  1498.         "Email": "neil_haffenden@yahoo.com"
  1499.     },
  1500.     "Address": "",
  1501.     "DeliveryAddress": "",
  1502.     "Payments": [
  1503.         {
  1504.             "Date": 1.48853885124e+12,
  1505.             "Amount": 412,
  1506.             "Type": "Cash"
  1507.         }
  1508.     ],
  1509.     "SoldItems": [
  1510.         {
  1511.             "_id": "t2pHaqc5rgF9dJeWW",
  1512.             "ProductID": 1222,
  1513.             "Product": {
  1514.                 "_id": "FC6QEqigw9zB23oLd",
  1515.                 "Name": "Test Product"
  1516.             },
  1517.             "Manufacturer": {
  1518.                 "_id": "5FuGfdQcbGhNX8u8M",
  1519.                 "Name": "TEST"
  1520.             },
  1521.             "Model": "test",
  1522.             "ManufacturerID": "",
  1523.             "Status": "InStock",
  1524.             "Notes": "here are the notes!",
  1525.             "modals": {
  1526.                 "productsLookup": {
  1527.                     "show": false
  1528.                 }
  1529.             },
  1530.             "BookedInDate": "2017-02-27",
  1531.             "TradePrice": 234,
  1532.             "RRP": 432,
  1533.             "SerialNumber": "124efcd123",
  1534.             "StockID": 16,
  1535.             "Barcode": "test1234",
  1536.             "ManufacturerName": "Test",
  1537.             "added": true,
  1538.             "SalePrice": 432
  1539.         }
  1540.     ],
  1541.     "Notes": "",
  1542.     "ProductNotes": "",
  1543.     "PriceTotal": "412.00",
  1544.     "SalesID": 57
  1545. }
  1546. {
  1547.     "_id": "QDLb5gAQiYea84hQN",
  1548.     "SaleBy": {
  1549.         "undefined": {
  1550.             "isOnCommission": false,
  1551.             "percentCommission": 0
  1552.         }
  1553.     },
  1554.     "Date": 1.487757843001e+12,
  1555.     "CustomerID": null,
  1556.     "Customer": {
  1557.         "_id": "MC9krHzhDoMPoCnHn",
  1558.         "Firstname": "Neil",
  1559.         "Lastname": "Haffenden",
  1560.         "Email": "neil_haffenden@yahoo.com"
  1561.     },
  1562.     "Address": "",
  1563.     "DeliveryAddress": "",
  1564.     "Payments": [
  1565.         {
  1566.             "Date": 1.487757834528e+12,
  1567.             "Amount": 1789,
  1568.             "Type": "CreditCard"
  1569.         }
  1570.     ],
  1571.     "SoldItems": [
  1572.         {
  1573.             "StockID": 12,
  1574.             "SalePrice": 1799
  1575.         }
  1576.     ],
  1577.     "Notes": "",
  1578.     "ProductNotes": "",
  1579.     "PriceTotal": "1789.00",
  1580.     "SalesID": 12
  1581. }
  1582. {
  1583.     "_id": "RX4cGCJETcEfcHDad",
  1584.     "SaleBy": {
  1585.         "1": {
  1586.             "isOnCommission": false,
  1587.             "percentCommission": 0
  1588.         },
  1589.         "2": {
  1590.             "isOnCommission": false,
  1591.             "percentCommission": 0
  1592.         },
  1593.         "7": {
  1594.             "isOnCommission": true,
  1595.             "percentCommission": 100
  1596.         }
  1597.     },
  1598.     "Date": 1.487926220862e+12,
  1599.     "CustomerID": null,
  1600.     "Customer": {
  1601.         "_id": "MC9krHzhDoMPoCnHn",
  1602.         "Firstname": "Neil",
  1603.         "Lastname": "Haffenden",
  1604.         "Email": "neil_haffenden@yahoo.com"
  1605.     },
  1606.     "Address": "",
  1607.     "DeliveryAddress": "",
  1608.     "Payments": [
  1609.         {
  1610.             "Date": 1.48792621693e+12,
  1611.             "Amount": 50,
  1612.             "Type": "CreditCard"
  1613.         }
  1614.     ],
  1615.     "SoldItems": [
  1616.         {
  1617.             "StockID": 12,
  1618.             "SalePrice": 1799
  1619.         }
  1620.     ],
  1621.     "Notes": "",
  1622.     "ProductNotes": "",
  1623.     "PriceTotal": "1789.00",
  1624.     "SalesID": 13
  1625. }
  1626. {
  1627.     "_id": "ReB8dgq2YJTvY44Bh",
  1628.     "SaleBy": {
  1629.         "1": {
  1630.             "isOnCommission": true,
  1631.             "percentCommission": 100
  1632.         },
  1633.         "2": {
  1634.             "isOnCommission": false,
  1635.             "percentCommission": 0
  1636.         },
  1637.         "7": {
  1638.             "isOnCommission": false,
  1639.             "percentCommission": 0
  1640.         }
  1641.     },
  1642.     "Date": 1.488440196581e+12,
  1643.     "CustomerID": 2718,
  1644.     "Customer": {
  1645.         "_id": {
  1646.             "$oid": "57adcc6381c291067c06bcda"
  1647.         },
  1648.         "Firstname": "D.m.",
  1649.         "Lastname": "Mathews"
  1650.     },
  1651.     "Address": "51 Queens Road, Ashford",
  1652.     "DeliveryAddress": "51 Queens Road, Ashford",
  1653.     "Payments": [],
  1654.     "SoldItems": [
  1655.         {
  1656.             "_id": "HAsxXY82YbQoX3eoT",
  1657.             "ProductID": 48,
  1658.             "Product": {
  1659.                 "_id": "57c5b137eafb5b7e37b8dc6b",
  1660.                 "Name": "LCD8003 SL MK1 - (N/A)"
  1661.             },
  1662.             "ManufacturerID": "",
  1663.             "Manufacturer": {
  1664.                 "_id": "",
  1665.                 "Name": ""
  1666.             },
  1667.             "SerialNumber": "Afff",
  1668.             "BookedInDate": "2016-11-03",
  1669.             "Status": "InStock",
  1670.             "Notes": "",
  1671.             "modals": {
  1672.                 "productsLookup": {
  1673.                     "show": false
  1674.                 }
  1675.             },
  1676.             "TradePrice": 4456,
  1677.             "RRP": 66,
  1678.             "showModal": false,
  1679.             "StockID": 11,
  1680.             "Model": "LCD8003 SL MK1",
  1681.             "ManufacturerName": "OPTIMUM INT. LTD",
  1682.             "added": true,
  1683.             "SalePrice": 66
  1684.         }
  1685.     ],
  1686.     "Notes": "",
  1687.     "ProductNotes": "",
  1688.     "PriceTotal": "66.00",
  1689.     "SalesID": 46
  1690. }
  1691. {
  1692.     "_id": "RfRhxpFddpeGZNbGv",
  1693.     "SaleBy": {
  1694.         "1": {
  1695.             "isOnCommission": true,
  1696.             "percentCommission": 50
  1697.         },
  1698.         "2": {
  1699.             "isOnCommission": false,
  1700.             "percentCommission": 0
  1701.         },
  1702.         "7": {
  1703.             "isOnCommission": true,
  1704.             "percentCommission": 50
  1705.         }
  1706.     },
  1707.     "Date": 1.48844631221e+12,
  1708.     "CustomerID": 12132,
  1709.     "Customer": {
  1710.         "_id": "m2TCtvmmuMNZiYtDB",
  1711.         "Firstname": "test",
  1712.         "Lastname": "test",
  1713.         "Email": "test@@test.com"
  1714.     },
  1715.     "Address": "1",
  1716.     "DeliveryAddress": "1",
  1717.     "Payments": [
  1718.         {
  1719.             "Date": 1.488446310375e+12,
  1720.             "Amount": 432,
  1721.             "Type": "CreditCard"
  1722.         }
  1723.     ],
  1724.     "SoldItems": [
  1725.         {
  1726.             "_id": "t2pHaqc5rgF9dJeWW",
  1727.             "ProductID": 1222,
  1728.             "Product": {
  1729.                 "_id": "FC6QEqigw9zB23oLd",
  1730.                 "Name": "Test Product"
  1731.             },
  1732.             "Manufacturer": {
  1733.                 "_id": "5FuGfdQcbGhNX8u8M",
  1734.                 "Name": "TEST"
  1735.             },
  1736.             "Model": "test",
  1737.             "ManufacturerID": "",
  1738.             "Status": "InStock",
  1739.             "Notes": "here are the notes!",
  1740.             "modals": {
  1741.                 "productsLookup": {
  1742.                     "show": false
  1743.                 }
  1744.             },
  1745.             "BookedInDate": "2017-02-27",
  1746.             "TradePrice": 234,
  1747.             "RRP": 432,
  1748.             "SerialNumber": "124efcd123",
  1749.             "StockID": 16,
  1750.             "Barcode": "test1234",
  1751.             "ManufacturerName": "Test",
  1752.             "added": true,
  1753.             "SalePrice": 432
  1754.         }
  1755.     ],
  1756.     "Notes": "test",
  1757.     "ProductNotes": "",
  1758.     "PriceTotal": "432.00",
  1759.     "SalesID": 51
  1760. }
  1761. {
  1762.     "_id": "TWcBvaBpA8yPb5Qza",
  1763.     "SaleBy": {
  1764.         "1": {
  1765.             "isOnCommission": false,
  1766.             "percentCommission": 0
  1767.         },
  1768.         "2": {
  1769.             "isOnCommission": true,
  1770.             "percentCommission": 100
  1771.         },
  1772.         "7": {
  1773.             "isOnCommission": false,
  1774.             "percentCommission": 0
  1775.         }
  1776.     },
  1777.     "Date": 1.488289446483e+12,
  1778.     "CustomerID": 66,
  1779.     "Customer": {
  1780.         "_id": {
  1781.             "$oid": "57adcc6281c291067c06b2a3"
  1782.         },
  1783.         "Firstname": "A.t.t",
  1784.         "Lastname": "Smither",
  1785.         "Email": "test@test.com"
  1786.     },
  1787.     "Address": "19 Lockholt Close, Godinton Park",
  1788.     "DeliveryAddress": "19 Lockholt Close, Godinton Park",
  1789.     "Payments": [
  1790.         {
  1791.             "Date": 1.488289443859e+12,
  1792.             "Amount": 412,
  1793.             "Type": "CreditCard"
  1794.         }
  1795.     ],
  1796.     "SoldItems": [
  1797.         {
  1798.             "_id": "t2pHaqc5rgF9dJeWW",
  1799.             "ProductID": 1222,
  1800.             "Product": {
  1801.                 "_id": "FC6QEqigw9zB23oLd",
  1802.                 "Name": "Test Product"
  1803.             },
  1804.             "Manufacturer": {
  1805.                 "_id": "5FuGfdQcbGhNX8u8M",
  1806.                 "Name": "TEST"
  1807.             },
  1808.             "Model": "test",
  1809.             "ManufacturerID": "",
  1810.             "Status": "InStock",
  1811.             "Notes": "here are the notes!",
  1812.             "modals": {
  1813.                 "productsLookup": {
  1814.                     "show": false
  1815.                 }
  1816.             },
  1817.             "BookedInDate": "2017-02-27",
  1818.             "TradePrice": 234,
  1819.             "RRP": 432,
  1820.             "SerialNumber": "124efcd123",
  1821.             "StockID": 16,
  1822.             "Barcode": "test1234",
  1823.             "ManufacturerName": "Test",
  1824.             "added": true,
  1825.             "SalePrice": 432
  1826.         }
  1827.     ],
  1828.     "Notes": "test info",
  1829.     "ProductNotes": "",
  1830.     "PriceTotal": "432.00",
  1831.     "SalesID": 35
  1832. }
  1833. {
  1834.     "_id": "TdgSktKg5yNGYQxzx",
  1835.     "SaleBy": {
  1836.         "undefined": {
  1837.             "isOnCommission": false,
  1838.             "percentCommission": 0
  1839.         }
  1840.     },
  1841.     "Date": 1.486401053717e+12,
  1842.     "CustomerID": 12131,
  1843.     "Customer": {
  1844.         "_id": "WhgcCgE4q2fKphkuR",
  1845.         "Firstname": "Geoff",
  1846.         "Lastname": "Mathews",
  1847.         "Email": "geoff.mathews@btinternet.com"
  1848.     },
  1849.     "Address": "196",
  1850.     "DeliveryAddress": "196",
  1851.     "Payments": [],
  1852.     "SoldItems": [
  1853.         {
  1854.             "StockID": 11,
  1855.             "SalePrice": 66
  1856.         }
  1857.     ],
  1858.     "Notes": "",
  1859.     "ProductNotes": "",
  1860.     "PriceTotal": "66.00",
  1861.     "SalesID": 10
  1862. }
  1863. {
  1864.     "_id": "WXtKnEkEL4PdDsou2",
  1865.     "SaleBy": {
  1866.         "1": {
  1867.             "isOnCommission": true,
  1868.             "percentCommission": 100
  1869.         },
  1870.         "2": {
  1871.             "isOnCommission": false,
  1872.             "percentCommission": 0
  1873.         },
  1874.         "7": {
  1875.             "isOnCommission": false,
  1876.             "percentCommission": 0
  1877.         }
  1878.     },
  1879.     "Date": 1.488389993126e+12,
  1880.     "CustomerID": 12132,
  1881.     "Customer": {
  1882.         "_id": "m2TCtvmmuMNZiYtDB",
  1883.         "Firstname": "test",
  1884.         "Lastname": "test",
  1885.         "Email": "test@@test.com"
  1886.     },
  1887.     "Address": "1",
  1888.     "DeliveryAddress": "1",
  1889.     "Payments": [
  1890.         {
  1891.             "Date": 1.488389992186e+12,
  1892.             "Amount": 132,
  1893.             "Type": "CreditCard"
  1894.         }
  1895.     ],
  1896.     "SoldItems": [
  1897.         {
  1898.             "_id": "t2pHaqc5rgF9dJeWW",
  1899.             "ProductID": 1222,
  1900.             "Product": {
  1901.                 "_id": "FC6QEqigw9zB23oLd",
  1902.                 "Name": "Test Product"
  1903.             },
  1904.             "Manufacturer": {
  1905.                 "_id": "5FuGfdQcbGhNX8u8M",
  1906.                 "Name": "TEST"
  1907.             },
  1908.             "Model": "test",
  1909.             "ManufacturerID": "",
  1910.             "Status": "InStock",
  1911.             "Notes": "here are the notes!",
  1912.             "modals": {
  1913.                 "productsLookup": {
  1914.                     "show": false
  1915.                 }
  1916.             },
  1917.             "BookedInDate": "2017-02-27",
  1918.             "TradePrice": 234,
  1919.             "RRP": 432,
  1920.             "SerialNumber": "124efcd123",
  1921.             "StockID": 16,
  1922.             "Barcode": "test1234",
  1923.             "ManufacturerName": "Test",
  1924.             "added": true,
  1925.             "SalePrice": 432
  1926.         }
  1927.     ],
  1928.     "Notes": "test",
  1929.     "ProductNotes": "",
  1930.     "PriceTotal": "432.00",
  1931.     "SalesID": 39
  1932. }
  1933. {
  1934.     "_id": "WckiZAXBYekReYaMB",
  1935.     "SaleBy": {
  1936.         "1": {
  1937.             "isOnCommission": false,
  1938.             "percentCommission": 0
  1939.         }
  1940.     },
  1941.     "Date": 1.48964983084e+12,
  1942.     "CustomerID": null,
  1943.     "Customer": {
  1944.         "_id": "4vYZHPmkWWG8cARHS",
  1945.         "Firstname": "Danielle",
  1946.         "Lastname": "Test",
  1947.         "Email": "dani@test.com"
  1948.     },
  1949.     "DeliveryAddress": null,
  1950.     "Payments": [
  1951.         {
  1952.             "Date": 1.489649828066e+12,
  1953.             "Amount": 20,
  1954.             "Type": "CreditCard"
  1955.         }
  1956.     ],
  1957.     "SoldItems": [
  1958.         {
  1959.             "_id": "zyEhuSmXgh3F36Ap3",
  1960.             "ProductID": 1222,
  1961.             "Product": {
  1962.                 "_id": "FC6QEqigw9zB23oLd",
  1963.                 "Name": "Test Product"
  1964.             },
  1965.             "Manufacturer": {
  1966.                 "_id": "5FuGfdQcbGhNX8u8M",
  1967.                 "Name": "TEST"
  1968.             },
  1969.             "Model": "test",
  1970.             "ManufacturerID": "",
  1971.             "Status": "",
  1972.             "Notes": "test",
  1973.             "modals": {
  1974.                 "productsLookup": {
  1975.                     "show": false
  1976.                 }
  1977.             },
  1978.             "BookedInDate": "2017-03-02",
  1979.             "TradePrice": 765,
  1980.             "RRP": 766,
  1981.             "SerialNumber": "9856746354657",
  1982.             "StockID": 21,
  1983.             "Barcode": "test1234",
  1984.             "ManufacturerName": "Test",
  1985.             "added": true,
  1986.             "SalePrice": 766
  1987.         },
  1988.         {
  1989.             "_id": "9Z7ECaxSQRoFaxSsR",
  1990.             "ProductID": 1228,
  1991.             "Product": {
  1992.                 "_id": "",
  1993.                 "Name": ""
  1994.             },
  1995.             "Manufacturer": {
  1996.                 "_id": "aJgB8Aah7TFbN4T5F",
  1997.                 "Name": "Test"
  1998.             },
  1999.             "Model": "test model",
  2000.             "ManufacturerID": "",
  2001.             "Status": "",
  2002.             "Notes": "test",
  2003.             "modals": {
  2004.                 "productsLookup": {
  2005.                     "show": false
  2006.                 }
  2007.             },
  2008.             "BookedInDate": "2017-03-02",
  2009.             "TradePrice": 555,
  2010.             "RRP": 556,
  2011.             "SerialNumber": "T-2346435",
  2012.             "StockID": 28,
  2013.             "Barcode": "763453253",
  2014.             "ManufacturerName": "Test",
  2015.             "added": true,
  2016.             "SalePrice": 556
  2017.         }
  2018.     ],
  2019.     "Notes": "This is a test",
  2020.     "Source": "phone",
  2021.     "Deposit": 0,
  2022.     "LabourPrice": 20,
  2023.     "LabourNotes": "test",
  2024.     "ProductNotes": "",
  2025.     "PriceTotal": "1332.00",
  2026.     "SalesID": 61
  2027. }
  2028. {
  2029.     "_id": "Wdoy8PYZLhCQYa6An",
  2030.     "SaleBy": {
  2031.         "1": {
  2032.             "isOnCommission": false,
  2033.             "percentCommission": 0
  2034.         },
  2035.         "2": {
  2036.             "isOnCommission": false,
  2037.             "percentCommission": 0
  2038.         },
  2039.         "7": {
  2040.             "isOnCommission": true,
  2041.             "percentCommission": 100
  2042.         }
  2043.     },
  2044.     "Date": 1.488453249692e+12,
  2045.     "CustomerID": 8306,
  2046.     "Customer": {
  2047.         "_id": {
  2048.             "$oid": "57adcc6381c291067c06d28f"
  2049.         },
  2050.         "Lastname": "Mathews"
  2051.     },
  2052.     "Address": "198 Hythe Road, Ashford",
  2053.     "DeliveryAddress": "198 Hythe Road, Ashford",
  2054.     "Payments": [
  2055.         {
  2056.             "Date": 1.488453246861e+12,
  2057.             "Amount": 352,
  2058.             "Type": "Cash"
  2059.         }
  2060.     ],
  2061.     "SoldItems": [
  2062.         {
  2063.             "_id": "t2pHaqc5rgF9dJeWW",
  2064.             "ProductID": 1222,
  2065.             "Product": {
  2066.                 "_id": "FC6QEqigw9zB23oLd",
  2067.                 "Name": "Test Product"
  2068.             },
  2069.             "Manufacturer": {
  2070.                 "_id": "5FuGfdQcbGhNX8u8M",
  2071.                 "Name": "TEST"
  2072.             },
  2073.             "Model": "test",
  2074.             "ManufacturerID": "",
  2075.             "Status": "InStock",
  2076.             "Notes": "here are the notes!",
  2077.             "modals": {
  2078.                 "productsLookup": {
  2079.                     "show": false
  2080.                 }
  2081.             },
  2082.             "BookedInDate": "2017-02-27",
  2083.             "TradePrice": 234,
  2084.             "RRP": 432,
  2085.             "SerialNumber": "124efcd123",
  2086.             "StockID": 16,
  2087.             "Barcode": "test1234",
  2088.             "ManufacturerName": "Test",
  2089.             "added": true,
  2090.             "SalePrice": 432
  2091.         },
  2092.         {
  2093.             "_id": "xQRzkqMfPJzeTw3ki",
  2094.             "ProductID": 1222,
  2095.             "Product": {
  2096.                 "_id": "FC6QEqigw9zB23oLd",
  2097.                 "Name": "Test Product"
  2098.             },
  2099.             "Manufacturer": {
  2100.                 "_id": "5FuGfdQcbGhNX8u8M",
  2101.                 "Name": "TEST"
  2102.             },
  2103.             "Model": "test",
  2104.             "ManufacturerID": "",
  2105.             "Status": "",
  2106.             "Notes": "test",
  2107.             "modals": {
  2108.                 "productsLookup": {
  2109.                     "show": false
  2110.                 }
  2111.             },
  2112.             "BookedInDate": "2017-03-02",
  2113.             "TradePrice": 532,
  2114.             "RRP": 533,
  2115.             "SerialNumber": "7546352",
  2116.             "StockID": 20,
  2117.             "Barcode": "test1234",
  2118.             "ManufacturerName": "Test",
  2119.             "added": true,
  2120.             "SalePrice": 533
  2121.         }
  2122.     ],
  2123.     "Notes": "",
  2124.     "ProductNotes": "",
  2125.     "PriceTotal": "1090.00",
  2126.     "SalesID": 54
  2127. }
  2128. {
  2129.     "_id": "WtENezye6FxWJidyP",
  2130.     "SaleBy": {
  2131.         "1": {
  2132.             "isOnCommission": false,
  2133.             "percentCommission": 0
  2134.         },
  2135.         "2": {
  2136.             "isOnCommission": false,
  2137.             "percentCommission": 0
  2138.         },
  2139.         "7": {
  2140.             "isOnCommission": false,
  2141.             "percentCommission": 0
  2142.         }
  2143.     },
  2144.     "Date": 1.494931678162e+12,
  2145.     "CustomerID": null,
  2146.     "Customer": {
  2147.         "_id": "MC9krHzhDoMPoCnHn",
  2148.         "Firstname": "Neil",
  2149.         "Lastname": "Haffenden",
  2150.         "Email": "neil_haffenden@yahoo.com"
  2151.     },
  2152.     "Address": "",
  2153.     "DeliveryAddress": "",
  2154.     "Payments": [
  2155.         {
  2156.             "Date": 1.494931274234e+12,
  2157.             "Amount": -1,
  2158.             "Type": "CreditCard"
  2159.         }
  2160.     ],
  2161.     "SoldItems": [
  2162.         {
  2163.             "_id": "t2pHaqc5rgF9dJeWW",
  2164.             "ProductID": 1222,
  2165.             "Product": {
  2166.                 "_id": "FC6QEqigw9zB23oLd",
  2167.                 "Name": "Test Product"
  2168.             },
  2169.             "Manufacturer": {
  2170.                 "_id": "5FuGfdQcbGhNX8u8M",
  2171.                 "Name": "TEST"
  2172.             },
  2173.             "Model": "test",
  2174.             "ManufacturerID": "",
  2175.             "Status": "InStock",
  2176.             "Notes": "here are the notes!",
  2177.             "modals": {
  2178.                 "productsLookup": {
  2179.                     "show": false
  2180.                 }
  2181.             },
  2182.             "BookedInDate": "2017-02-27",
  2183.             "TradePrice": 234,
  2184.             "RRP": 432,
  2185.             "SerialNumber": "124efcd123",
  2186.             "StockID": 16,
  2187.             "Barcode": "test1234",
  2188.             "ManufacturerName": "TEST",
  2189.             "added": true,
  2190.             "SalePrice": 432
  2191.         }
  2192.     ],
  2193.     "Notes": "",
  2194.     "Source": "",
  2195.     "Discount": 433,
  2196.     "DiscountReason": "Test Discount ",
  2197.     "Deposit": 0,
  2198.     "LabourPrice": 0,
  2199.     "LabourNotes": "test ",
  2200.     "ProductNotes": "",
  2201.     "PriceTotal": "-1.00",
  2202.     "IsRefund": false,
  2203.     "RefundAmount": 0,
  2204.     "RefundNotes": "",
  2205.     "RefundedItems": [],
  2206.     "SalesID": 76
  2207. }
  2208. {
  2209.     "_id": "Xj9boiN5ER5tTfCBy",
  2210.     "SaleBy": {
  2211.         "1": {
  2212.             "isOnCommission": true,
  2213.             "percentCommission": 100
  2214.         },
  2215.         "2": {
  2216.             "isOnCommission": false,
  2217.             "percentCommission": 0
  2218.         },
  2219.         "7": {
  2220.             "isOnCommission": false,
  2221.             "percentCommission": 0
  2222.         }
  2223.     },
  2224.     "Date": 1.488390255223e+12,
  2225.     "CustomerID": 12132,
  2226.     "Customer": {
  2227.         "_id": "m2TCtvmmuMNZiYtDB",
  2228.         "Firstname": "test",
  2229.         "Lastname": "test",
  2230.         "Email": "test@@test.com"
  2231.     },
  2232.     "Address": "1",
  2233.     "DeliveryAddress": "1",
  2234.     "Payments": [
  2235.         {
  2236.             "Date": 1.488390253795e+12,
  2237.             "Amount": 132,
  2238.             "Type": "CreditCard"
  2239.         }
  2240.     ],
  2241.     "SoldItems": [
  2242.         {
  2243.             "_id": "t2pHaqc5rgF9dJeWW",
  2244.             "ProductID": 1222,
  2245.             "Product": {
  2246.                 "_id": "FC6QEqigw9zB23oLd",
  2247.                 "Name": "Test Product"
  2248.             },
  2249.             "Manufacturer": {
  2250.                 "_id": "5FuGfdQcbGhNX8u8M",
  2251.                 "Name": "TEST"
  2252.             },
  2253.             "Model": "test",
  2254.             "ManufacturerID": "",
  2255.             "Status": "InStock",
  2256.             "Notes": "here are the notes!",
  2257.             "modals": {
  2258.                 "productsLookup": {
  2259.                     "show": false
  2260.                 }
  2261.             },
  2262.             "BookedInDate": "2017-02-27",
  2263.             "TradePrice": 234,
  2264.             "RRP": 432,
  2265.             "SerialNumber": "124efcd123",
  2266.             "StockID": 16,
  2267.             "Barcode": "test1234",
  2268.             "ManufacturerName": "Test",
  2269.             "added": true,
  2270.             "SalePrice": 432
  2271.         }
  2272.     ],
  2273.     "Notes": "test",
  2274.     "ProductNotes": "",
  2275.     "PriceTotal": "432.00",
  2276.     "SalesID": 40
  2277. }
  2278. {
  2279.     "_id": "YjicYJyG3RC4NyoKE",
  2280.     "SaleBy": {
  2281.         "undefined": {
  2282.             "isOnCommission": false,
  2283.             "percentCommission": 0
  2284.         }
  2285.     },
  2286.     "Date": 1.488291376378e+12,
  2287.     "CustomerID": 12132,
  2288.     "Customer": {
  2289.         "_id": "m2TCtvmmuMNZiYtDB",
  2290.         "Firstname": "test",
  2291.         "Lastname": "test",
  2292.         "Email": "test@@test.com"
  2293.     },
  2294.     "Address": "1",
  2295.     "DeliveryAddress": "1",
  2296.     "Payments": [
  2297.         {
  2298.             "Date": 1.488291374042e+12,
  2299.             "Amount": 231,
  2300.             "Type": "CreditCard"
  2301.         }
  2302.     ],
  2303.     "SoldItems": [
  2304.         {
  2305.             "_id": "t2pHaqc5rgF9dJeWW",
  2306.             "ProductID": 1222,
  2307.             "Product": {
  2308.                 "_id": "FC6QEqigw9zB23oLd",
  2309.                 "Name": "Test Product"
  2310.             },
  2311.             "Manufacturer": {
  2312.                 "_id": "5FuGfdQcbGhNX8u8M",
  2313.                 "Name": "TEST"
  2314.             },
  2315.             "Model": "test",
  2316.             "ManufacturerID": "",
  2317.             "Status": "InStock",
  2318.             "Notes": "here are the notes!",
  2319.             "modals": {
  2320.                 "productsLookup": {
  2321.                     "show": false
  2322.                 }
  2323.             },
  2324.             "BookedInDate": "2017-02-27",
  2325.             "TradePrice": 234,
  2326.             "RRP": 432,
  2327.             "SerialNumber": "124efcd123",
  2328.             "StockID": 16,
  2329.             "Barcode": "test1234",
  2330.             "ManufacturerName": "Test",
  2331.             "added": true,
  2332.             "SalePrice": 432
  2333.         },
  2334.         {
  2335.             "_id": "gosnkJrNiQdJvzvkT",
  2336.             "ProductID": 1219,
  2337.             "Product": {
  2338.                 "_id": "MaAPLqj3rYerP4ngm",
  2339.                 "Name": "Wolf"
  2340.             },
  2341.             "ManufacturerID": "",
  2342.             "Manufacturer": {
  2343.                 "_id": "",
  2344.                 "Name": ""
  2345.             },
  2346.             "SerialNumber": "123789",
  2347.             "Status": "InStock",
  2348.             "Notes": "4 more arrived",
  2349.             "modals": {
  2350.                 "productsLookup": {
  2351.                     "show": false
  2352.                 }
  2353.             },
  2354.             "BookedInDate": "2017-01-25",
  2355.             "TradePrice": 404.75,
  2356.             "RRP": 1799,
  2357.             "StockID": 13,
  2358.             "Model": "Wolf",
  2359.             "ManufacturerName": "AUDIOQUEST",
  2360.             "added": true,
  2361.             "SalePrice": 1799
  2362.         }
  2363.     ],
  2364.     "Notes": "test",
  2365.     "ProductNotes": "",
  2366.     "PriceTotal": "2231.00",
  2367.     "SalesID": 36
  2368. }
  2369. {
  2370.     "_id": "YzERsPasxyLZuESQq",
  2371.     "SaleBy": {
  2372.         "1": {
  2373.             "isOnCommission": false,
  2374.             "percentCommission": 0
  2375.         },
  2376.         "2": {
  2377.             "isOnCommission": false,
  2378.             "percentCommission": 0
  2379.         },
  2380.         "7": {
  2381.             "isOnCommission": false,
  2382.             "percentCommission": 0
  2383.         }
  2384.     },
  2385.     "Date": 1.475570915355e+12,
  2386.     "CustomerID": 7013,
  2387.     "Customer": {
  2388.         "_id": "57adcc6381c291067c06cd82",
  2389.         "Firstname": "",
  2390.         "Lastname": "Rawlings",
  2391.         "Email": ""
  2392.     },
  2393.     "Address": "1 Upper Park Gate Farm Cottage, Park Lane",
  2394.     "DeliveryAddress": "1 Upper Park Gate Farm Cottage, Park Lane",
  2395.     "Payments": [],
  2396.     "SoldItems": [
  2397.         {
  2398.             "StockID": 10,
  2399.             "SalePrice": 255
  2400.         },
  2401.         {
  2402.             "StockID": 4,
  2403.             "SalePrice": 234
  2404.         }
  2405.     ],
  2406.     "Notes": "",
  2407.     "ProductNotes": "",
  2408.     "PriceTotal": "389.00",
  2409.     "SalesID": null
  2410. }
  2411. {
  2412.     "_id": "ZBtJPnybWZyHWrENw",
  2413.     "SaleBy": {
  2414.         "1": {
  2415.             "isOnCommission": false,
  2416.             "percentCommission": 0
  2417.         },
  2418.         "2": {
  2419.             "isOnCommission": false,
  2420.             "percentCommission": 0
  2421.         },
  2422.         "7": {
  2423.             "isOnCommission": true,
  2424.             "percentCommission": 100
  2425.         }
  2426.     },
  2427.     "Date": 1.486113442882e+12,
  2428.     "CustomerID": 12131,
  2429.     "Customer": {
  2430.         "_id": "WhgcCgE4q2fKphkuR",
  2431.         "Firstname": "Geoff",
  2432.         "Lastname": "Mathews",
  2433.         "Email": "geoff.mathews@btinternet.com"
  2434.     },
  2435.     "Address": "196",
  2436.     "DeliveryAddress": "196",
  2437.     "Payments": [
  2438.         {
  2439.             "Date": 1.486113440285e+12,
  2440.             "Amount": 1839,
  2441.             "Type": "CreditCard"
  2442.         }
  2443.     ],
  2444.     "SoldItems": [
  2445.         {
  2446.             "StockID": 12,
  2447.             "SalePrice": 1799
  2448.         },
  2449.         {
  2450.             "StockID": 15,
  2451.             "SalePrice": 40
  2452.         }
  2453.     ],
  2454.     "Notes": "",
  2455.     "ProductNotes": "",
  2456.     "PriceTotal": "1839.00",
  2457.     "SalesID": 9
  2458. }
  2459. {
  2460.     "_id": "ZYWwP5Bx4m49CnBZ8",
  2461.     "SaleBy": {
  2462.         "1": {
  2463.             "isOnCommission": true,
  2464.             "percentCommission": 50
  2465.         },
  2466.         "2": {
  2467.             "isOnCommission": false,
  2468.             "percentCommission": 0
  2469.         },
  2470.         "7": {
  2471.             "isOnCommission": true,
  2472.             "percentCommission": 50
  2473.         }
  2474.     },
  2475.     "Date": 1.488441780173e+12,
  2476.     "CustomerID": 12132,
  2477.     "Customer": {
  2478.         "_id": "m2TCtvmmuMNZiYtDB",
  2479.         "Firstname": "test",
  2480.         "Lastname": "test",
  2481.         "Email": "test@@test.com"
  2482.     },
  2483.     "Address": "1",
  2484.     "DeliveryAddress": "1",
  2485.     "Payments": [],
  2486.     "SoldItems": [
  2487.         {
  2488.             "_id": "t2pHaqc5rgF9dJeWW",
  2489.             "ProductID": 1222,
  2490.             "Product": {
  2491.                 "_id": "FC6QEqigw9zB23oLd",
  2492.                 "Name": "Test Product"
  2493.             },
  2494.             "Manufacturer": {
  2495.                 "_id": "5FuGfdQcbGhNX8u8M",
  2496.                 "Name": "TEST"
  2497.             },
  2498.             "Model": "test",
  2499.             "ManufacturerID": "",
  2500.             "Status": "InStock",
  2501.             "Notes": "here are the notes!",
  2502.             "modals": {
  2503.                 "productsLookup": {
  2504.                     "show": false
  2505.                 }
  2506.             },
  2507.             "BookedInDate": "2017-02-27",
  2508.             "TradePrice": 234,
  2509.             "RRP": 432,
  2510.             "SerialNumber": "124efcd123",
  2511.             "StockID": 16,
  2512.             "Barcode": "test1234",
  2513.             "ManufacturerName": "Test",
  2514.             "added": true,
  2515.             "SalePrice": 432
  2516.         },
  2517.         {
  2518.             "_id": "nLgd7MNLhLqyPcmuW",
  2519.             "ProductID": 34,
  2520.             "Product": {
  2521.                 "_id": "57c5b137eafb5b7e37b8dc5d",
  2522.                 "Name": "LC13BE1E - (210411651)"
  2523.             },
  2524.             "ManufacturerID": "",
  2525.             "Manufacturer": {
  2526.                 "_id": "",
  2527.                 "Name": ""
  2528.             },
  2529.             "SerialNumber": "asdfasdf",
  2530.             "BookedInDate": "2016-08-31",
  2531.             "Status": "Demo",
  2532.             "Notes": "asdf",
  2533.             "TradePrice": 234,
  2534.             "RRP": 234,
  2535.             "StockID": 3,
  2536.             "Model": "LC13BE1E",
  2537.             "ManufacturerName": "SHARP ELECTRONICS(UK)LTD",
  2538.             "added": true,
  2539.             "SalePrice": 234
  2540.         }
  2541.     ],
  2542.     "Notes": "test",
  2543.     "ProductNotes": "",
  2544.     "PriceTotal": "666.00",
  2545.     "SalesID": 48
  2546. }
  2547. {
  2548.     "_id": "aizQ285zYkdbkgefe",
  2549.     "SaleBy": {
  2550.         "1": {
  2551.             "isOnCommission": true,
  2552.             "percentCommission": 100
  2553.         },
  2554.         "2": {
  2555.             "isOnCommission": false,
  2556.             "percentCommission": 0
  2557.         },
  2558.         "7": {
  2559.             "isOnCommission": false,
  2560.             "percentCommission": 0
  2561.         }
  2562.     },
  2563.     "Date": 1.488439594755e+12,
  2564.     "CustomerID": 11371,
  2565.     "Customer": {
  2566.         "_id": {
  2567.             "$oid": "57adcc6381c291067c06de8a"
  2568.         },
  2569.         "Lastname": "Mathieu"
  2570.     },
  2571.     "Address": "11 Route De La Hollande, Hurbache,, Lorraine,",
  2572.     "DeliveryAddress": "11 Route De La Hollande, Hurbache,, Lorraine,",
  2573.     "Payments": [
  2574.         {
  2575.             "Date": 1.488439587585e+12,
  2576.             "Amount": 66,
  2577.             "Type": "CreditCard"
  2578.         }
  2579.     ],
  2580.     "SoldItems": [
  2581.         {
  2582.             "_id": "HAsxXY82YbQoX3eoT",
  2583.             "ProductID": 48,
  2584.             "Product": {
  2585.                 "_id": "57c5b137eafb5b7e37b8dc6b",
  2586.                 "Name": "LCD8003 SL MK1 - (N/A)"
  2587.             },
  2588.             "ManufacturerID": "",
  2589.             "Manufacturer": {
  2590.                 "_id": "",
  2591.                 "Name": ""
  2592.             },
  2593.             "SerialNumber": "Afff",
  2594.             "BookedInDate": "2016-11-03",
  2595.             "Status": "InStock",
  2596.             "Notes": "",
  2597.             "modals": {
  2598.                 "productsLookup": {
  2599.                     "show": false
  2600.                 }
  2601.             },
  2602.             "TradePrice": 4456,
  2603.             "RRP": 66,
  2604.             "showModal": false,
  2605.             "StockID": 11,
  2606.             "Model": "LCD8003 SL MK1",
  2607.             "ManufacturerName": "OPTIMUM INT. LTD",
  2608.             "added": true,
  2609.             "SalePrice": 66
  2610.         }
  2611.     ],
  2612.     "Notes": "",
  2613.     "ProductNotes": "",
  2614.     "PriceTotal": "66.00",
  2615.     "SalesID": 43
  2616. }
  2617. {
  2618.     "_id": "coqansw3iAjdfTnGs",
  2619.     "SaleBy": {
  2620.         "1": {
  2621.             "isOnCommission": false,
  2622.             "percentCommission": 0
  2623.         },
  2624.         "2": {
  2625.             "isOnCommission": false,
  2626.             "percentCommission": 0
  2627.         },
  2628.         "7": {
  2629.             "isOnCommission": false,
  2630.             "percentCommission": 0
  2631.         }
  2632.     },
  2633.     "Date": 1.491320001599e+12,
  2634.     "CustomerID": 7013,
  2635.     "Customer": {
  2636.         "_id": {
  2637.             "$oid": "57adcc6381c291067c06cd82"
  2638.         },
  2639.         "Lastname": "Rawlings"
  2640.     },
  2641.     "Address": "1 Upper Park Gate Farm Cottage, Park Lane",
  2642.     "DeliveryAddress": "1 Upper Park Gate Farm Cottage, Park Lane",
  2643.     "Payments": [
  2644.         {
  2645.             "Date": 1.491319998363e+12,
  2646.             "Amount": 5432,
  2647.             "Type": "CreditCard"
  2648.         }
  2649.     ],
  2650.     "SoldItems": [
  2651.         {
  2652.             "_id": "t2pHaqc5rgF9dJeWW",
  2653.             "ProductID": 1222,
  2654.             "Product": {
  2655.                 "_id": "FC6QEqigw9zB23oLd",
  2656.                 "Name": "Test Product"
  2657.             },
  2658.             "Manufacturer": {
  2659.                 "_id": "5FuGfdQcbGhNX8u8M",
  2660.                 "Name": "TEST"
  2661.             },
  2662.             "Model": "test",
  2663.             "ManufacturerID": "",
  2664.             "Status": "InStock",
  2665.             "Notes": "here are the notes!",
  2666.             "modals": {
  2667.                 "productsLookup": {
  2668.                     "show": false
  2669.                 }
  2670.             },
  2671.             "BookedInDate": "2017-02-27",
  2672.             "TradePrice": 234,
  2673.             "RRP": 432,
  2674.             "SerialNumber": "124efcd123",
  2675.             "StockID": 16,
  2676.             "Barcode": "test1234",
  2677.             "ManufacturerName": "Test",
  2678.             "added": true,
  2679.             "SalePrice": 432
  2680.         }
  2681.     ],
  2682.     "Notes": "",
  2683.     "Source": "repair",
  2684.     "Discount": 0,
  2685.     "DiscountReason": "",
  2686.     "Deposit": 0,
  2687.     "LabourPrice": 5000,
  2688.     "LabourNotes": "geoff",
  2689.     "ProductNotes": "",
  2690.     "PriceTotal": "5432.00",
  2691.     "RepairID": 74,
  2692.     "SalesID": 68
  2693. }
  2694. {
  2695.     "_id": "dBsjCEQk7CxkiXQzH",
  2696.     "SaleBy": {
  2697.         "undefined": {
  2698.             "isOnCommission": false,
  2699.             "percentCommission": 0
  2700.         }
  2701.     },
  2702.     "Date": 1.488285141494e+12,
  2703.     "CustomerID": 3923,
  2704.     "Customer": {
  2705.         "_id": {
  2706.             "$oid": "57adcc6381c291067c06c186"
  2707.         },
  2708.         "Firstname": "D.a.",
  2709.         "Lastname": "Gower"
  2710.     },
  2711.     "Address": "20 Alamain Gardens, Dartford",
  2712.     "DeliveryAddress": "20 Alamain Gardens, Dartford",
  2713.     "Payments": [
  2714.         {
  2715.             "Date": 1.488285140069e+12,
  2716.             "Amount": 412,
  2717.             "Type": "CreditCard"
  2718.         }
  2719.     ],
  2720.     "SoldItems": [
  2721.         {
  2722.             "_id": "t2pHaqc5rgF9dJeWW",
  2723.             "ProductID": 1222,
  2724.             "Product": {
  2725.                 "_id": "FC6QEqigw9zB23oLd",
  2726.                 "Name": "Test Product"
  2727.             },
  2728.             "Manufacturer": {
  2729.                 "_id": "5FuGfdQcbGhNX8u8M",
  2730.                 "Name": "TEST"
  2731.             },
  2732.             "Model": "test",
  2733.             "ManufacturerID": "",
  2734.             "Status": "InStock",
  2735.             "Notes": "here are the notes!",
  2736.             "modals": {
  2737.                 "productsLookup": {
  2738.                     "show": false
  2739.                 }
  2740.             },
  2741.             "BookedInDate": "2017-02-27",
  2742.             "TradePrice": 234,
  2743.             "RRP": 432,
  2744.             "SerialNumber": "124efcd123",
  2745.             "StockID": 16,
  2746.             "Barcode": "test1234",
  2747.             "ManufacturerName": "Test",
  2748.             "added": true,
  2749.             "SalePrice": 432
  2750.         }
  2751.     ],
  2752.     "Notes": "test info 1",
  2753.     "ProductNotes": "",
  2754.     "PriceTotal": "432.00",
  2755.     "SalesID": 32
  2756. }
  2757. {
  2758.     "_id": "eW6HcP3o8YuAL9Yga",
  2759.     "SaleBy": {
  2760.         "1": {
  2761.             "isOnCommission": true,
  2762.             "percentCommission": 50
  2763.         },
  2764.         "2": {
  2765.             "isOnCommission": false,
  2766.             "percentCommission": 0
  2767.         },
  2768.         "7": {
  2769.             "isOnCommission": true,
  2770.             "percentCommission": 50
  2771.         }
  2772.     },
  2773.     "Date": 1.494934387836e+12,
  2774.     "CustomerID": 12132,
  2775.     "Customer": {
  2776.         "_id": "m2TCtvmmuMNZiYtDB",
  2777.         "Firstname": "test",
  2778.         "Lastname": "test",
  2779.         "Email": "test@@test.com"
  2780.     },
  2781.     "Address": "1",
  2782.     "DeliveryAddress": "1",
  2783.     "Payments": [],
  2784.     "SoldItems": [
  2785.         {
  2786.             "_id": "t2pHaqc5rgF9dJeWW",
  2787.             "ProductID": 1222,
  2788.             "Product": {
  2789.                 "_id": "FC6QEqigw9zB23oLd",
  2790.                 "Name": "Test Product"
  2791.             },
  2792.             "Manufacturer": {
  2793.                 "_id": "5FuGfdQcbGhNX8u8M",
  2794.                 "Name": "TEST"
  2795.             },
  2796.             "Model": "test",
  2797.             "ManufacturerID": "",
  2798.             "Status": "InStock",
  2799.             "Notes": "here are the notes!",
  2800.             "modals": {
  2801.                 "productsLookup": {
  2802.                     "show": false
  2803.                 }
  2804.             },
  2805.             "BookedInDate": "2017-02-27",
  2806.             "TradePrice": 234,
  2807.             "RRP": 432,
  2808.             "SerialNumber": "124efcd123",
  2809.             "StockID": 16,
  2810.             "Barcode": "test1234",
  2811.             "ManufacturerName": "Test",
  2812.             "added": true,
  2813.             "SalePrice": 432
  2814.         }
  2815.     ],
  2816.     "Notes": "test",
  2817.     "ProductNotes": "test",
  2818.     "PriceTotal": "432.00",
  2819.     "SalesID": 52,
  2820.     "Source": "",
  2821.     "Discount": 0,
  2822.     "DiscountReason": "",
  2823.     "LabourPrice": 0,
  2824.     "LabourNotes": "",
  2825.     "IsRefund": true,
  2826.     "RefundAmount": "432",
  2827.     "RefundNotes": "Test - May",
  2828.     "RefundedItems": []
  2829. }
  2830. {
  2831.     "_id": "fQ8aJuca8StYuFQz3",
  2832.     "SaleBy": {
  2833.         "1": {
  2834.             "isOnCommission": true,
  2835.             "percentCommission": 50
  2836.         },
  2837.         "2": {
  2838.             "isOnCommission": true,
  2839.             "percentCommission": 50
  2840.         },
  2841.         "7": {
  2842.             "isOnCommission": false,
  2843.             "percentCommission": 0
  2844.         }
  2845.     },
  2846.     "Date": 1.488441717263e+12,
  2847.     "CustomerID": 12132,
  2848.     "Customer": {
  2849.         "_id": "m2TCtvmmuMNZiYtDB",
  2850.         "Firstname": "test",
  2851.         "Lastname": "test",
  2852.         "Email": "test@@test.com"
  2853.     },
  2854.     "Address": "1",
  2855.     "DeliveryAddress": "1",
  2856.     "Payments": [
  2857.         {
  2858.             "Date": 1.488441715832e+12,
  2859.             "Amount": 432,
  2860.             "Type": "CreditCard"
  2861.         }
  2862.     ],
  2863.     "SoldItems": [
  2864.         {
  2865.             "_id": "t2pHaqc5rgF9dJeWW",
  2866.             "ProductID": 1222,
  2867.             "Product": {
  2868.                 "_id": "FC6QEqigw9zB23oLd",
  2869.                 "Name": "Test Product"
  2870.             },
  2871.             "Manufacturer": {
  2872.                 "_id": "5FuGfdQcbGhNX8u8M",
  2873.                 "Name": "TEST"
  2874.             },
  2875.             "Model": "test",
  2876.             "ManufacturerID": "",
  2877.             "Status": "InStock",
  2878.             "Notes": "here are the notes!",
  2879.             "modals": {
  2880.                 "productsLookup": {
  2881.                     "show": false
  2882.                 }
  2883.             },
  2884.             "BookedInDate": "2017-02-27",
  2885.             "TradePrice": 234,
  2886.             "RRP": 432,
  2887.             "SerialNumber": "124efcd123",
  2888.             "StockID": 16,
  2889.             "Barcode": "test1234",
  2890.             "ManufacturerName": "Test",
  2891.             "added": true,
  2892.             "SalePrice": 432
  2893.         }
  2894.     ],
  2895.     "Notes": "test",
  2896.     "ProductNotes": "",
  2897.     "PriceTotal": "432.00",
  2898.     "SalesID": 47
  2899. }
  2900. {
  2901.     "_id": "fZKeKbSQRJd6vMeMa",
  2902.     "SaleBy": {
  2903.         "1": {
  2904.             "isOnCommission": false,
  2905.             "percentCommission": 0
  2906.         },
  2907.         "2": {
  2908.             "isOnCommission": false,
  2909.             "percentCommission": 0
  2910.         },
  2911.         "7": {
  2912.             "isOnCommission": false,
  2913.             "percentCommission": 0
  2914.         }
  2915.     },
  2916.     "Date": 1.48843985021e+12,
  2917.     "CustomerID": 2718,
  2918.     "Customer": {
  2919.         "_id": {
  2920.             "$oid": "57adcc6381c291067c06bcda"
  2921.         },
  2922.         "Firstname": "D.m.",
  2923.         "Lastname": "Mathews"
  2924.     },
  2925.     "Address": "51 Queens Road, Ashford",
  2926.     "DeliveryAddress": "51 Queens Road, Ashford",
  2927.     "Payments": [],
  2928.     "SoldItems": [],
  2929.     "Notes": "",
  2930.     "ProductNotes": "",
  2931.     "PriceTotal": "50.00",
  2932.     "SalesID": 44
  2933. }
  2934. {
  2935.     "_id": "g7nLQteyWdRLjGxxA",
  2936.     "SaleBy": {
  2937.         "1": {
  2938.             "isOnCommission": false,
  2939.             "percentCommission": 0
  2940.         },
  2941.         "2": {
  2942.             "isOnCommission": true,
  2943.             "percentCommission": 100
  2944.         },
  2945.         "7": {
  2946.             "isOnCommission": false,
  2947.             "percentCommission": 0
  2948.         }
  2949.     },
  2950.     "Date": 1.489651293856e+12,
  2951.     "CustomerID": 3923,
  2952.     "Customer": {
  2953.         "_id": {
  2954.             "$oid": "57adcc6381c291067c06c186"
  2955.         },
  2956.         "Firstname": "D.a.",
  2957.         "Lastname": "Gower"
  2958.     },
  2959.     "Address": "20 Alamain Gardens, Dartford",
  2960.     "DeliveryAddress": "20 Alamain Gardens, Dartford",
  2961.     "Payments": [],
  2962.     "SoldItems": [
  2963.         {
  2964.             "_id": "t2pHaqc5rgF9dJeWW",
  2965.             "ProductID": 1222,
  2966.             "Product": {
  2967.                 "_id": "FC6QEqigw9zB23oLd",
  2968.                 "Name": "Test Product"
  2969.             },
  2970.             "Manufacturer": {
  2971.                 "_id": "5FuGfdQcbGhNX8u8M",
  2972.                 "Name": "TEST"
  2973.             },
  2974.             "Model": "test",
  2975.             "ManufacturerID": "",
  2976.             "Status": "InStock",
  2977.             "Notes": "here are the notes!",
  2978.             "modals": {
  2979.                 "productsLookup": {
  2980.                     "show": false
  2981.                 }
  2982.             },
  2983.             "BookedInDate": "2017-02-27",
  2984.             "TradePrice": 234,
  2985.             "RRP": 432,
  2986.             "SerialNumber": "124efcd123",
  2987.             "StockID": 16,
  2988.             "Barcode": "test1234",
  2989.             "ManufacturerName": "Test",
  2990.             "added": true,
  2991.             "SalePrice": 432
  2992.         }
  2993.     ],
  2994.     "Notes": "Test",
  2995.     "Source": "tillSale",
  2996.     "DiscountReason": "here is a reason",
  2997.     "Deposit": 0,
  2998.     "LabourPrice": 20,
  2999.     "LabourNotes": "Notes about labour",
  3000.     "ProductNotes": "",
  3001.     "PriceTotal": "442.00",
  3002.     "SalesID": 63
  3003. }
  3004. {
  3005.     "_id": "hfmBMD9mri575hvXw",
  3006.     "SaleBy": {
  3007.         "1": {
  3008.             "isOnCommission": true,
  3009.             "percentCommission": 100
  3010.         },
  3011.         "2": {
  3012.             "isOnCommission": false,
  3013.             "percentCommission": 0
  3014.         },
  3015.         "7": {
  3016.             "isOnCommission": false,
  3017.             "percentCommission": 0
  3018.         }
  3019.     },
  3020.     "Date": 1.494934429628e+12,
  3021.     "CustomerID": 12132,
  3022.     "Customer": {
  3023.         "_id": "m2TCtvmmuMNZiYtDB",
  3024.         "Firstname": "test",
  3025.         "Lastname": "test",
  3026.         "Email": "test@@test.com"
  3027.     },
  3028.     "Address": "1",
  3029.     "DeliveryAddress": "1",
  3030.     "Payments": [],
  3031.     "SoldItems": [
  3032.         {
  3033.             "_id": "Xi4AYcJXjaeKtizmE",
  3034.             "ProductID": 73,
  3035.             "Product": {
  3036.                 "_id": "57c5b137eafb5b7e37b8dc84",
  3037.                 "Name": "SPEAKER LINK - (5M DEM ROOM)"
  3038.             },
  3039.             "ManufacturerID": "",
  3040.             "Manufacturer": {
  3041.                 "_id": "",
  3042.                 "Name": ""
  3043.             },
  3044.             "SerialNumber": "33333",
  3045.             "Status": "InStock",
  3046.             "Notes": "",
  3047.             "modals": {
  3048.                 "productsLookup": {
  3049.                     "show": false
  3050.                 }
  3051.             },
  3052.             "BookedInDate": "2017-02-02",
  3053.             "TradePrice": 100,
  3054.             "RRP": 105,
  3055.             "StockID": 14,
  3056.             "Model": "SPEAKER LINK",
  3057.             "ManufacturerName": "MERIDIAN AUDIO LTD",
  3058.             "added": true,
  3059.             "SalePrice": 105
  3060.         }
  3061.     ],
  3062.     "Notes": "test",
  3063.     "ProductNotes": "test",
  3064.     "PriceTotal": "105.00",
  3065.     "SalesID": 37,
  3066.     "Source": "",
  3067.     "Discount": 0,
  3068.     "DiscountReason": "",
  3069.     "LabourPrice": 0,
  3070.     "LabourNotes": "",
  3071.     "IsRefund": true,
  3072.     "RefundAmount": "105",
  3073.     "RefundNotes": "Test ",
  3074.     "RefundedItems": []
  3075. }
  3076. {
  3077.     "_id": "hfsbh4Mzid4BoiaYE",
  3078.     "SaleBy": {
  3079.         "1": {
  3080.             "isOnCommission": false,
  3081.             "percentCommission": 0
  3082.         },
  3083.         "2": {
  3084.             "isOnCommission": false,
  3085.             "percentCommission": 0
  3086.         },
  3087.         "7": {
  3088.             "isOnCommission": false,
  3089.             "percentCommission": 0
  3090.         }
  3091.     },
  3092.     "Date": 1.494935298494e+12,
  3093.     "Customer": {},
  3094.     "Payments": [
  3095.         {
  3096.             "Date": 1.494935294968e+12,
  3097.             "Amount": 766,
  3098.             "Type": "CreditCard"
  3099.         }
  3100.     ],
  3101.     "SoldItems": [
  3102.         {
  3103.             "_id": "zyEhuSmXgh3F36Ap3",
  3104.             "ProductID": 1222,
  3105.             "Product": {
  3106.                 "_id": "FC6QEqigw9zB23oLd",
  3107.                 "Name": "Test Product"
  3108.             },
  3109.             "Manufacturer": {
  3110.                 "_id": "5FuGfdQcbGhNX8u8M",
  3111.                 "Name": "TEST"
  3112.             },
  3113.             "Model": "test",
  3114.             "ManufacturerID": "",
  3115.             "Status": "",
  3116.             "Notes": "test",
  3117.             "modals": {
  3118.                 "productsLookup": {
  3119.                     "show": false
  3120.                 }
  3121.             },
  3122.             "BookedInDate": "2017-03-02",
  3123.             "TradePrice": 765,
  3124.             "RRP": 766,
  3125.             "SerialNumber": "9856746354657",
  3126.             "StockID": 21,
  3127.             "Barcode": "test1234",
  3128.             "ManufacturerName": "TEST",
  3129.             "added": true,
  3130.             "SalePrice": 766
  3131.         }
  3132.     ],
  3133.     "Notes": "TEST - May",
  3134.     "Source": "repair",
  3135.     "Discount": 0,
  3136.     "DiscountReason": "",
  3137.     "Deposit": 0,
  3138.     "LabourPrice": 0,
  3139.     "LabourNotes": "",
  3140.     "ProductNotes": "",
  3141.     "PriceTotal": "766.00",
  3142.     "IsRefund": false,
  3143.     "RefundAmount": 0,
  3144.     "RefundNotes": "",
  3145.     "RefundedItems": [],
  3146.     "RepairID": 83,
  3147.     "SalesID": 77
  3148. }
  3149. {
  3150.     "_id": "iCYHEzhzJr4GG4gST",
  3151.     "SaleBy": {
  3152.         "2": {
  3153.             "isOnCommission": false,
  3154.             "percentCommission": 0
  3155.         },
  3156.         "undefined": {
  3157.             "isOnCommission": false,
  3158.             "percentCommission": 0
  3159.         }
  3160.     },
  3161.     "Date": 1.494933881442e+12,
  3162.     "CustomerID": 12134,
  3163.     "Customer": {
  3164.         "_id": "tvc9sXZMq55Qxpf9c",
  3165.         "Firstname": "Mr",
  3166.         "Lastname": "Test",
  3167.         "Email": "test@testemail.co.uk"
  3168.     },
  3169.     "DeliveryAddress": "5",
  3170.     "Payments": [],
  3171.     "SoldItems": [
  3172.         {
  3173.             "_id": "t2pHaqc5rgF9dJeWW",
  3174.             "ProductID": 1222,
  3175.             "Product": {
  3176.                 "_id": "FC6QEqigw9zB23oLd",
  3177.                 "Name": "Test Product"
  3178.             },
  3179.             "Manufacturer": {
  3180.                 "_id": "5FuGfdQcbGhNX8u8M",
  3181.                 "Name": "TEST"
  3182.             },
  3183.             "Model": "test",
  3184.             "ManufacturerID": "",
  3185.             "Status": "InStock",
  3186.             "Notes": "here are the notes!",
  3187.             "modals": {
  3188.                 "productsLookup": {
  3189.                     "show": false
  3190.                 }
  3191.             },
  3192.             "BookedInDate": "2017-02-27",
  3193.             "TradePrice": 234,
  3194.             "RRP": 432,
  3195.             "SerialNumber": "124efcd123",
  3196.             "StockID": 16,
  3197.             "Barcode": "test1234",
  3198.             "ManufacturerName": "TEST",
  3199.             "added": true,
  3200.             "SalePrice": 432
  3201.         },
  3202.         {
  3203.             "_id": "zyEhuSmXgh3F36Ap3",
  3204.             "ProductID": 1222,
  3205.             "Product": {
  3206.                 "_id": "FC6QEqigw9zB23oLd",
  3207.                 "Name": "Test Product"
  3208.             },
  3209.             "Manufacturer": {
  3210.                 "_id": "5FuGfdQcbGhNX8u8M",
  3211.                 "Name": "TEST"
  3212.             },
  3213.             "Model": "test",
  3214.             "ManufacturerID": "",
  3215.             "Status": "",
  3216.             "Notes": "test",
  3217.             "modals": {
  3218.                 "productsLookup": {
  3219.                     "show": false
  3220.                 }
  3221.             },
  3222.             "BookedInDate": "2017-03-02",
  3223.             "TradePrice": 765,
  3224.             "RRP": 766,
  3225.             "SerialNumber": "9856746354657",
  3226.             "StockID": 21,
  3227.             "Barcode": "test1234",
  3228.             "ManufacturerName": "TEST",
  3229.             "added": true,
  3230.             "SalePrice": 766
  3231.         }
  3232.     ],
  3233.     "Notes": "may testing ",
  3234.     "Source": "repair",
  3235.     "Discount": 0,
  3236.     "DiscountReason": "",
  3237.     "Deposit": 0,
  3238.     "LabourPrice": 0,
  3239.     "LabourNotes": "",
  3240.     "ProductNotes": "test",
  3241.     "PriceTotal": "1198.00",
  3242.     "SalesID": 71,
  3243.     "Address": "5",
  3244.     "IsRefund": true,
  3245.     "RefundAmount": "1198",
  3246.     "RefundNotes": "Test",
  3247.     "RefundedItems": [
  3248.         {
  3249.             "_id": "zyEhuSmXgh3F36Ap3",
  3250.             "ProductID": 1222,
  3251.             "Product": {
  3252.                 "_id": "FC6QEqigw9zB23oLd",
  3253.                 "Name": "Test Product"
  3254.             },
  3255.             "Manufacturer": {
  3256.                 "_id": "5FuGfdQcbGhNX8u8M",
  3257.                 "Name": "TEST"
  3258.             },
  3259.             "Model": "test",
  3260.             "ManufacturerID": "",
  3261.             "Status": "",
  3262.             "Notes": "test",
  3263.             "modals": {
  3264.                 "productsLookup": {
  3265.                     "show": false
  3266.                 }
  3267.             },
  3268.             "BookedInDate": "2017-03-02",
  3269.             "TradePrice": 765,
  3270.             "RRP": 766,
  3271.             "SerialNumber": "9856746354657",
  3272.             "StockID": 21,
  3273.             "Barcode": "test1234",
  3274.             "ManufacturerName": "TEST",
  3275.             "added": true,
  3276.             "SalePrice": 766
  3277.         }
  3278.     ]
  3279. }
  3280. {
  3281.     "_id": "k48JED65Sf76Ty3PK",
  3282.     "SaleBy": {
  3283.         "1": {
  3284.             "isOnCommission": false,
  3285.             "percentCommission": 0
  3286.         },
  3287.         "2": {
  3288.             "isOnCommission": true,
  3289.             "percentCommission": 50
  3290.         },
  3291.         "7": {
  3292.             "isOnCommission": false,
  3293.             "percentCommission": 0
  3294.         }
  3295.     },
  3296.     "Date": 1.494678877605e+12,
  3297.     "CustomerID": 12134,
  3298.     "Customer": {
  3299.         "_id": "tvc9sXZMq55Qxpf9c",
  3300.         "Firstname": "Mr",
  3301.         "Lastname": "Test",
  3302.         "Email": "test@testemail.co.uk"
  3303.     },
  3304.     "Address": "5",
  3305.     "DeliveryAddress": "5",
  3306.     "Payments": [
  3307.         {
  3308.             "Date": 1.494678873264e+12,
  3309.             "Amount": 0.5,
  3310.             "Type": "CreditCard"
  3311.         }
  3312.     ],
  3313.     "SoldItems": [
  3314.         {
  3315.             "_id": "zyEhuSmXgh3F36Ap3",
  3316.             "ProductID": 1222,
  3317.             "Product": {
  3318.                 "_id": "FC6QEqigw9zB23oLd",
  3319.                 "Name": "Test Product"
  3320.             },
  3321.             "Manufacturer": {
  3322.                 "_id": "5FuGfdQcbGhNX8u8M",
  3323.                 "Name": "TEST"
  3324.             },
  3325.             "Model": "test",
  3326.             "ManufacturerID": "",
  3327.             "Status": "",
  3328.             "Notes": "test",
  3329.             "modals": {
  3330.                 "productsLookup": {
  3331.                     "show": false
  3332.                 }
  3333.             },
  3334.             "BookedInDate": "2017-03-02",
  3335.             "TradePrice": 765,
  3336.             "RRP": 766,
  3337.             "SerialNumber": "9856746354657",
  3338.             "StockID": 21,
  3339.             "Barcode": "test1234",
  3340.             "ManufacturerName": "TEST",
  3341.             "added": true,
  3342.             "SalePrice": 766
  3343.         }
  3344.     ],
  3345.     "Notes": "This here is a test",
  3346.     "Source": "phone",
  3347.     "Discount": 0,
  3348.     "DiscountReason": "",
  3349.     "Deposit": 0,
  3350.     "LabourPrice": 100,
  3351.     "LabourNotes": "test labor case",
  3352.     "ProductNotes": "",
  3353.     "PriceTotal": "866.00",
  3354.     "IsRefund": false,
  3355.     "RefundAmount": 0,
  3356.     "RefundNotes": "",
  3357.     "RefundedItems": [],
  3358.     "SalesID": 75
  3359. }
  3360. {
  3361.     "_id": "maSLRe5639X6rfAva",
  3362.     "SaleBy": {
  3363.         "1": {
  3364.             "isOnCommission": false,
  3365.             "percentCommission": 0
  3366.         },
  3367.         "2": {
  3368.             "isOnCommission": false,
  3369.             "percentCommission": 0
  3370.         },
  3371.         "7": {
  3372.             "isOnCommission": false,
  3373.             "percentCommission": 0
  3374.         }
  3375.     },
  3376.     "Date": 1.488440066544e+12,
  3377.     "CustomerID": 2718,
  3378.     "Customer": {
  3379.         "_id": {
  3380.             "$oid": "57adcc6381c291067c06bcda"
  3381.         },
  3382.         "Firstname": "D.m.",
  3383.         "Lastname": "Mathews"
  3384.     },
  3385.     "Address": "51 Queens Road, Ashford",
  3386.     "DeliveryAddress": "51 Queens Road, Ashford",
  3387.     "Payments": [],
  3388.     "SoldItems": [],
  3389.     "Notes": "",
  3390.     "ProductNotes": "",
  3391.     "PriceTotal": "50.00",
  3392.     "SalesID": 45
  3393. }
  3394. {
  3395.     "_id": "md6uX3aDg2dJKmkGm",
  3396.     "SaleBy": {
  3397.         "1": {
  3398.             "isOnCommission": false,
  3399.             "percentCommission": 0
  3400.         },
  3401.         "2": {
  3402.             "isOnCommission": false,
  3403.             "percentCommission": 0
  3404.         },
  3405.         "7": {
  3406.             "isOnCommission": false,
  3407.             "percentCommission": 0
  3408.         }
  3409.     },
  3410.     "Date": 1.493799379971e+12,
  3411.     "Customer": {},
  3412.     "Payments": [
  3413.         {
  3414.             "Date": 1.493799376383e+12,
  3415.             "Amount": 432,
  3416.             "Type": "CreditCard"
  3417.         }
  3418.     ],
  3419.     "SoldItems": [
  3420.         {
  3421.             "_id": "t2pHaqc5rgF9dJeWW",
  3422.             "ProductID": 1222,
  3423.             "Product": {
  3424.                 "_id": "FC6QEqigw9zB23oLd",
  3425.                 "Name": "Test Product"
  3426.             },
  3427.             "Manufacturer": {
  3428.                 "_id": "5FuGfdQcbGhNX8u8M",
  3429.                 "Name": "TEST"
  3430.             },
  3431.             "Model": "test",
  3432.             "ManufacturerID": "",
  3433.             "Status": "InStock",
  3434.             "Notes": "here are the notes!",
  3435.             "modals": {
  3436.                 "productsLookup": {
  3437.                     "show": false
  3438.                 }
  3439.             },
  3440.             "BookedInDate": "2017-02-27",
  3441.             "TradePrice": 234,
  3442.             "RRP": 432,
  3443.             "SerialNumber": "124efcd123",
  3444.             "StockID": 16,
  3445.             "Barcode": "test1234",
  3446.             "ManufacturerName": "TEST",
  3447.             "added": true,
  3448.             "SalePrice": 432
  3449.         }
  3450.     ],
  3451.     "Notes": "This is the very new one",
  3452.     "Source": "repair",
  3453.     "Discount": 0,
  3454.     "DiscountReason": "",
  3455.     "Deposit": 0,
  3456.     "LabourPrice": 0,
  3457.     "LabourNotes": "",
  3458.     "ProductNotes": "",
  3459.     "PriceTotal": "432.00",
  3460.     "SalesID": 72
  3461. }
  3462. {
  3463.     "_id": "nLuAJ6mwNGSqGpF5K",
  3464.     "SaleBy": {
  3465.         "1": {
  3466.             "isOnCommission": false,
  3467.             "percentCommission": 0
  3468.         },
  3469.         "2": {
  3470.             "isOnCommission": true,
  3471.             "percentCommission": 100
  3472.         },
  3473.         "7": {
  3474.             "isOnCommission": false,
  3475.             "percentCommission": 0
  3476.         }
  3477.     },
  3478.     "Date": 1.488389198496e+12,
  3479.     "CustomerID": 12132,
  3480.     "Customer": {
  3481.         "_id": "m2TCtvmmuMNZiYtDB",
  3482.         "Firstname": "test",
  3483.         "Lastname": "test",
  3484.         "Email": "test@@test.com"
  3485.     },
  3486.     "Address": "1",
  3487.     "DeliveryAddress": "1",
  3488.     "Payments": [
  3489.         {
  3490.             "Date": 1.48838919689e+12,
  3491.             "Amount": 332,
  3492.             "Type": "CreditCard"
  3493.         }
  3494.     ],
  3495.     "SoldItems": [
  3496.         {
  3497.             "_id": "t2pHaqc5rgF9dJeWW",
  3498.             "ProductID": 1222,
  3499.             "Product": {
  3500.                 "_id": "FC6QEqigw9zB23oLd",
  3501.                 "Name": "Test Product"
  3502.             },
  3503.             "Manufacturer": {
  3504.                 "_id": "5FuGfdQcbGhNX8u8M",
  3505.                 "Name": "TEST"
  3506.             },
  3507.             "Model": "test",
  3508.             "ManufacturerID": "",
  3509.             "Status": "InStock",
  3510.             "Notes": "here are the notes!",
  3511.             "modals": {
  3512.                 "productsLookup": {
  3513.                     "show": false
  3514.                 }
  3515.             },
  3516.             "BookedInDate": "2017-02-27",
  3517.             "TradePrice": 234,
  3518.             "RRP": 432,
  3519.             "SerialNumber": "124efcd123",
  3520.             "StockID": 16,
  3521.             "Barcode": "test1234",
  3522.             "ManufacturerName": "Test",
  3523.             "added": true,
  3524.             "SalePrice": 432
  3525.         }
  3526.     ],
  3527.     "Notes": "test",
  3528.     "ProductNotes": "",
  3529.     "PriceTotal": "432.00",
  3530.     "SalesID": 38
  3531. }
  3532. {
  3533.     "_id": "nzm5YfnFSmFREzh6f",
  3534.     "SaleBy": {
  3535.         "1": {
  3536.             "isOnCommission": false,
  3537.             "percentCommission": 0
  3538.         },
  3539.         "2": {
  3540.             "isOnCommission": false,
  3541.             "percentCommission": 0
  3542.         },
  3543.         "7": {
  3544.             "isOnCommission": false,
  3545.             "percentCommission": 0
  3546.         }
  3547.     },
  3548.     "Date": 1.489649500299e+12,
  3549.     "CustomerID": 12134,
  3550.     "Customer": {
  3551.         "_id": "tvc9sXZMq55Qxpf9c",
  3552.         "Firstname": "Mr",
  3553.         "Lastname": "Test",
  3554.         "Email": "test@testemail.co.uk"
  3555.     },
  3556.     "Address": "5",
  3557.     "DeliveryAddress": "5",
  3558.     "Payments": [],
  3559.     "SoldItems": [
  3560.         {
  3561.             "_id": "LBuHs2sY87YaycxMP",
  3562.             "ProductID": 1211,
  3563.             "Product": {
  3564.                 "_id": "Pwek9SEYmiHSEgipT",
  3565.                 "Name": "Test"
  3566.             },
  3567.             "Manufacturer": {
  3568.                 "_id": "57c5b0feeafb5b7e37b8dc04",
  3569.                 "Name": "SPECTRAL FURNITURE LTD"
  3570.             },
  3571.             "Model": "Test Model",
  3572.             "ManufacturerID": "",
  3573.             "Status": "",
  3574.             "Notes": "This is just a note",
  3575.             "modals": {
  3576.                 "productsLookup": {
  3577.                     "show": false
  3578.                 },
  3579.                 "wishlist": {
  3580.                     "show": false
  3581.                 }
  3582.             },
  3583.             "wishlistCustomer": {},
  3584.             "BookedInDate": "2017-03-16",
  3585.             "TradePrice": 353,
  3586.             "RRP": 463,
  3587.             "SerialNumber": "5463453",
  3588.             "StockID": 56,
  3589.             "Barcode": "",
  3590.             "ManufacturerName": "SPECTRAL FURNITURE LTD",
  3591.             "added": true,
  3592.             "SalePrice": 463
  3593.         }
  3594.     ],
  3595.     "Notes": "test",
  3596.     "Source": "internet",
  3597.     "Deposit": 0,
  3598.     "LabourPrice": 20,
  3599.     "LabourNotes": "test",
  3600.     "ProductNotes": "",
  3601.     "PriceTotal": "473.00",
  3602.     "SalesID": 60
  3603. }
  3604. {
  3605.     "_id": "onm44dZBsoGk2SK3F",
  3606.     "SaleBy": {
  3607.         "1": {
  3608.             "isOnCommission": false,
  3609.             "percentCommission": 0
  3610.         },
  3611.         "2": {
  3612.             "isOnCommission": false,
  3613.             "percentCommission": 0
  3614.         },
  3615.         "7": {
  3616.             "isOnCommission": false,
  3617.             "percentCommission": 0
  3618.         }
  3619.     },
  3620.     "Date": 1.491324454895e+12,
  3621.     "CustomerID": 7013,
  3622.     "Customer": {
  3623.         "_id": {
  3624.             "$oid": "57adcc6381c291067c06cd82"
  3625.         },
  3626.         "Lastname": "Rawlings"
  3627.     },
  3628.     "Address": "1 Upper Park Gate Farm Cottage, Park Lane",
  3629.     "DeliveryAddress": "1 Upper Park Gate Farm Cottage, Park Lane",
  3630.     "Payments": [
  3631.         {
  3632.             "Date": 1.491324453223e+12,
  3633.             "Amount": 21,
  3634.             "Type": "CreditCard"
  3635.         }
  3636.     ],
  3637.     "SoldItems": [
  3638.         {
  3639.             "_id": "EKZ2v8rk7XPiDJjZF",
  3640.             "ProductID": 1233,
  3641.             "Product": {
  3642.                 "_id": "eAYN4ded8AEJY3cxW",
  3643.                 "Name": ""
  3644.             },
  3645.             "Manufacturer": {
  3646.                 "_id": {
  3647.                     "$oid": "57c5b0feeafb5b7e37b8dc26"
  3648.                 },
  3649.                 "Name": "REGA RESEARCH LTD"
  3650.             },
  3651.             "Model": "Rega White Belt",
  3652.             "ManufacturerID": "",
  3653.             "Status": "",
  3654.             "Notes": "",
  3655.             "modals": {
  3656.                 "productsLookup": {
  3657.                     "show": false
  3658.                 },
  3659.                 "wishlist": {
  3660.                     "show": false
  3661.                 }
  3662.             },
  3663.             "wishlistCustomer": {},
  3664.             "BookedInDate": "2017-04-04",
  3665.             "TradePrice": 11,
  3666.             "RRP": 21,
  3667.             "SerialNumber": "return test",
  3668.             "StockID": 72,
  3669.             "Barcode": "",
  3670.             "ManufacturerName": "REGA RESEARCH LTD",
  3671.             "added": true,
  3672.             "SalePrice": 21
  3673.         }
  3674.     ],
  3675.     "Notes": "",
  3676.     "Source": "",
  3677.     "Discount": 0,
  3678.     "DiscountReason": "",
  3679.     "Deposit": 0,
  3680.     "LabourPrice": 0,
  3681.     "LabourNotes": "",
  3682.     "ProductNotes": "",
  3683.     "PriceTotal": "21.00",
  3684.     "SalesID": 70
  3685. }
  3686. {
  3687.     "_id": "pAnJ8ZMoDztgRFcLz",
  3688.     "SaleBy": {
  3689.         "1": {
  3690.             "isOnCommission": false,
  3691.             "percentCommission": 0
  3692.         },
  3693.         "2": {
  3694.             "isOnCommission": false,
  3695.             "percentCommission": 0
  3696.         },
  3697.         "7": {
  3698.             "isOnCommission": false,
  3699.             "percentCommission": 0
  3700.         }
  3701.     },
  3702.     "Date": 1.48845525818e+12,
  3703.     "CustomerID": 2716,
  3704.     "Customer": {
  3705.         "_id": {
  3706.             "$oid": "57adcc6381c291067c06bcd8"
  3707.         },
  3708.         "Lastname": "Mathews"
  3709.     },
  3710.     "Address": "196 Hythe Road, Ashford",
  3711.     "DeliveryAddress": "196 Hythe Road, Ashford",
  3712.     "Payments": [
  3713.         {
  3714.             "Date": 1.488455255299e+12,
  3715.             "Amount": 40,
  3716.             "Type": "CreditCard"
  3717.         }
  3718.     ],
  3719.     "SoldItems": [],
  3720.     "Notes": "",
  3721.     "ProductNotes": "",
  3722.     "PriceTotal": "0.00",
  3723.     "SalesID": 56
  3724. }
  3725. {
  3726.     "_id": "r4AHfKP5oqYiJo2ZK",
  3727.     "SaleBy": {
  3728.         "1": {
  3729.             "isOnCommission": false,
  3730.             "percentCommission": 0
  3731.         },
  3732.         "2": {
  3733.             "isOnCommission": false,
  3734.             "percentCommission": 0
  3735.         },
  3736.         "7": {
  3737.             "isOnCommission": true,
  3738.             "percentCommission": 100
  3739.         }
  3740.     },
  3741.     "Date": 1.486056881828e+12,
  3742.     "CustomerID": 7832,
  3743.     "Customer": {
  3744.         "_id": "57adcc6381c291067c06d0b5",
  3745.         "Firstname": "",
  3746.         "Lastname": "Mathews",
  3747.         "Email": ""
  3748.     },
  3749.     "Address": "196 Hythe Road, Ashford",
  3750.     "DeliveryAddress": "196 Hythe Road, Ashford",
  3751.     "Payments": [],
  3752.     "SoldItems": [
  3753.         {
  3754.             "StockID": 15,
  3755.             "SalePrice": 40
  3756.         }
  3757.     ],
  3758.     "Notes": "",
  3759.     "ProductNotes": "",
  3760.     "PriceTotal": "20.00",
  3761.     "SalesID": 7
  3762. }
  3763. {
  3764.     "_id": "snkBiQwDw92csZZdH",
  3765.     "SaleBy": {
  3766.         "1": {
  3767.             "isOnCommission": false,
  3768.             "percentCommission": 0
  3769.         },
  3770.         "2": {
  3771.             "isOnCommission": false,
  3772.             "percentCommission": 0
  3773.         },
  3774.         "7": {
  3775.             "isOnCommission": false,
  3776.             "percentCommission": 0
  3777.         }
  3778.     },
  3779.     "Date": 1.490035303037e+12,
  3780.     "CustomerID": 12138,
  3781.     "Customer": {
  3782.         "_id": "Ced3AQngWzrDZHXHo",
  3783.         "Firstname": "f.",
  3784.         "Lastname": "Rankenstein",
  3785.         "Email": "dr@frank.com"
  3786.     },
  3787.     "Address": "1",
  3788.     "DeliveryAddress": "1",
  3789.     "Payments": [],
  3790.     "SoldItems": [
  3791.         {
  3792.             "_id": "Cw5gYmSr4gMbNqPEN",
  3793.             "ProductID": 1232,
  3794.             "Product": {
  3795.                 "_id": "",
  3796.                 "Name": ""
  3797.             },
  3798.             "Manufacturer": {
  3799.                 "_id": {
  3800.                     "$oid": "57c5b0feeafb5b7e37b8dc05"
  3801.                 },
  3802.                 "Name": "LINN PRODUCTS LTD"
  3803.             },
  3804.             "Model": "Akurate DSM",
  3805.             "ManufacturerID": "",
  3806.             "Status": "",
  3807.             "Notes": "",
  3808.             "modals": {
  3809.                 "productsLookup": {
  3810.                     "show": false
  3811.                 },
  3812.                 "wishlist": {
  3813.                     "show": false
  3814.                 }
  3815.             },
  3816.             "wishlistCustomer": {},
  3817.             "BookedInDate": "2017-03-20",
  3818.             "TradePrice": 1000,
  3819.             "RRP": 2000,
  3820.             "SerialNumber": "123456",
  3821.             "StockID": 58,
  3822.             "Barcode": "",
  3823.             "ManufacturerName": "LINN PRODUCTS LTD",
  3824.             "added": true,
  3825.             "SalePrice": 2000
  3826.         }
  3827.     ],
  3828.     "Notes": "",
  3829.     "Source": "",
  3830.     "Discount": 0,
  3831.     "DiscountReason": "",
  3832.     "Deposit": 0,
  3833.     "LabourPrice": 0,
  3834.     "LabourNotes": "",
  3835.     "ProductNotes": "",
  3836.     "PriceTotal": "2000.00",
  3837.     "SalesID": 67
  3838. }
  3839. {
  3840.     "_id": "udkByiZmEu9SEfNWM",
  3841.     "SaleBy": {
  3842.         "1": {
  3843.             "isOnCommission": false,
  3844.             "percentCommission": 0
  3845.         },
  3846.         "2": {
  3847.             "isOnCommission": false,
  3848.             "percentCommission": 0
  3849.         },
  3850.         "7": {
  3851.             "isOnCommission": true,
  3852.             "percentCommission": 100
  3853.         }
  3854.     },
  3855.     "Date": 1.488453066669e+12,
  3856.     "CustomerID": 2716,
  3857.     "Customer": {
  3858.         "_id": {
  3859.             "$oid": "57adcc6381c291067c06bcd8"
  3860.         },
  3861.         "Lastname": "Mathews"
  3862.     },
  3863.     "Address": "196 Hythe Road, Ashford",
  3864.     "DeliveryAddress": "196 Hythe Road, Ashford",
  3865.     "Payments": [
  3866.         {
  3867.             "Date": 1.488453007668e+12,
  3868.             "Amount": 461.35,
  3869.             "Type": "Cash"
  3870.         }
  3871.     ],
  3872.     "SoldItems": [
  3873.         {
  3874.             "_id": "xQRzkqMfPJzeTw3ki",
  3875.             "ProductID": 1222,
  3876.             "Product": {
  3877.                 "_id": "FC6QEqigw9zB23oLd",
  3878.                 "Name": "Test Product"
  3879.             },
  3880.             "Manufacturer": {
  3881.                 "_id": "5FuGfdQcbGhNX8u8M",
  3882.                 "Name": "TEST"
  3883.             },
  3884.             "Model": "test",
  3885.             "ManufacturerID": "",
  3886.             "Status": "",
  3887.             "Notes": "test",
  3888.             "modals": {
  3889.                 "productsLookup": {
  3890.                     "show": false
  3891.                 }
  3892.             },
  3893.             "BookedInDate": "2017-03-02",
  3894.             "TradePrice": 532,
  3895.             "RRP": 533,
  3896.             "SerialNumber": "7546352",
  3897.             "StockID": 20,
  3898.             "Barcode": "test1234",
  3899.             "ManufacturerName": "Test",
  3900.             "added": true,
  3901.             "SalePrice": 533
  3902.         },
  3903.         {
  3904.             "_id": "zyEhuSmXgh3F36Ap3",
  3905.             "ProductID": 1222,
  3906.             "Product": {
  3907.                 "_id": "FC6QEqigw9zB23oLd",
  3908.                 "Name": "Test Product"
  3909.             },
  3910.             "Manufacturer": {
  3911.                 "_id": "5FuGfdQcbGhNX8u8M",
  3912.                 "Name": "TEST"
  3913.             },
  3914.             "Model": "test",
  3915.             "ManufacturerID": "",
  3916.             "Status": "",
  3917.             "Notes": "test",
  3918.             "modals": {
  3919.                 "productsLookup": {
  3920.                     "show": false
  3921.                 }
  3922.             },
  3923.             "BookedInDate": "2017-03-02",
  3924.             "TradePrice": 765,
  3925.             "RRP": 766,
  3926.             "SerialNumber": "9856746354657",
  3927.             "StockID": 21,
  3928.             "Barcode": "test1234",
  3929.             "ManufacturerName": "Test",
  3930.             "added": true,
  3931.             "SalePrice": 766
  3932.         }
  3933.     ],
  3934.     "Notes": "",
  3935.     "ProductNotes": "",
  3936.     "PriceTotal": "1461.35",
  3937.     "SalesID": 53
  3938. }
  3939. {
  3940.     "_id": "uzjCRqyH2mYPvbQEA",
  3941.     "SaleBy": {
  3942.         "undefined": {
  3943.             "isOnCommission": false,
  3944.             "percentCommission": 0
  3945.         }
  3946.     },
  3947.     "Date": 1.485370637919e+12,
  3948.     "CustomerID": 2716,
  3949.     "Customer": {
  3950.         "_id": "57adcc6381c291067c06bcd8",
  3951.         "Firstname": "",
  3952.         "Lastname": "Mathews",
  3953.         "Email": ""
  3954.     },
  3955.     "Address": "196 Hythe Road, Ashford",
  3956.     "DeliveryAddress": "196 Hythe Road, Ashford",
  3957.     "Payments": [],
  3958.     "SoldItems": [
  3959.         {
  3960.             "StockID": 12,
  3961.             "SalePrice": 1799
  3962.         },
  3963.         {
  3964.             "StockID": 11,
  3965.             "SalePrice": 66
  3966.         }
  3967.     ],
  3968.     "Notes": "",
  3969.     "ProductNotes": "",
  3970.     "PriceTotal": "1815.00",
  3971.     "SalesID": 4
  3972. }
  3973. {
  3974.     "_id": "wTnAEjWEssKHxgWa9",
  3975.     "SaleBy": {
  3976.         "1": {
  3977.             "isOnCommission": true,
  3978.             "percentCommission": 50
  3979.         },
  3980.         "2": {
  3981.             "isOnCommission": true,
  3982.             "percentCommission": 50
  3983.         },
  3984.         "7": {
  3985.             "isOnCommission": false,
  3986.             "percentCommission": 0
  3987.         }
  3988.     },
  3989.     "Date": 1.48844602459e+12,
  3990.     "CustomerID": 12132,
  3991.     "Customer": {
  3992.         "_id": "m2TCtvmmuMNZiYtDB",
  3993.         "Firstname": "test",
  3994.         "Lastname": "test",
  3995.         "Email": "test@@test.com"
  3996.     },
  3997.     "Address": "1",
  3998.     "DeliveryAddress": "1",
  3999.     "Payments": [],
  4000.     "SoldItems": [
  4001.         {
  4002.             "_id": "t2pHaqc5rgF9dJeWW",
  4003.             "ProductID": 1222,
  4004.             "Product": {
  4005.                 "_id": "FC6QEqigw9zB23oLd",
  4006.                 "Name": "Test Product"
  4007.             },
  4008.             "Manufacturer": {
  4009.                 "_id": "5FuGfdQcbGhNX8u8M",
  4010.                 "Name": "TEST"
  4011.             },
  4012.             "Model": "test",
  4013.             "ManufacturerID": "",
  4014.             "Status": "InStock",
  4015.             "Notes": "here are the notes!",
  4016.             "modals": {
  4017.                 "productsLookup": {
  4018.                     "show": false
  4019.                 }
  4020.             },
  4021.             "BookedInDate": "2017-02-27",
  4022.             "TradePrice": 234,
  4023.             "RRP": 432,
  4024.             "SerialNumber": "124efcd123",
  4025.             "StockID": 16,
  4026.             "Barcode": "test1234",
  4027.             "ManufacturerName": "Test",
  4028.             "added": true,
  4029.             "SalePrice": 432
  4030.         }
  4031.     ],
  4032.     "Notes": "test",
  4033.     "ProductNotes": "",
  4034.     "PriceTotal": "432.00",
  4035.     "SalesID": 50
  4036. }
  4037. {
  4038.     "_id": "yLci2RnzEdekNtYez",
  4039.     "SaleBy": {
  4040.         "1": {
  4041.             "isOnCommission": true,
  4042.             "percentCommission": 87
  4043.         },
  4044.         "2": {
  4045.             "isOnCommission": false,
  4046.             "percentCommission": 13
  4047.         },
  4048.         "7": {
  4049.             "isOnCommission": true,
  4050.             "percentCommission": 87
  4051.         }
  4052.     },
  4053.     "Date": 1.475513714461e+12,
  4054.     "CustomerID": 1505,
  4055.     "Customer": {
  4056.         "_id": "57adcc6381c291067c06b829",
  4057.         "Firstname": "",
  4058.         "Lastname": "Rawlings",
  4059.         "Email": ""
  4060.     },
  4061.     "Address": "114 Speldhurst Close, Stanhope",
  4062.     "DeliveryAddress": "114 Speldhurst Close, Stanhope",
  4063.     "Payments": [],
  4064.     "SoldItems": [
  4065.         {
  4066.             "StockID": 10,
  4067.             "SalePrice": 255
  4068.         },
  4069.         {
  4070.             "StockID": 4,
  4071.             "SalePrice": 234
  4072.         },
  4073.         {
  4074.             "StockID": 6,
  4075.             "SalePrice": 345
  4076.         }
  4077.     ],
  4078.     "Notes": "",
  4079.     "ProductNotes": "",
  4080.     "PriceTotal": "759.00",
  4081.     "SalesID": null,
  4082.     "Archived": true
  4083. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement