fix: don't create queue from POS
continuous-integration/drone/push Build is passing Details

pull/123/head
shancheas 2025-01-13 12:59:30 +07:00
parent 3ace59c450
commit 769e8174f4
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ export class QueueTransactionHandler
/**
* If data still in process (not settled) then don't create the queue order
*/
if (process_data?.status != 'settled') return;
if (process_data?.status != 'settled' || process_data?.pos_number != null)
return;
const transaction = await this.dataService.getOneByOptions({
where: {