mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 23:06:28 +00:00
update pos
This commit is contained in:
@@ -571,19 +571,8 @@ const validateSales = async (req, res) => {
|
||||
'status_name': dataCard.c_status_name
|
||||
}
|
||||
|
||||
if(card_status != 'N') {
|
||||
if(card_status == 'P') {
|
||||
result = {
|
||||
code: '449',
|
||||
message: 'Card is already persoed.',
|
||||
data: {
|
||||
status: false,
|
||||
perso_status: true,
|
||||
detail: detail_card
|
||||
},
|
||||
};
|
||||
return res.status(200).json(result);
|
||||
} else if(card_status == 'A') {
|
||||
if(card_status != 'N' && card_status != 'P' ) {
|
||||
if(card_status == 'A') {
|
||||
result = {
|
||||
code: '450',
|
||||
message: 'Card is already activated.',
|
||||
|
||||
Reference in New Issue
Block a user