automateallthethings

Add to cart

Jul 8th, 2022 (edited)
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. let table = base.getTable("Point-of-Sale");
  2. let record = await input.recordAsync('Pick a record', table);
  3. if (record) {
  4. const quantity = record.getCellValue("Quantity");
  5. await table.updateRecordAsync(record.id, {
  6. "Quantity": quantity + 1
  7. })
  8. }
Add Comment
Please, Sign In to add comment