mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 18:55:42 +00:00
@@ -35,8 +35,9 @@ export class FirstMile extends BaseEntity {
|
|||||||
@Column({ name: 'remaining_payment', type: 'numeric', precision: 14, scale: 2, default: 0 })
|
@Column({ name: 'remaining_payment', type: 'numeric', precision: 14, scale: 2, default: 0 })
|
||||||
remainingPayment!: number;
|
remainingPayment!: number;
|
||||||
|
|
||||||
@Column({ type: 'boolean', default: false })
|
// TODO: uncomment after migration creates column
|
||||||
isPostPaymentCompleted!: boolean;
|
// @Column({ type: 'boolean', default: false })
|
||||||
|
// isPostPaymentCompleted!: boolean;
|
||||||
|
|
||||||
@Column({ name: 'estimated_km', type: 'numeric', precision: 10, scale: 2, nullable: true })
|
@Column({ name: 'estimated_km', type: 'numeric', precision: 10, scale: 2, nullable: true })
|
||||||
estimatedKm?: number | null;
|
estimatedKm?: number | null;
|
||||||
|
|||||||
@@ -35,8 +35,9 @@ export class LastMile extends BaseEntity {
|
|||||||
@Column({ name: 'remaining_payment', type: 'numeric', precision: 14, scale: 2, default: 0 })
|
@Column({ name: 'remaining_payment', type: 'numeric', precision: 14, scale: 2, default: 0 })
|
||||||
remainingPayment!: number;
|
remainingPayment!: number;
|
||||||
|
|
||||||
@Column({ type: 'boolean', default: false })
|
// TODO: uncomment after migration creates column
|
||||||
isPostPaymentCompleted!: boolean;
|
// @Column({ type: 'boolean', default: false })
|
||||||
|
// isPostPaymentCompleted!: boolean;
|
||||||
|
|
||||||
@Column({ name: 'estimated_km', type: 'numeric', precision: 10, scale: 2, nullable: true })
|
@Column({ name: 'estimated_km', type: 'numeric', precision: 10, scale: 2, nullable: true })
|
||||||
estimatedKm?: number | null;
|
estimatedKm?: number | null;
|
||||||
|
|||||||
@@ -559,7 +559,6 @@ const FirstMilePage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const matchesFilter = (r: FirstMileRecord) => {
|
const matchesFilter = (r: FirstMileRecord) => {
|
||||||
if (filterPostPaymentPending && r.isPostPaymentCompleted) return false;
|
|
||||||
switch (statusFilter) {
|
switch (statusFilter) {
|
||||||
case "ALL": return true;
|
case "ALL": return true;
|
||||||
case "ASSIGNED": return isAssigned(r);
|
case "ASSIGNED": return isAssigned(r);
|
||||||
|
|||||||
@@ -539,7 +539,6 @@ const LastMilePage = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const matchesFilter = (r: LastMileRecord) => {
|
const matchesFilter = (r: LastMileRecord) => {
|
||||||
if (filterPostPaymentPending && r.isPostPaymentCompleted) return false;
|
|
||||||
switch (statusFilter) {
|
switch (statusFilter) {
|
||||||
case "ALL": return true;
|
case "ALL": return true;
|
||||||
case "ASSIGNED": return isAssigned(r);
|
case "ASSIGNED": return isAssigned(r);
|
||||||
|
|||||||
Reference in New Issue
Block a user