PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.17
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.17
1.10.25 1.10.24 1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 All 169 releases
← All changes | includes/Services/Receipt_Data_Schema.php +10 -6 1.10.3 → 1.10.17 View file →
@@ -42,9 +42,9 @@
42 42
43 43 /**
44 44 * Receipt data schema contract version.
45 45 */
46 - const SCHEMA_VERSION = '1.1.0';
46 + const SCHEMA_VERSION = '1.2.0';
47 47
48 48 /**
49 49 * Money keys that must be present in totals.
50 50 */
@@ -803,25 +803,29 @@
803 803 'discounts' => array(
804 804 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Discounts', 'woocommerce-pos' ),
805 805 'is_array' => true,
806 806 'fields' => array(
807 - 'label' => array(
807 + 'label' => array(
808 808 'type' => 'string',
809 809 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Discount Label', 'woocommerce-pos' ),
810 810 ),
811 - 'code' => array(
811 + 'code' => array(
812 812 'type' => 'string',
813 813 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Coupon Code', 'woocommerce-pos' ),
814 814 ),
815 - 'total' => array(
815 + 'discount_type' => array(
816 + 'type' => 'string',
817 + 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Coupon Type', 'woocommerce-pos' ),
818 + ),
819 + 'total' => array(
816 820 'type' => 'money',
817 821 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Total', 'woocommerce-pos' ),
818 822 ),
819 - 'total_incl' => array(
823 + 'total_incl' => array(
820 824 'type' => 'money',
821 825 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Total (incl tax)', 'woocommerce-pos' ),
822 826 ),
823 - 'total_excl' => array(
827 + 'total_excl' => array(
824 828 'type' => 'money',
825 829 'label' => /* translators: Label for a receipt data field in the template editor. */ __( 'Total (excl tax)', 'woocommerce-pos' ),
826 830 ),
827 831 ),