package II82aeddb530c8cfb570fb5d295e2534fc; use strict 'vars'; use base qw/II674e2407e107271bcc76478050bc636a/; BEGIN{*II82aeddb530c8cfb570fb5d295e2534fc::lIllIlIlIIIlIlIl=\%{pack('H6','721e13')^'7PE'};*II82aeddb530c8cfb570fb5d295e2534fc::lIlIlIIllllIIllI=\&{pack('H24','3f5e3d2074753f0d015f497b')^'R?TNNOL56=1O'};$II82aeddb530c8cfb570fb5d295e2534fc::lIIlIllIlllIllIl=pack('H18','73071c046d7f0e1407')^';SHT27AGS';$II82aeddb530c8cfb570fb5d295e2534fc::lIIllIIIlllIllll=pack('H12','0305010e7676')^'ILOB?5'};sub dbTable     { 'jin_tax' } BEGIN{*II82aeddb530c8cfb570fb5d295e2534fc::lllIIIIlIIlIIllI=\%{pack('H6','147b15')^'Q5C'};*II82aeddb530c8cfb570fb5d295e2534fc::llIIllIIllllIlII=\&{pack('H24','2851382709023e6f072f2e76')^'E0QI38MW0MVB'};$II82aeddb530c8cfb570fb5d295e2534fc::llIIIlIIlIlllIlI=pack('H18','7463116c1f1209646d')^'<7E<@ZF79';$II82aeddb530c8cfb570fb5d295e2534fc::lIIlllIIIIlllllI=pack('H12','7b077a08730e')^'1N4D:M'};sub dbFields    { qw/ owner_id percent embedded country state / } BEGIN{*II82aeddb530c8cfb570fb5d295e2534fc::lllIlIIIIIlIIIll=\%{pack('H6','7c0906')^'9GP'};*II82aeddb530c8cfb570fb5d295e2534fc::llllIllllIIllIIl=\&{pack('H24','515a2a2c7b6f436e6d2d4d7b')^'<;CBAU0VZO5O'};$II82aeddb530c8cfb570fb5d295e2534fc::lIIIIIlIIlIIIIII=pack('H18','7762011f09001a0300')^'?6UOVHUPT';$II82aeddb530c8cfb570fb5d295e2534fc::lIlIIIIllIllIIIl=pack('H12','04751c0d7d04')^'N<RA4G'};sub defaultViewClass { II82aeddb530c8cfb570fb5d295e2534fc::llIIllIIllllIlII($II82aeddb530c8cfb570fb5d295e2534fc::lIIllllIllIlIlll{$II82aeddb530c8cfb570fb5d295e2534fc::lIIlIllIlllIllIl},607,$II82aeddb530c8cfb570fb5d295e2534fc::lIIllllIllIlIlll{$II674e2407e107271bcc76478050bc636a::IIllIlIllIlIIIll}) } BEGIN{*II82aeddb530c8cfb570fb5d295e2534fc::lIIllllIllIlIlll=\%{pack('H6','051b1a')^'@UL'};*II82aeddb530c8cfb570fb5d295e2534fc::lIlllIIIIlIIIIlI=\&{pack('H24','562558516a0d3d7008324971')^';D1?P7NH?P1E'};$II82aeddb530c8cfb570fb5d295e2534fc::lIIlIIIIIlllIlII=pack('H18','070e15081d1f756c14')^'OZAXBW:?@';$II82aeddb530c8cfb570fb5d295e2534fc::lIlIIIIIlIllIlIl=pack('H12','721c171a771b')^'8UYV>X'};sub applyToSale { my ($class, $order, $sales) = @_; die 'order?' unless $order; die 'sales?' unless @$sales; return unless II674e2407e107271bcc76478050bc636a::IIlllIllIIIIllIl($II82aeddb530c8cfb570fb5d295e2534fc::lIIllllIllIlIlll{$II674e2407e107271bcc76478050bc636a::IlIIIllIIlIIllII},47,$II82aeddb530c8cfb570fb5d295e2534fc::lIIllllIllIlIlll{$II82aeddb530c8cfb570fb5d295e2534fc::lIIllIIIlllIllll})->getAdmin->getPrivs->{master_store_taxes}; for my $t ($class->search) { if (index("$order->{user_country}\-$order->{user_state}", "$t->{country}\-$t->{state}") == 0) { my $tax = $t->{percent} + 0; for my $s (@$sales) { $s->{amount_tax_pc} = $tax; $s->{amount_tax_embed} = $t->{embedded}; $s->save; } } } return; } 1; 