Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
webERP and Excel
01-30-2015, 12:34 AM,
#7
RE: webERP and Excel
I created the attached report using PHPExcel and found it easy to use.
I also think the report is pretty good from a business perspective if you have controlled items (Lot / Serial).
The report lists all OH Lots assuming you have applied the SQL below and ages them by date they were created. So you can see old inventory you might need to have a fire sale on or get your salespeople to push. Then it also lists incoming inventory and expected dates. It gives yhou a very nive picture of your inventory

ALTER TABLE `stockserialitems` ADD `createdate` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ,
ADD INDEX ( `createdate` ) ;
UPDATE stockserialitems SET createdate = NULL;

UPDATE stockserialitems as stockserialitems SET createdate=
(SELECT trandate FROM (select trandate, stockserialitems.serialno, stockserialitems.stockid from stockserialitems
LEFT JOIN stockserialmoves ON stockserialitems.serialno=stockserialmoves.serialno
LEFT JOIN stockmoves ON stockserialmoves.stockmoveno=stockmoves.stkmoveno
GROUP BY stockserialitems.stockid, stockserialitems.serialno
ORDER BY trandate) as ssi
WHERE ssi.serialno=stockserialitems.serialno
AND ssi.stockid=stockserialitems.stockid);


Attached Files
.php   MailInvOHIncoming.php (Size: 6.39 KB / Downloads: 3)
Reply


Messages In This Thread
webERP and Excel - by PakRicard - 08-07-2014, 07:13 PM
RE: webERP and Excel - by phil - 08-08-2014, 11:41 AM
RE: webERP and Excel - by Exsonqu_Qu - 08-12-2014, 06:43 PM
RE: webERP and Excel - by kelo - 08-21-2014, 02:45 PM
RE: webERP and Excel - by PakRicard - 08-30-2014, 04:58 PM
RE: webERP and Excel - by kelo - 09-23-2014, 02:42 AM
RE: webERP and Excel - by agaluski - 01-30-2015, 12:34 AM
RE: webERP and Excel - by phil - 01-30-2015, 07:55 AM
RE: webERP and Excel - by PakRicard - 03-31-2015, 07:13 PM
RE: webERP and Excel - by phil - 04-01-2015, 09:42 AM
RE: webERP and Excel - by Exsonqu_Qu - 04-01-2015, 11:44 AM
RE: webERP and Excel - by PakRicard - 04-01-2015, 01:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)