import hu.user.lis.db.Currency;
import hu.user.lis.db.Invoice;
import hu.user.lis.db.Partner;
+import hu.user.lis.db.Project;
import lombok.extern.log4j.Log4j2;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.RandomUtils;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
@Service
@Log4j2
public List<Invoice> getAll() {
if (incomingEntities == null) {
try {
- incomingEntities = generate(true);
+ incomingEntities = generate2(true);
} catch (ParseException e) {
throw new RuntimeException(e);
}
}
if (outgoingEntities == null) {
try {
- outgoingEntities = generate(false);
+ outgoingEntities = generate2(false);
} catch (ParseException e) {
throw new RuntimeException(e);
}
}
private List<Invoice> generate2(boolean income) throws ParseException {
- List<Invoice> result = new ArrayList<>();
+ List<Invoice> result = new ArrayList<>();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
- String id = "VSz-2023/00070-"; // szamla sorszam
- String title = "IBM és HP diszkek szállíása régi szerverbe"; // 2022-0027
- Partner partner = partnerService.getRandom(); // 001
- Date completionDate = formatter.parse("2023-02-22");
- Date createDate = formatter.parse("2023-02-22");
- Date paymentDeadline = formatter.parse("2023-03-24");
- Currency currency = Currency.EUR;
- double netAmount = 780.00;
- double grossAmount = netAmount * 1.27;
- double vatAmount = grossAmount - netAmount;
- Invoice entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
-
- id = "USER-2023-7"; // szamla sorszam
- title = "IBM és HP diszkek szállíása régi szerverbe"; // 2022-0027
- partner = partnerService.getRandom(); // 002
- completionDate = formatter.parse("2023-02-23");
- createDate = formatter.parse("2023-02-23");
- paymentDeadline = formatter.parse("2023-03-25");
- currency = Currency.HUF;
- netAmount = 338910.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(true) // kimeno szamla
- .build();
- result.add(entity);
-
- id = "582-SPI1003006-3021"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 004
- completionDate = formatter.parse("2020-12-22");
- createDate = formatter.parse("2020-12-22");
- paymentDeadline = formatter.parse("2021-02-10");
- currency = Currency.HUF;
- netAmount = 10665107.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "582-SPI003118"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 004
- completionDate = formatter.parse("2020-12-31");
- createDate = formatter.parse("2020-12-31");
- paymentDeadline = formatter.parse("2021-03-31");
- currency = Currency.USD;
- netAmount = 224113.70;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "582-SPI003680"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 004
- completionDate = formatter.parse("2021-03-08");
- createDate = formatter.parse("2021-03-08");
- paymentDeadline = formatter.parse("2021-04-27");
- currency = Currency.USD;
- netAmount = 50298.61;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "582-SPI003681"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 004
- completionDate = formatter.parse("2021-03-08");
- createDate = formatter.parse("2021-03-08");
- paymentDeadline = formatter.parse("2021-04-27");
- currency = Currency.USD;
- netAmount = 13638.76;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "582-SPI004090"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 004
- completionDate = formatter.parse("2021-04-19");
- createDate = formatter.parse("2021-04-19");
- paymentDeadline = formatter.parse("2021-06-08");
- currency = Currency.USD;
- netAmount = 1017.61;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "9090010764"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 005
- completionDate = formatter.parse("2020-12-31");
- createDate = formatter.parse("2020-12-31");
- paymentDeadline = formatter.parse("2021-03-01");
- currency = Currency.HUF;
- netAmount = 2054165.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "VSz-2021/00091"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 006
- completionDate = formatter.parse("2021-02-10");
- createDate = formatter.parse("2021-02-18");
- paymentDeadline = formatter.parse("2021-03-20");
- currency = Currency.HUF;
- netAmount = 6142818.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "2021/0001"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 007
- completionDate = formatter.parse("2020-12-31");
- createDate = formatter.parse("2021-01-04");
- paymentDeadline = formatter.parse("2021-04-04");
- currency = Currency.HUF;
- netAmount = 81000000.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(true) // kimeno szamla
- .build();
- result.add(entity);
-
- id = "2021/0069"; // szamla sorszam
- title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
- partner = partnerService.getRandom(); // 007
- completionDate = formatter.parse("2021-03-09");
- createDate = formatter.parse("2021-03-10");
- paymentDeadline = formatter.parse("2021-06-08.");
- currency = Currency.HUF;
- netAmount = 47636271.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(true) // kimeno szamla
- .build();
- result.add(entity);
-
- id = "EURSZLA0177/2022"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 008
- completionDate = formatter.parse("2022-12-30");
- createDate = formatter.parse("2022-12-30");
- paymentDeadline = formatter.parse("2023-01-31");
- currency = Currency.EUR;
- netAmount = 2375.10;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
-
- id = "19044"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 009
- completionDate = formatter.parse("2022-12-22");
- createDate = formatter.parse("2022-12-22");
- paymentDeadline = formatter.parse("2023-01-26");
- currency = Currency.EUR;
- netAmount = 390.00;
- grossAmount = netAmount * 1.27; // Ez a számla ÁFA-mentes !!!!
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "9171058452"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 010
- completionDate = formatter.parse("2022-12-30");
- createDate = formatter.parse("2023-01-13");
- paymentDeadline = formatter.parse("2023-02-12");
- currency = Currency.USD;
- netAmount = 22490.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "9171058628"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 010
- completionDate = formatter.parse("2023-01-12");
- createDate = formatter.parse("2023-01-19");
- paymentDeadline = formatter.parse("2023-02-18");
- currency = Currency.USD;
- netAmount = 30.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "9171058628"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 011
- completionDate = formatter.parse("2022-12-23");
- createDate = formatter.parse("2022-12-23");
- paymentDeadline = formatter.parse("2023-01-07");
- currency = Currency.EUR;
- netAmount = 9500.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
-
- id = "2022-SOV/000495"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 012
- completionDate = formatter.parse("2022-12-31");
- createDate = formatter.parse("2022-12-31");
- paymentDeadline = formatter.parse("2023-01-30");
- currency = Currency.EUR;
- netAmount = 44490.03;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
- id = "2022-SOV/000496"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 012
- completionDate = formatter.parse("2022-12-31");
- createDate = formatter.parse("2022-12-31");
- paymentDeadline = formatter.parse("2023-01-30");
- currency = Currency.USD;
- netAmount = 21657.29;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
-
- id = "E-SYMPR-2022-105"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 013
- completionDate = formatter.parse("2022-12-28");
- createDate = formatter.parse("2022-12-28");
- paymentDeadline = formatter.parse("2023-01-27");
- currency = Currency.EUR;
- netAmount = 52508.92;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
-
- id = "E-USER-2023-12"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 017
- completionDate = formatter.parse("2022-12-31");
- createDate = formatter.parse("2023-01-06");
- paymentDeadline = formatter.parse("2023-03-07");
- currency = Currency.EUR;
- netAmount = 156763.15;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(true) // kimeno szamla
- .build();
- result.add(entity);
-
-
- id = "E-USER-2023-13"; // szamla sorszam
- title = "Multivendor 2023 évre"; // 2022-0227
- partner = partnerService.getRandom(); // 017
- completionDate = formatter.parse("2022-12-31");
- createDate = formatter.parse("2023-01-06");
- paymentDeadline = formatter.parse("2023-03-07");
- currency = Currency.USD;
- netAmount = 67615.27;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(true) // kimeno szamla
- .build();
- result.add(entity);
-
-
- id = "17356/23"; // szamla sorszam
- title = "LTO8 szalagok szállítása"; // 2023-0018
- partner = partnerService.getRandom(); // 014
- completionDate = formatter.parse("2023-02-06");
- createDate = formatter.parse("2023-02-06");
- paymentDeadline = formatter.parse("2023-03-08");
- currency = Currency.HUF;
- netAmount = 357500.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
-
- id = "E-USER-2023-53"; // szamla sorszam
- title = "LTO8 szalagok szállítása"; // 2023-0018
- partner = partnerService.getRandom(); // 015
- completionDate = formatter.parse("2023-02-08");
- createDate = formatter.parse("2023-02-09.");
- paymentDeadline = formatter.parse("2023-03-08");
- currency = Currency.HUF;
- netAmount = 445965.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(true) // kimeno szamla
- .build();
- result.add(entity);
-
- id = "2023-SOV/000123"; // szamla sorszam
- title = "PowerBuilder Professional licencek szállítása"; // 2023-0054
- partner = partnerService.getRandom(); // 012
- completionDate = formatter.parse("2023-04-14");
- createDate = formatter.parse("2023-04-17");
- paymentDeadline = formatter.parse("2023-05-17");
- currency = Currency.USD;
- netAmount = 14117.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(false) // bejovo szamla
- .build();
- result.add(entity);
-
-
- id = "E-USER-2023-95"; // szamla sorszam
- title = "PowerBuilder Professional licencek szállítása"; // 2023-0054
- partner = partnerService.getRandom(); // 016
- completionDate = formatter.parse("2023-04-14");
- createDate = formatter.parse("2023-04-17");
- paymentDeadline = formatter.parse("2023-05-17");
- currency = Currency.USD;
- netAmount = 14497.00;
- grossAmount = netAmount * 1.27;
- vatAmount = grossAmount - netAmount;
- entity = Invoice.builder()
- .id(id)
- .title(title)
- .currency(currency)
- .partner(partner)
- .completionDate(completionDate)
- .createDate(createDate)
- .paymentDeadline(paymentDeadline)
- .netAmount(netAmount)
- .grossAmount(grossAmount)
- .vatAmount(vatAmount)
- .income(true) // kimeno szamla
- .build();
- result.add(entity);
+ if (income) { // csak a bejovo szamlak generalasa
+ String id = RandomStringUtils.random(8, "0123456789abcdef");
+ String humanId = "VSz-2023/00070-"; // szamla sorszam
+ String title = "IBM és HP diszkek szállíása régi szerverbe"; // 2022-0027
+ Partner partner = partnerService.getById("001"); // 001
+ Date completionDate = formatter.parse("2023-02-22");
+ Date createDate = formatter.parse("2023-02-22");
+ Date paymentDeadline = formatter.parse("2023-03-24");
+ Currency currency = Currency.EUR;
+ double netAmount = 780.00;
+ double grossAmount = netAmount * 1.27;
+ double vatAmount = grossAmount - netAmount;
+ Invoice entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "582-SPI1003006-3021"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("004"); // 004
+ completionDate = formatter.parse("2020-12-22");
+ createDate = formatter.parse("2020-12-22");
+ paymentDeadline = formatter.parse("2021-02-10");
+ currency = Currency.HUF;
+ netAmount = 10665107.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "582-SPI003118"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("004"); // 004
+ completionDate = formatter.parse("2020-12-31");
+ createDate = formatter.parse("2020-12-31");
+ paymentDeadline = formatter.parse("2021-03-31");
+ currency = Currency.USD;
+ netAmount = 224113.70;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "582-SPI003680"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("004"); // 004
+ completionDate = formatter.parse("2021-03-08");
+ createDate = formatter.parse("2021-03-08");
+ paymentDeadline = formatter.parse("2021-04-27");
+ currency = Currency.USD;
+ netAmount = 50298.61;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "582-SPI003681"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("004"); // 004
+ completionDate = formatter.parse("2021-03-08");
+ createDate = formatter.parse("2021-03-08");
+ paymentDeadline = formatter.parse("2021-04-27");
+ currency = Currency.USD;
+ netAmount = 13638.76;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "582-SPI004090"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("004"); // 004
+ completionDate = formatter.parse("2021-04-19");
+ createDate = formatter.parse("2021-04-19");
+ paymentDeadline = formatter.parse("2021-06-08");
+ currency = Currency.USD;
+ netAmount = 1017.61;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "9090010764"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("005"); // 005
+ completionDate = formatter.parse("2020-12-31");
+ createDate = formatter.parse("2020-12-31");
+ paymentDeadline = formatter.parse("2021-03-01");
+ currency = Currency.HUF;
+ netAmount = 2054165.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "VSz-2021/00091"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("006"); // 006
+ completionDate = formatter.parse("2021-02-10");
+ createDate = formatter.parse("2021-02-18");
+ paymentDeadline = formatter.parse("2021-03-20");
+ currency = Currency.HUF;
+ netAmount = 6142818.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "EURSZLA0177/2022"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("008"); // 008
+ completionDate = formatter.parse("2022-12-30");
+ createDate = formatter.parse("2022-12-30");
+ paymentDeadline = formatter.parse("2023-01-31");
+ currency = Currency.EUR;
+ netAmount = 2375.10;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "19044"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("009"); // 009
+ completionDate = formatter.parse("2022-12-22");
+ createDate = formatter.parse("2022-12-22");
+ paymentDeadline = formatter.parse("2023-01-26");
+ currency = Currency.EUR;
+ netAmount = 390.00;
+ grossAmount = netAmount * 1.27; // Ez a számla ÁFA-mentes !!!!
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "9171058452"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("010"); // 010
+ completionDate = formatter.parse("2022-12-30");
+ createDate = formatter.parse("2023-01-13");
+ paymentDeadline = formatter.parse("2023-02-12");
+ currency = Currency.USD;
+ netAmount = 22490.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "9171058628"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("010"); // 010
+ completionDate = formatter.parse("2023-01-12");
+ createDate = formatter.parse("2023-01-19");
+ paymentDeadline = formatter.parse("2023-02-18");
+ currency = Currency.USD;
+ netAmount = 30.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "9171058628"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("011"); // 011
+ completionDate = formatter.parse("2022-12-23");
+ createDate = formatter.parse("2022-12-23");
+ paymentDeadline = formatter.parse("2023-01-07");
+ currency = Currency.EUR;
+ netAmount = 9500.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "2022-SOV/000495"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("012"); // 012
+ completionDate = formatter.parse("2022-12-31");
+ createDate = formatter.parse("2022-12-31");
+ paymentDeadline = formatter.parse("2023-01-30");
+ currency = Currency.EUR;
+ netAmount = 44490.03;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "2022-SOV/000496"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("012"); // 012
+ completionDate = formatter.parse("2022-12-31");
+ createDate = formatter.parse("2022-12-31");
+ paymentDeadline = formatter.parse("2023-01-30");
+ currency = Currency.USD;
+ netAmount = 21657.29;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "E-SYMPR-2022-105"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("013"); // 013
+ completionDate = formatter.parse("2022-12-28");
+ createDate = formatter.parse("2022-12-28");
+ paymentDeadline = formatter.parse("2023-01-27");
+ currency = Currency.EUR;
+ netAmount = 52508.92;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "17356/23"; // szamla sorszam
+ title = "LTO8 szalagok szállítása"; // 2023-0018
+ partner = partnerService.getById("014"); // 014
+ completionDate = formatter.parse("2023-02-06");
+ createDate = formatter.parse("2023-02-06");
+ paymentDeadline = formatter.parse("2023-03-08");
+ currency = Currency.HUF;
+ netAmount = 357500.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "2023-SOV/000123"; // szamla sorszam
+ title = "PowerBuilder Professional licencek szállítása"; // 2023-0054
+ partner = partnerService.getById("012"); // 012
+ completionDate = formatter.parse("2023-04-14");
+ createDate = formatter.parse("2023-04-17");
+ paymentDeadline = formatter.parse("2023-05-17");
+ currency = Currency.USD;
+ netAmount = 14117.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // bejovo szamla
+ .build();
+ result.add(entity);
+
+
+ String id = RandomStringUtils.random(8, "0123456789abcdef");
+ String humanId = "USER-2023-7"; // szamla sorszam
+ String title = "IBM és HP diszkek szállíása régi szerverbe"; // 2022-0027
+ Partner partner = partnerService.getById("002"); // 002
+ Date completionDate = formatter.parse("2023-02-23");
+ Date createDate = formatter.parse("2023-02-23");
+ Date paymentDeadline = formatter.parse("2023-03-25");
+ Currency currency = Currency.HUF;
+ double netAmount = 338910.00;
+ double grossAmount = netAmount * 1.27;
+ double vatAmount = grossAmount - netAmount;
+ Invoice entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // kimeno szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "2021/0001"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("007"); // 007
+ completionDate = formatter.parse("2020-12-31");
+ createDate = formatter.parse("2021-01-04");
+ paymentDeadline = formatter.parse("2021-04-04");
+ currency = Currency.HUF;
+ netAmount = 81000000.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // kimeno szamla
+ .build();
+ result.add(entity);
+
+ } else { // csak a kimeno szamlak generalasa
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "2021/0069"; // szamla sorszam
+ title = "IBM Power szerver garanciakiterjesztése"; // 2020-0109
+ partner = partnerService.getById("007"); // 007
+ completionDate = formatter.parse("2021-03-09");
+ createDate = formatter.parse("2021-03-10");
+ paymentDeadline = formatter.parse("2021-06-08.");
+ currency = Currency.HUF;
+ netAmount = 47636271.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // kimeno szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "E-USER-2023-12"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("017"); // 017
+ completionDate = formatter.parse("2022-12-31");
+ createDate = formatter.parse("2023-01-06");
+ paymentDeadline = formatter.parse("2023-03-07");
+ currency = Currency.EUR;
+ netAmount = 156763.15;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // kimeno szamla
+ .build();
+ result.add(entity);
+
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "E-USER-2023-13"; // szamla sorszam
+ title = "Multivendor 2023 évre"; // 2022-0227
+ partner = partnerService.getById("017"); // 017
+ completionDate = formatter.parse("2022-12-31");
+ createDate = formatter.parse("2023-01-06");
+ paymentDeadline = formatter.parse("2023-03-07");
+ currency = Currency.USD;
+ netAmount = 67615.27;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // kimeno szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "E-USER-2023-53"; // szamla sorszam
+ title = "LTO8 szalagok szállítása"; // 2023-0018
+ partner = partnerService.getById("015"); // 015
+ completionDate = formatter.parse("2023-02-08");
+ createDate = formatter.parse("2023-02-09.");
+ paymentDeadline = formatter.parse("2023-03-08");
+ currency = Currency.HUF;
+ netAmount = 445965.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // kimeno szamla
+ .build();
+ result.add(entity);
+
+ id = RandomStringUtils.random(8, "0123456789abcdef");
+ humanId = "E-USER-2023-95"; // szamla sorszam
+ title = "PowerBuilder Professional licencek szállítása"; // 2023-0054
+ partner = partnerService.getById("016"); // 016
+ completionDate = formatter.parse("2023-04-14");
+ createDate = formatter.parse("2023-04-17");
+ paymentDeadline = formatter.parse("2023-05-17");
+ currency = Currency.USD;
+ netAmount = 14497.00;
+ grossAmount = netAmount * 1.27;
+ vatAmount = grossAmount - netAmount;
+ entity = Invoice.builder()
+ .id(id)
+ .humanId(humanId)
+ .title(title)
+ .currency(currency)
+ .partner(partner)
+ .completionDate(completionDate)
+ .createDate(createDate)
+ .paymentDeadline(paymentDeadline)
+ .netAmount(netAmount)
+ .grossAmount(grossAmount)
+ .vatAmount(vatAmount)
+ .income(income) // kimeno szamla
+ .build();
+ result.add(entity);
+ }
return result;
}
+ @Override
+ public Invoice getById(String id) {
+ return getAll().stream().filter(p -> p.getId().equals(id)).findFirst().get();
+ }
+
+ @Override
+ public Invoice getByHumanId(String id) {
+ return getAll().stream().filter(p -> p.getHumanId().equals(id)).findFirst().get();
+ }
+
+ @Override
+ public List<Invoice> getByHumanIds(String[] ids) {
+ List<Invoice> result = new ArrayList<>();
+
+ for (String i : ids) {
+ result.add(getByHumanId(i));
+ }
+
+ return result;
+ }
+
+
+
@Override
public List<Invoice> getRandom(boolean income) {
getAll();