Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 87eb6f93

Von Moritz Bunkus vor mehr als 14 Jahren hinzugefügt

  • ID 87eb6f9325b4b1545d98dcb1a6bf9f7c29da2bf6
  • Vorgänger a7d906be
  • Nachfolger fc96e3c7

Beim Buchen von Einkaufsrechnungen die Langbeschreibung speichern

Fix für Bug 1095.

Unterschiede anzeigen:

SL/IR.pm
318 318
    my ($invoice_id) = selectfirst_array_query($form, $dbh, qq|SELECT nextval('invoiceid')|);
319 319

  
320 320
    $query =
321
      qq|INSERT INTO invoice (id, trans_id, parts_id, description, qty, base_qty,
321
      qq|INSERT INTO invoice (id, trans_id, parts_id, description, longdescription, qty, base_qty,
322 322
                              sellprice, fxsellprice, discount, allocated, unit, deliverydate,
323 323
                              project_id, serialnumber, price_factor_id, price_factor, marge_price_factor)
324
         VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, (SELECT factor FROM price_factors WHERE id = ?), ?)|;
324
         VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, (SELECT factor FROM price_factors WHERE id = ?), ?)|;
325 325
    @values = ($invoice_id, conv_i($form->{id}), conv_i($form->{"id_$i"}),
326
               $form->{"description_$i"}, $form->{"qty_$i"} * -1,
326
               $form->{"description_$i"}, $form->{"longdescription_$i"}, $form->{"qty_$i"} * -1,
327 327
               $baseqty * -1, $form->{"sellprice_$i"}, $fxsellprice, $form->{"discount_$i"}, $allocated,
328 328
               $form->{"unit_$i"}, conv_date($form->{deliverydate}),
329 329
               conv_i($form->{"project_id_$i"}), $form->{"serialnumber_$i"},
......
799 799
        c3.accno AS expense_accno,   c3.new_chart_id AS expense_new_chart,   date($transdate) - c3.valid_from AS expense_valid,
800 800

  
801 801
        i.id AS invoice_id,
802
        i.description, i.qty, i.fxsellprice AS sellprice, i.parts_id AS id, i.unit, i.deliverydate, i.project_id, i.serialnumber,
802
        i.description, i.longdescription, i.qty, i.fxsellprice AS sellprice, i.parts_id AS id, i.unit, i.deliverydate, i.project_id, i.serialnumber,
803 803
        i.price_factor_id, i.price_factor, i.marge_price_factor, i.discount,
804 804
        p.partnumber, p.inventory_accno_id AS part_inventory_accno_id, p.bin, pr.projectnumber, pg.partsgroup
805 805

  

Auch abrufbar als: Unified diff