-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ordero-team/fix-54
[FIX-54] Owner/Cashier - Print Order Bill
- Loading branch information
Showing
11 changed files
with
346 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class OrderStaff1726761382132 implements MigrationInterface { | ||
name = 'OrderStaff1726761382132'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE \`order\` ADD \`staff_id\` varchar(26) NULL`); | ||
await queryRunner.query( | ||
`ALTER TABLE \`order\` ADD CONSTRAINT \`FK_5c126f83b53f2c6c4caafdb914d\` FOREIGN KEY (\`staff_id\`) REFERENCES \`staff_user\`(\`id\`) ON DELETE SET NULL ON UPDATE NO ACTION` | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE \`order\` DROP FOREIGN KEY \`FK_5c126f83b53f2c6c4caafdb914d\``); | ||
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`staff_id\``); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class OrderOwner1726762144604 implements MigrationInterface { | ||
name = 'OrderOwner1726762144604'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE \`order\` ADD \`owner_id\` varchar(26) NULL`); | ||
await queryRunner.query( | ||
`ALTER TABLE \`order\` ADD CONSTRAINT \`FK_d9181c2d154dfb71af0e18d9669\` FOREIGN KEY (\`owner_id\`) REFERENCES \`owner\`(\`id\`) ON DELETE SET NULL ON UPDATE NO ACTION` | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE \`order\` DROP FOREIGN KEY \`FK_d9181c2d154dfb71af0e18d9669\``); | ||
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`owner_id\``); | ||
} | ||
} |
Oops, something went wrong.