The correct entry is
Debit Cash $1,274
Credit Cash: Over and Short $17
Credit Sales: $1,257
The "cash over and short" account is drawn from in the normal course of business to cover employee mistakes for the amount that isn't accounted for in the initial transaction (the missing $17).