mirror of
https://github.com/valitydev/koffing.git
synced 2024-11-06 17:25:22 +00:00
23 lines
545 B
JavaScript
23 lines
545 B
JavaScript
var random = require('./utils/random');
|
|
|
|
function createInvoices(count) {
|
|
var result = [];
|
|
for (var i = 1; i <= count; i++) {
|
|
result.push({
|
|
id: i,
|
|
shopID: 1,
|
|
amount: random(100000, 2500000),
|
|
currency: 'RUB',
|
|
dueDate: '2016-07-01T00:00:00+03:00',
|
|
status: 'paid',
|
|
product: 'test product',
|
|
description: 'test description'
|
|
})
|
|
}
|
|
return result;
|
|
}
|
|
|
|
module.exports = {
|
|
totalCount: 985,
|
|
invoices: createInvoices(20)
|
|
}; |