mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 12:18:11 +00:00
booking operations and trains scheduling also allocations
This commit is contained in:
@@ -115,7 +115,7 @@ export class PricingDataSeeder {
|
||||
code: "20FT",
|
||||
label: "20FT Standard",
|
||||
sizeFt: 20,
|
||||
wagonsPerUnit: 1,
|
||||
wagonsPerUnit: 0.5,
|
||||
isReefer: false,
|
||||
isOpenTop: false,
|
||||
isActive: true,
|
||||
@@ -135,7 +135,7 @@ export class PricingDataSeeder {
|
||||
code: "20FT_REEFER",
|
||||
label: "20FT Reefer",
|
||||
sizeFt: 20,
|
||||
wagonsPerUnit: 1,
|
||||
wagonsPerUnit: 0.5,
|
||||
isReefer: true,
|
||||
isOpenTop: false,
|
||||
isActive: true,
|
||||
@@ -323,7 +323,11 @@ export class PricingDataSeeder {
|
||||
|
||||
private async seedPriorityRules(prRepo: any): Promise<void> {
|
||||
const existing = await prRepo.find({
|
||||
where: [{ code: "USD_PRIORITY" }, { code: "STANDARD_PRIORITY" }],
|
||||
where: [
|
||||
{ code: "USD_PRIORITY" },
|
||||
{ code: "STANDARD_PRIORITY" },
|
||||
{ code: "GOVERNMENT_ACCOUNT" },
|
||||
],
|
||||
});
|
||||
for (const r of existing) {
|
||||
await prRepo.remove(r);
|
||||
@@ -343,6 +347,13 @@ export class PricingDataSeeder {
|
||||
conditionCurrency: null,
|
||||
isActive: true,
|
||||
}),
|
||||
prRepo.create({
|
||||
code: "GOVERNMENT_ACCOUNT",
|
||||
label: "Government Account Priority",
|
||||
score: 50000,
|
||||
conditionCurrency: null,
|
||||
isActive: true,
|
||||
}),
|
||||
]);
|
||||
this.logger.log("Seeded priority rules");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user