Skip to content

Commit

Permalink
Update advanced_query.md (#762)
Browse files Browse the repository at this point in the history
Use COD for PaidWithCod example instead of C that is reserved for Credit Card
  • Loading branch information
CariappaKGanapathi committed Jun 12, 2024
1 parent 2f223d5 commit e42f82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/docs/advanced_query.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func PaidWithCreditCard(db *gorm.DB) *gorm.DB {

// Scope for orders paid with cash on delivery (COD)
func PaidWithCod(db *gorm.DB) *gorm.DB {
return db.Where("pay_mode_sign = ?", "C")
return db.Where("pay_mode_sign = ?", "COD")
}

// Scope for filtering orders by status
Expand Down

0 comments on commit e42f82d

Please sign in to comment.