Dolibarr ERP & CRM » Tasks and Feature requests » task #1031 Display sending to a customer when qty = 0Anonymous user
2013-10-19 05:06
Answer now
Snapshot Details |
Submitted on: | 2013-08-11 17:29 | | Submitted by: | Andriolo Hubert (hubz) |
Last Modified On: | 2013-09-26 17:57 | |
Summary: | Display sending to a customer when qty = 0 |
Description: | For orders with many products, I foud a way to remind an the sending and delivery receipts, that some products ordered are "not delivered" with a quantity ordered = X and a qty delivered = 0
When "qté. commandée" > 0 (qty ordered)
and "qté. à expédier" = 0 (no stock for example) (qty I choose to ship)
The line of product with qt to ship = 0 disappears.
But when a client receives the goods, he should know what he ordered exactly.
Even if we can deliver a qty of 0 product...
Eldy told me to notice it as feature request, and we worked to display it on
Rouget and Typhon PDFs
htdocs/expedition/fiche.php
Line 133 : Changed >0 with >=0
____________________________________
if ($totalqty >= 0)
{
//var_dump($_POST);exit;
for ($i = 0; $i < $num; $i++)
{
$qty = "qtyl".$i;
if (GETPOST($qty,'int') >= 0)
______________________________________
Line 139 : Changed >0 with >=0
This will have for effect not deleting the products with qty = 0 ant it will be displayed on next screens !
For displaying qty ordered on the delivery receipt :
pdf_typhon_modules.php
Add : lines 353 to 364
//QuantityToShip
$pdf->SetXY($this->posxqtytoship, $curY);
$pdf->MultiCell($this->page_largeur-$this->marge_droite-$this->posxqtytoship, 3, $object->lines[$i]->qty_asked-qty_shipped, 0, 'C');
/*
Add : lines 622 a 632
//Modif QtyOrdered
$pdf->line($this->posxqtyordered, $tab_top, $this->posxqtyordered, $tab_top + $tab_height);
if (empty($hidetop))
{
$pdf->SetXY($this->posxqtyordered, $tab_top+1);
$pdf->MultiCell($this->posxqty - $this->posxqtyordered, 2, $outputlangs->transnoentities("QtyOrdered"),'','C');
}
________________________________
Hope my explanations are complete and not wrong...
____
Last thing i can't manage to display is qty already sent to the customer, because on the next delivery it will be displayed qty ordered = 50, delivered = 0 (on the second receipt) but if I already sent the products on the first receipt it should be another column to display (already sent).
I tried to calculate it, but i'm not good enough to know these function.
|
Priority: | 5 - Medium | | Open to Any Developer: | No |
Subproject: | None | | Assigned to (multiple): | None |
Planned for version: | | | Status |
Start Date: | - | | End Date: | - |
Completion (0-100%): | 0 | | Status: | Open |
Comments- led flood lighting 2013-10-19 05:06
- Lookin for ya, with a flashlight
- led tube lights 2013-10-16 03:55
- RT @bhavH: This lighting is right next to my house #Fuck led tube lights http://www.fledlights.com/led_tube_lights
- high bay lights 2013-10-09 23:45
- Romney the "Peace Candidate" wants to flood Syria with weapons? Yeah, right. #Obama #debate [url="" href="http://www.fledlights.com/led_industrial_highbay_light]high" target="_blank" target="_new">http://www.fledlights.com/led_industrial_highbay_light]high bay lights[/url] <a href="" href="http://www.fledlights.com/led_industrial_highbay_light" target="_blank" target="_new">http://www.fledlights.com/led_industrial_highbay_light" title="high bay lights">high bay lights</a>
- led Downlight 2013-10-09 23:45
- Stfu seriously, we're going christmas shopping, and blasting Delilah, IDGAF “@AndreaOrduy: @ZhaneNay call me the Grinch idc.” led Downlight http://www.fledlights.com/led_Downlights
- led light 2013-10-03 18:08
- WTF!!! Thats Time Lost? in my life LOL? give? it?? back!!!!!. I rather go to >>? <<? TRY IT IT'S FREE!!. Just copy paste that? link to? google!! You wont regret it!. more? sexy? asian amateur there just try it! i came freehand watching!. and? you can?? even?? download? or? stream it free!! [url="" href="http://www.fledlights.com]led" target="_blank" target="_new">http://www.fledlights.com]led light[/url] <a href="" href="http://www.fledlights.com" target="_blank" target="_new">http://www.fledlights.com" title="led light">led light</a>
- highbay lights 2013-10-03 18:07
- And he lies again! Light bulb factory closed in Winchester, VA because it moved to China! He is full of crap!!!! highbay lights http://www.fledlights.com/led_industrial_highbay_light
- Andriolo Hubert 2013-09-26 17:57
- Look on github, in the code of :
LINE 438 of : dolibarr / htdocs / core / modules / livraison / pdf / pdf_typhon.modules.php
(Wow I found a way to point the link fo the line of the file :))
https://github.com/Dolibarr/dolibarr/blob/develop/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php#L438
There is a TODO, but is it possible to activate, will it generate errors ?
One step ahead... - Andriolo Hubert 2013-09-15 16:00
- What is the next step after submitting a "feature request" with explanations like this ?
It thought it was one step ahead integration, that's a pity i can't develop on tools like github... I really don't know how, even for such small changes like that... |
|