@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | |
| 262 | 262 | |
| 263 | 263 | /** Renvoi une nouvelle r�f�rence unique pour une commande |
| 264 | - * @return int |
|
| 264 | + * @return string |
|
| 265 | 265 | */ |
| 266 | 266 | public static function get_new_order_reference(){ |
| 267 | 267 | $number_figures = get_option('wpshop_order_number_figures', false); |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | } |
| 283 | 283 | |
| 284 | 284 | /** Renvoi une nouvelle r�f�rence unique pour un devis |
| 285 | - * @return int |
|
| 285 | + * @return string |
|
| 286 | 286 | */ |
| 287 | 287 | public static function get_new_pre_order_reference($save = true){ |
| 288 | 288 | $number_figures = get_option('wpshop_order_number_figures', false); |
@@ -662,6 +662,10 @@ discard block |
||
| 662 | 662 | |
| 663 | 663 | return $output; |
| 664 | 664 | } |
| 665 | + |
|
| 666 | + /** |
|
| 667 | + * @param boolean $state |
|
| 668 | + */ |
|
| 665 | 669 | static function display_customer_pay_quotation( $state, $oid ) { |
| 666 | 670 | $btn = '<p><a role="button" data-nonce="' . wp_create_nonce( 'wps_quotation_is_payable_by_customer' ) . '" class="wps-bton-' . ( ( $state ) ? 'third' : 'second' ) . '-mini-rounded quotation_is_payable_by_customer" href="#" >'.__('Valid quotation', 'wpshop').'</a></p>'; |
| 667 | 671 | if( $state ) { |