Register    Login    Forum    Search    FAQ

Board index » Misc. » Addon Modules




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: 'auto' fill order with low stock items
 Post Posted: Wed Apr 27, 2011 11:48 pm 
Offline

Joined: Mon Mar 01, 2010 5:32 am
Posts: 554
Location: Netherlands
Thank you for the language file. i will use it in the next release.


I always try to add the complete directory structure.
This way you can just post it into you own dir. and it will work.
for this addon you can extract the module with dir. structure.
Then select the folder modules and copy it into your own directory.

The only thing is if you use more add-ons than you should look if the file
'modules\phreebooks\custom\pages\orders\extra_actions.php'
will not be overwritten if so you can just combine the code of these extra_actions.php files

_________________
Rene Kervezee


Top 
 Profile  
 
 Post subject: Re: 'auto' fill order with low stock items
 Post Posted: Tue Jul 12, 2011 7:52 am 
Offline

Joined: Mon Feb 14, 2011 2:02 am
Posts: 80
Location: Slovakia
I am trying to figure out, how to add orders items after table_items (if PO has already an items in table). Right now, ProcessLowStock() overwrites the existing cells in table.


Top 
 Profile  
 
 Post subject: Re: 'auto' fill order with low stock items
 Post Posted: Thu Jul 14, 2011 12:07 am 
Offline

Joined: Mon Mar 01, 2010 5:32 am
Posts: 554
Location: Netherlands
try this
file 'phreebooks/custom/pages/orders/low_stock/low_stock.php'
add a new line around line 29 and past in the code below.

Code:
   var vID = document.getElementById('search').value;
   var currentRows = document.getElementById('item_table').rows.length


then change line 34 to
Code:
var rowCnt = currentRows + i + 1;


let me know how it go's then i can take it along when i do a rewrite.

_________________
Rene Kervezee


Top 
 Profile  
 
 Post subject: Re: 'auto' fill order with low stock items
 Post Posted: Thu Jul 14, 2011 1:21 am 
Offline

Joined: Mon Feb 14, 2011 2:02 am
Posts: 80
Location: Slovakia
or like this (your previous method doesnt work)
Code:
var rowCnt = document.getElementById('item_table').rows.length - 1;
   document.getElementById('sku_'+rowCnt).value = FirstValue[vID][i][0] ;
   document.getElementById('qty_'+rowCnt).value = FirstValue[vID][i][1] ;
   setField('sku_' + rowCnt , FirstValue[vID][i] );
   loadSkuDetails(FirstValue[vID][i], rowCnt);
   addInvRow();


Top 
 Profile  
 
 Post subject: Re: 'auto' fill order with low stock items
 Post Posted: Thu Jul 14, 2011 1:56 am 
Offline

Joined: Mon Mar 01, 2010 5:32 am
Posts: 554
Location: Netherlands
Thanks,

I will use it in future releases.

_________________
Rene Kervezee


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

Board index » Misc. » Addon Modules


Who is online

Users browsing this forum: No registered users and 2 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron