Giter VIP home page Giter VIP logo

inventory's People

Contributors

kandycoder avatar

Watchers

 avatar

inventory's Issues

Aggregation needed.

The quantity column needs to be aggregated on a weekly basis.

In the destination spreadsheet, a block of columns serves to store the quantity delta for each item for a given week. When the macro imports changes to the quantity column, it should therefore also add those quantity adjustments in the appropriate column for that week (with a new column being created if needed).


Background
An existing macro already adds new item quantities from one spreadsheet to their respective in-stock quantity in another sheet to update an inventory. It scans the source sheet for new rows, and for every new row it gets the item id and quantity values from that row. The macro then looks up the item id in the destination sheet and adds the quantity to the corresponding quantity field of the destination sheet. (The destination sheet contains total items in stock.)

Task Description
The job is to implement the following: if the macro is run and a new week has begun, a new column is to be created in the destination sheet with a heading for that week (such as "2023-01-15"). The new column should be created before the existing logic runs. Then, logic needs to be added to add/accumulate item quantities in the weekly column similarly to how it is already being done for the total quantity in stock. When the macro is run again in the same week, no new column is created but the quantities in the column for that week are updated again. The end result is that in addition to having the total quantity in stock, there will be new columns for every week containing the quantity delta for that week.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.