Google Apps Script Code in Video Below: function AddItem() { //DEFINE ALL ACTIVE SHEETS var ss = SpreadsheetApp.getActiveSpreadsheet(); //DEFINE MENU SHEET var poSheet = ss.getSheetByName("POS"); var itemSheet = ss.getSheetByName("ITEMS"); //GET NEXT ROW OF PO SHEET var lastrowPO = poSheet.getLastRow() + 1; //GET LAST ROW OF ITEM SHEET var lastrowItem = itemSheet.getLastRow(); // GET VALUE OF PART AND QUANTITY var part = poSheet.getRange('B13').getValue(); var quantity = poSheet.getRange('B14').getValue(); // GET UNIT PRICE FROM ITEM SHEET for(var i = 2; i
@abhishekbhatia66044 жыл бұрын
How can I copy this script
@mudithasilva59613 жыл бұрын
How to copy this script
@AIAnimation092 жыл бұрын
No one youtuber seen good as you, You explain well and provide all the needs to a programmer and learner and needed person, heartly Salute to you sir
@gujjubhai_finance35104 жыл бұрын
Can you please share this Google sheet for copy
@markpoirier46722 жыл бұрын
Hey Curt or anyone else, I'm confused at 10:50 of the video when you copy in the code? where do you get this?
@MelKate072 жыл бұрын
There’s a link in the video description that takes you to his website, you can copy the code from there
@markpoirier74812 жыл бұрын
@@MelKate07 Yes thank you. I found it and tried to work through the script but am getting lots of errors because I am changing Curt's Purchase Order template. I do not write script so I'm a little confused.
@TheWDQ7201 Жыл бұрын
@codeWithCurt I am getting this error message and I am not sure why? ReferenceError: companyName is not defined
@AIConversations762 жыл бұрын
while adding item B17 is coming with no value but for succesive addition of item B18,b19,... are show ing qty ,only B17 no entery is coming after adding
@michaelv2299 Жыл бұрын
Hi there, new version of sheets does not show the code 😢
@ChadBurns-t5p4 ай бұрын
Is there a way to do this with Apple Number sheets?
@barbcoffey81452 ай бұрын
My PO number is not calculating correctly. I keeps adding a "11" to the end of each PO number.
@fabulover13 жыл бұрын
Hello, everything is functioning correctly, but something I did to the sheet is now affecting the quantities added when I click the add items button. Cell C17 doesn't grab the quantities at all, and the cells after in Column C the quantities are off. Not grabbing the correct quantities I entered in Cell B14, seems to be deducting units?? Any advice? Or start over?
@aapayson10 ай бұрын
I'm experiencing the same issue. Everything else seems to be working up to that point.
@AEYT242 жыл бұрын
Hi, thanks for the super useful and clearly explained video! The only issue I have is that for some reason the total price does not compute on PRINTPO, but the rest of the script works fine.
@sal_amat4982 жыл бұрын
Hey Curt how about logging PO including all the Items, like your retrieving the Items in the PO?
@SupunPerera2 ай бұрын
Anyway, thank you for making this. Good luck to you.🙏🙏🙏🙏🙏🙏🙏
@shawndraproducts4 жыл бұрын
HI Curt, Would it be possible to share the code for this?
@juandigregorio25444 жыл бұрын
Thank you for this great tool, one question, in case I would like to store on the PO LOG the list of items purchased to run some analytics, how can I do that? if there is another way of analyzing this also open to suggestions. Regards!
@ChibiBlackii3 жыл бұрын
is there a way to get the sheet from you without needing to make my own i dont know how to fix the error i kept popping up when i tried to get ready to get the script on
@ezrazulueta19193 жыл бұрын
Hi I follow the step by step on how you create the sheets, but when I click the add item there is a context that appears in my screen that says a TypeError: Cannot read property 'getLastRow' of null, so I do I need to do to fix it thank you.
@fabulover13 жыл бұрын
Hello Ezra, did you ever get an answer ? I don't see or find an response back. I'm having the same issue too
@fabulover13 жыл бұрын
Hello Ezra, I was able to fix the same error message you received. If you need further details on how to fix, let me know.
@Fapner2 жыл бұрын
@@fabulover1 how did you fix this error?
@admindare39842 жыл бұрын
@@fabulover1 can you advise how you fixed this error? Thank you
@admindare39842 жыл бұрын
Turns out I has a space at the end of my sheet name!!
@eduverme24 жыл бұрын
Can I send this PRINT PO to an email with a confirmation button??
@digiworld78772 жыл бұрын
Hello sir kudos to you i get an error while add item, unit price showing indivisual instead of showing multiply by qty please asnwer iam stuck on a project
@dustinjohnson7653 жыл бұрын
Curt - thank you so much. This is great. I am hoping you can help guide me through one additional coding. My product has the same Item Name but different description. I was hoping you could help me add/recode the portion of the code that pulls the unit price. I was wanting to have the code look at item and then description and pull the price based on those two variables. Is that possible?
@esanariam4 жыл бұрын
Thanks, great Video!! and is it possible to add code to keep track of the items ordered with PO, Vendor, order by, etc?
@doctorstat27914 жыл бұрын
If I want to transfer data from sheet PO print to PO Log by item by item, how can I do it? That is, if PO has 5 items, I needs 5 rows in PO log and each row is different based on item but other information (e.g., vendor name, PO number, issue date) are similar. Thanks you
@mrbillion20743 жыл бұрын
Bro did u manage to figure out. I need the formula on this. Can anyone help? Pls thanks
@vikisdwl2 жыл бұрын
hi, did you got the solution?
@vikisdwl2 жыл бұрын
@@mrbillion2074 you got?
@waqaskhan4404 жыл бұрын
Which version is suitable for this
@shawndraproducts4 жыл бұрын
Can you share the apps script code?
@dinoferrari39494 жыл бұрын
PO total in PO Log does not reflect the tax and shipping
@dolfdolf2 жыл бұрын
will this be able to save the data base of the order??
@medooegy52632 жыл бұрын
Thank you so much, really useful. One question, is it possible to use payment gates in google web apps?
@gportillo164 жыл бұрын
Hi Curt, can be possible to send the info to a separate LOG spreadsheet? and how?
@CodeWithCurt4 жыл бұрын
You could open your spreadsheet by URL. The URL of the spreadsheet. Then set the spreadsheet as active. Then declare your sheet. var ss = SpreadsheetApp.openByUrl( 'docs.google.com/spreadsheets/d/abc1234567/edit'); SpreadsheetApp.setActiveSpreadsheet(ss); var nameSheet = ss.getSheetByName('SHEETNAME');
@DanSagal-x4g Жыл бұрын
Will you share this spreadsheet or is it available for purchase
@gkennethkarl3 жыл бұрын
do u have a work order or job order generator?
@SnapRolls2 жыл бұрын
Great video and thanks for the script, buddy! Is it possible to add the order details with item name and qty in the PO log for each PO?
@markchandler22992 жыл бұрын
I'd very much like to use this in my office. Are you selling the completed version you created?
@saurabhsingh25122 жыл бұрын
HI Its giving me the error on "Create PO" button TypeError: Cannot read property 'getLastRow' of null
@admindare39842 жыл бұрын
Did you get an Answer? I have the same issue and for the life of me, I can't fix it! I have found that this is the Code issue but really need help: var lastrowPrint = printSheet.getLastRow();
@admindare39842 жыл бұрын
Turns out I had a space at the end of my sheet name
@binamshakya52403 жыл бұрын
Thank you for the video. Appreciate it. Btw is there any way to change the currency. I managed to change in the print PObut couldn't change where unit price is generated in POS.
@digiworld78772 жыл бұрын
go to script and and go to line no: 35 setNumberFormat("$#,###.00"); change this to setNumberFormat("₹#,###.00");
@CarlosMartinez173 жыл бұрын
Hello. Is there a link to download (copy) the file ? Thanks
@georgeyoung72482 жыл бұрын
Indeed. It's faster for me to just open the file and see if it does what I want, copy scripts and functions, etc, rather than watching a 23 minute video about how to do it.
@SnapRolls2 жыл бұрын
You do see the script in the video description? I think for a function and script that you're getting for free, you gotta be ready to put in some effort and at least create the spreadsheet yourself, buddy.
@Narindersingh-ns7uv Жыл бұрын
where to check previously made p.o
@varunbahuleyan73604 жыл бұрын
When i do this i am getting type error and it is with getlastrow null details
@CodeWithCurt4 жыл бұрын
Do you know the statement it is getting the error from.
@thomasskaggs29043 жыл бұрын
I know nothing about google script and have coded anything in about 30 years. Tried to copy past this script but when I go to save I get an error msg "Syntax error: SyntaxError: Unexpected token '}' line: 37 file: Code.gs" ("are mine) Line 37 is a right side bracket with a red underline. This is at the end of the // populate PO sheet. Please help an old fart
@thomasskaggs29043 жыл бұрын
I found the problem. There is a missing bracket on the Populate PO Sheet section
@noliotara68383 жыл бұрын
can you share your sheet?
@ashleellambert4 жыл бұрын
Hi Curt, do you have a suggestion or if possible for the purchase order once generated could automatically be PDF and then put in a google folder?
@ashleellambert4 жыл бұрын
Also is there a way to make This iPad capable?
@pitadomingos99343 жыл бұрын
May I have the code?
@shivdayalupadhyay65324 жыл бұрын
Give me link to download this sheet
@CodeWithCurt4 жыл бұрын
I posted the code in the comments.
@varunbahuleyan73604 жыл бұрын
How can i clear it
@CodeWithCurt4 жыл бұрын
The next PO will replace the previous PO.
@isaiassaavedra40674 жыл бұрын
Hello Curt, Great Video thank you for sharing. I follow step by step all the video's instruction and at the end it didn't run. I got a bunch of red comments like this. TypeError: Cannot read property 'getRange' of null (line 211, file "Code") TypeError: Cannot read property 'getLastRow' of null (line 12, file "Code")Dismiss TypeError: Cannot read property 'getRange' of null (line 210, file "Code")Dismiss. Can you kindly help?
@CodeWithCurt4 жыл бұрын
Make sure the Google Sheet names match up exactly from the video
@abirghosh1153 жыл бұрын
Hello Curt, Great Video! I tried all step by step, Clear PO and Add Item script is working perfectly well. But getting error while creating PO, "TypeError: Cannot read property 'getLastRow' of null at createPO(Code:88:33) Can you please help?
@CodeWithCurt3 жыл бұрын
Make sure the Sheet Names match up with the Apps Script
@bajiraopatil87443 ай бұрын
thank u sir it helped alot
@jeggerralegre82432 жыл бұрын
Super need this knowledge
@bulbulahmed30983 жыл бұрын
Excellent
@dmemsl52783 жыл бұрын
Please share me Script. its help for me
@NamHaVblog4 жыл бұрын
thanks
@everythinggirlzlove8698 Жыл бұрын
DOESNT WORK, DONT WASTE YOUR TIME
@s2motivationaltalk991Ай бұрын
working properly
@vikisdwl2 жыл бұрын
If I want to transfer data from sheet PO print to PO Log by item by item, how can I do it? That is, if PO has 5 items, I needs 5 rows in PO log and each row is different based on item but other information (e.g., vendor name, PO number, issue date) are similar. Thanks you