新しい請求書IDをそれぞれ5ずつ増やす必要があります。以下のコードを試しました。
しかし、すべての請求書、出荷、注文、クレジットメモを変更しました。
新しい請求書IDを5ずつ増やし、出荷を5ずつ増やし、クレジットメモを3ずつ増やす必要があります。
また、受注は1(通常)ずつ増加します。
これどうやってするの 。?
誰でも助けてくれます。
class Mage_Eav_Model_Entity_Increment_Numeric extends Mage_Eav_Model_Entity_Increment_Abstract    
{
   public function getNextId()
    {
        $last = $this->getLastId();
        if (strpos($last, $this->getPrefix()) === 0) {
            $last = (int)substr($last, strlen($this->getPrefix()));
        } else {
            $last = (int)$last;
        }
        $next = $last + 5;
        return $this->format($next);
    }
}
                  なぜこの振る舞いが必要なのか知りたいのですが?
                
                
                  
                    —
                    ラジーエフKトミー14 
                    
                  
                
              
                  @programmer_rktがMagentoのコア機能を学習しています...!私のTLはサンプルタスクを提供します。
                
                
                  
                    —
                    VijayS91 14 
                    
                  
                
              
                  @VijayS atwix.com/magento/custom-order-and-customer-numbersは、カスタム増分モデルの作成に関する優れたブログ投稿であることがわかりました
                
                
                  
                    —
                    David Manners 14