Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 24136690

Von Bernd Bleßmann vor etwa 6 Jahren hinzugefügt

  • ID 24136690a6b72b10d322521e450027ec5d7a55a2
  • Vorgänger 13ab07e6
  • Nachfolger 189ca12f

SL::Dev::Record: POD: new_part/_service statt create_part/_service

Unterschiede anzeigen:

SL/Dev/Record.pm
335 335

  
336 336
Example including creation of parts and of credit_note:
337 337

  
338
  my $part1 = SL::Dev::Part::create_part(   partnumber => 'T4254')->save;
339
  my $part2 = SL::Dev::Part::create_service(partnumber => 'Serv1')->save;
338
  my $part1 = SL::Dev::Part::new_part(   partnumber => 'T4254')->save;
339
  my $part2 = SL::Dev::Part::new_service(partnumber => 'Serv1')->save;
340 340
  my $credit_note = SL::Dev::Record::create_credit_note(
341 341
    invnumber    => '34',
342 342
    taxincluded  => 0,
......
361 361

  
362 362
Example including creation of part and of sales order:
363 363

  
364
  my $part1 = SL::Dev::Part::create_part(   partnumber => 'T4254')->save;
365
  my $part2 = SL::Dev::Part::create_service(partnumber => 'Serv1')->save;
364
  my $part1 = SL::Dev::Part::new_part(   partnumber => 'T4254')->save;
365
  my $part2 = SL::Dev::Part::new_service(partnumber => 'Serv1')->save;
366 366
  my $order = SL::Dev::Record::create_sales_order(
367 367
    save         => 1,
368 368
    taxincluded  => 0,
......
373 373

  
374 374
Example: create 100 orders with the same part for 100 new customers:
375 375

  
376
  my $part1 = SL::Dev::Part::create_part(partnumber => 'T6256')->save;
376
  my $part1 = SL::Dev::Part::new_part(partnumber => 'T6256')->save;
377 377
  SL::Dev::Record::create_sales_order(
378 378
    save         => 1,
379 379
    taxincluded  => 0,
......
400 400

  
401 401
Example including creation of part and of invoice:
402 402

  
403
  my $part    = SL::Dev::Part::create_part(  partnumber  => 'T4254')->save;
403
  my $part    = SL::Dev::Part::new_part(  partnumber  => 'T4254')->save;
404 404
  my $item    = SL::Dev::Record::create_invoice_item(part => $part, qty => 2.5);
405 405
  my $invoice = SL::Dev::Record::create_sales_invoice(
406 406
    taxincluded  => 0,

Auch abrufbar als: Unified diff