سؤال
أرى أن المعلومات الضريبية يتم الاحتفاظ بها على مستوى الطلب ، لكن لا يمكنني رؤية أي مستوطنين/getters لذلك.
يمكن أن يكون مرتبطًا بعناصر الاقتباس أو حتى مع عناوين الشحن؟
أي شخص يعرف كيف ترتبط الضريبة بالطلب؟
المحلول
هناك حقول على جدول Sales_order للضرائب بعد حسابها:
| tax_refunded | decimal(12,4)
| tax_canceled | decimal(12,4)
| base_tax_refunded | decimal(12,4)
| base_tax_canceled | decimal(12,4)
| tax_invoiced | decimal(12,4)
| base_tax_invoiced | decimal(12,4)
| shipping_tax_amount | decimal(12,4)
| base_shipping_tax_amount | decimal(12,4)
| shipping_tax_refunded | decimal(12,4)
| base_shipping_tax_refunded | decimal(12,4)
عندما يكون لديك كائن طلب ، يمكنك استخدام Magento Getters العادية للحصول على هذه البيانات. على سبيل المثال
$taxRefunded = $order->getTaxRefunded();
امل ان يساعد.
شكرا يا جو
لا تنتمي إلى StackOverflow