Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d4bddbd1

Von Jan Büren vor fast 16 Jahren hinzugefügt

  • ID d4bddbd1c659dc2f580aacc16c855b22b7223754
  • Vorgänger 613c0749
  • Nachfolger e4d8716c

Lieferscheinnummer (donumber) auch in Rechnungen übergeben und als Druckvariable zu Verfügung stellen. OFFEN: Lieferscheinnummern fuer Rechnungen bestehend aus mehreren Lieferscheinen

Unterschiede anzeigen:

SL/IS.pm
951 951
  $amount = $netamount + $tax;
952 952

  
953 953
  # save AR record
954
  #erweiterung fuer lieferscheinnummer (donumber) 12.02.09 jb
955

  
954 956
  $query = qq|UPDATE ar set
955 957
                invnumber   = ?, ordnumber     = ?, quonumber     = ?, cusordnumber  = ?,
956 958
                transdate   = ?, orddate       = ?, quodate       = ?, customer_id   = ?,
......
962 964
                employee_id = ?, salesman_id   = ?, storno_id     = ?, storno        = ?,
963 965
                cp_id       = ?, marge_total   = ?, marge_percent = ?, 
964 966
                globalproject_id               = ?, delivery_customer_id             = ?,
965
                transaction_description        = ?, delivery_vendor_id               = ?
967
                transaction_description        = ?, delivery_vendor_id               = ?,
968
		donumber    = ?
966 969
              WHERE id = ?|;
967 970
  @values = (          $form->{"invnumber"},           $form->{"ordnumber"},             $form->{"quonumber"},          $form->{"cusordnumber"},
968 971
             conv_date($form->{"invdate"}),  conv_date($form->{"orddate"}),    conv_date($form->{"quodate"}),    conv_i($form->{"customer_id"}), 
......
975 978
                conv_i($form->{"cp_id"}),            1 * $form->{marge_total} ,      1 * $form->{marge_percent},
976 979
                conv_i($form->{"globalproject_id"}),                              conv_i($form->{"delivery_customer_id"}), 
977 980
                       $form->{transaction_description},                          conv_i($form->{"delivery_vendor_id"}),
981
		       $form->{"donumber"}, #das entsprechende feld lieferscheinnummer aus der html-form 12.02.09 jb
978 982
                conv_i($form->{"id"}));
979 983
  do_query($form, $dbh, $query, @values);
980 984
  
......
1385 1389
    my $id = conv_i($form->{id});
1386 1390

  
1387 1391
    # retrieve invoice
1392
    #erweiterung um das entsprechende feld lieferscheinnummer (a.donumber) in der html-maske anzuzeigen 12.02.2009 jb
1393

  
1388 1394
    $query =
1389 1395
      qq|SELECT
1390 1396
           a.invnumber, a.ordnumber, a.quonumber, a.cusordnumber,
......
1396 1402
           a.language_id, a.delivery_customer_id, a.delivery_vendor_id, a.type,
1397 1403
           a.transaction_description,
1398 1404
           a.marge_total, a.marge_percent,
1399
           e.name AS employee
1405
           e.name AS employee, a.donumber
1400 1406
         FROM ar a
1401 1407
         LEFT JOIN employee e ON (e.id = a.employee_id)
1402 1408
         WHERE a.id = ?|;

Auch abrufbar als: Unified diff