kandycoder / inventory Goto Github PK
View Code? Open in Web Editor NEWProblem: a barcode scanner fills a spreadsheet, but how does one maintain an inventory of the items scanned?
License: MIT License
Problem: a barcode scanner fills a spreadsheet, but how does one maintain an inventory of the items scanned?
License: MIT License
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.
The aggregate data needs to be split into two columns per week, with adds in one column and subtracts in the other.
Need to use Sheets(...).Columns(...).Column
to convert column letter(s) to index.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.