Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4121dce6

Von Jan Büren vor mehr als 1 Jahr hinzugefügt

  • ID 4121dce60a02d3a849302c482245ee9d22655ff9
  • Vorgänger 62153477

Shopware6: Erweiterung für prozetualen Rabatt im POD ergänzt

Unterschiede anzeigen:

SL/ShopConnector/Shopware6.pm
769 769
    #Mapping Positions
770 770
    my %discount_identifier;
771 771
    foreach my $pos (@positions) {
772
      $position++;
773 772
      if ($pos->{type} eq 'promotion') {
774 773
        next unless $pos->{payload}->{discountType} eq 'percentage';
775 774
        foreach my $discount_pos (@{ $pos->{payload}->{composition} }) {
......
778 777
        }
779 778
        next;
780 779
      }
780
      $position++;
781 781
      my $price       = $::form->round_amount($pos->{unitPrice}, 2); # unit
782 782
      my %pos_columns = ( description          => $pos->{product}->{name},
783 783
                          partnumber           => $pos->{product}->{productNumber},
......
1105 1105
also be synced. This should be more clear (language configuration for shops) and the order
1106 1106
synchronisation should also handle this (longdescription is simply copied from part.notes)
1107 1107

  
1108
=item * Shopware6 Promotion Codes
1109

  
1110
Shopware6 Promotion Codes with discounts for specific positions (called line items in Shopware)
1111
are in a single line item of the type 'promotion'. kivitendo uses a simple real number in the
1112
range of 0 .. 1 to add a discount for a line item.
1113
This implementation adds a percentual discount for the correct positions and does not process
1114
the discount line item afterwards. The original Shopware Promotion Code is also saved.
1115

  
1108 1116
=back
1109 1117

  
1110 1118
=head1 AUTHOR

Auch abrufbar als: Unified diff